Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: Charlie Nyman on April 13, 2000, 08:03:55 AM
-
I created several users and Ibays on e-smith 4.06b. When I go to a user directory I have an empty directory. When I go to an Ibay I have 3 directories, cgi-bin, files, and html. I can only add directories to the files directory. What I want is to be able to map a drive on my Windows machines to an Ibay that does not require also going into the files directory. Can this be done?
-
Charlie Nyman wrote:
> I created several users and Ibays on e-smith 4.06b. When I go
> to a user directory I have an empty directory. When I go to an
> Ibay I have 3 directories, cgi-bin, files, and html. I can only
> add directories to the files directory. What I want is to be
> able to map a drive on my Windows machines to an Ibay that does
> not require also going into the files directory. Can this be
> done?
Yes, it can be done (as well as "just anything" with open source...) but you'll have to modify the template connected to /etc/smb.conf. In this case it's a nice "extra feature" because you can TEST different settings just by editing the normal /etc.smb.conf and restart samba. When you feel comfortable with your changes you'll have to make this permanent by editing the files in /etc/e-smith/templates/etc/smb.conf/
After this, do a /sbin/e-smith/signal-event console-save followed by a /sbin/shutdown - r now and your changes would have been made permanent for the system.
To understand the concepts of E-Smith better, take a look at http://www.e-smith.org/architecture/ and http://www.e-smith.org/custom/
//Lasse
-
Lasse Johansson wrote:
> settings just by editing the normal /etc.smb.conf and restart
...should of course read: /etc/smb.conf !
Sorry for that...
//Lasse
-
I looked at the smb.conf file and don't see the difference between a user directory and an Ibay. Can you explain further.
-
You wrote:
"I looked at the smb.conf file and don't see the difference between a user directory and an Ibay. Can you explain further. "
Well, here is the section from /etc/smb.conf of a typical "user directory":
[homes]
comment = Your own home account
browseable = no
guest ok = no
read only = no
writable = yes
printable = no
create mode = 0660
force create mode = 0660
directory mode = 0770
force directory mode = 0770
path = /home/e-smith/files/users/%S/home
Well, here is the section from /etc/smb.conf of a typical "Ibay":
[cd]
comment = CD-skivor
path = /home/e-smith/files/ibays/cd/files
read only = no
writable = yes
printable = no
create mode = 0664
force create mode = 0664
directory mode = 0775
force directory mode = 0775
...As you can see in the line:
path = /home/e-smith/files/ibays/cd/files
...this path is modified so that it doesn't point to:
path = /home/e-smith/files/ibays/cd/ ... which is the default in E-Smith
That means that, when a user clicks on the "directory" called "cd" in this case, he won't see the three directories /html, /files and /cgi-bin but he directs into the /files by Samba
You can always "test" by editing /etc/smb.conf and restart smb. When you're satisfied, you'll have to poke into the corresponding template in /etc/e-smith/templates/etc/smb.conf/ Mainly you'll have to edit the file template-begin in that directory. After making modifications here, you have to execute a /sbin/e-smith/signal-event console-save followed by a /sbin/shutdown - r.
Hopefully this clears things up a bit!
//Lasse
-
My smb.conf line that refers to my Ibays has a typical line that says "path = /home/e-smith/files/ibays/docs" or "path = /home/e-smith/files/ibays/apps". None of my Ibays end in "files". I don't see the difference between a user setting and an Ibay setting.
-
Charlie Nyman wrote:
> My smb.conf line that refers to my Ibays has a typical line
> that says "path = /home/e-smith/files/ibays/docs" or
> "path = /home/e-smith/files/ibays/apps". None of my
> Ibays end in "files". I don't see the difference
> between a user setting and an Ibay setting.
...That's exactly what I wrote:
...As you can see in the line:
path = /home/e-smith/files/ibays/cd/files
...this path is modified so that it doesn't point to:
path = /home/e-smith/files/ibays/cd/ ... which is the default in E-Smith
************************
//Lasse
-
Thank you, thank you, thank you (is that enough thank yous). I had it backwards. Thought you were saying to edit the "files" out of the smb.conf line assuminig that would eliminate the directory. I just make the "files" directory the default. Cool. I love Linux text configuration files.
Now, if only you can help with Red Hats stock price.Lasse Johansson wrote: