Koozali.org: home of the SME Server

adding a Samba Share for all users

David Trask

adding a Samba Share for all users
« on: February 26, 2003, 01:17:55 AM »
Question:

I'd like to add a section in my smb.conf file (I know I have to edit the templates and all) to allow my users to be able to connect via smb using a Linux Terminal from K12LTSP.  I'd like for them to be able to type in smb://servername/sharename

Example:   smb://snoopy/home_directories

And then they'd be able to log in and select their own folder....or if I could get them right to their home folder that'd be nice.  What I plan to do is to put a URL link using the smb:// format on their desktops....any ideas?

If I were to do something like this....how can I put all my users in there (I have about 600) without adding them one by one....can I do valid groups and use "everyone"?  Is there a better way?

[home_directories]
comment = home_directories
path = /home
valid users = admin root dtrask
admin users = admin root me
write list = admin root me
public = no
writable = yes


thanks for any help you can give me

David Trask

Abe Loveless

Re: adding a Samba Share for all users
« Reply #1 on: February 26, 2003, 11:32:43 PM »
Doesn't the smb.conf file get updated when you add users to the sme system?  The user directories and the samba shares are setup automatically when you add users to the sme server.

So, just use the batch_users script at: http://www.tech-geeks.org/contrib/loveless/batch_users/ to upload your users.

I would think you could also add something to the k12ltsp login script to have it "mount" the smb share for the appropriate user.

Does that help?

Shad Lords

Re: adding a Samba Share for all users
« Reply #2 on: February 27, 2003, 08:27:32 AM »
try smb://server/homes

replace server with your servername but leave homes as is.  This will map to the home directory of the user authenticating.

For windows people user \server\homes in a login script to map the home directory.

-Shad

andrej

Re: adding a Samba Share for all users
« Reply #3 on: July 24, 2003, 08:23:19 PM »
I want to edit /etc/fstab on my RH9 box (workstation) to mount HOME dir to //SME_BOX/HOME dir at boot time. So, when user logs on to WS get homes automaticly maped to SME server box !!! How to change templates for additional hidden share???

Cheers,

Andrej