Jason Joines
2003-Sep-04 19:01 UTC
[Samba] Any way to do Linux User home directories via Samba
All of our user authentication is done via LDAP. We have an all Linux backend and tons of windows desktops. We've just started getting a few people to move to Linux on the desktop. Is there any way that I can have their home directory automatically mounted via Samba when they log in? Thanks, Jason Joines Open Source = Open Mind ========================
Paul Eggleton
2003-Sep-04 21:02 UTC
[Samba] Any way to do Linux User home directories via Samba
Jason Joines wrote on Friday, 5 September 2003 7:02 a.m.:> All of our user authentication is done via LDAP. We have an all > Linux backend and tons of windows desktops. We've just started > getting a few people to move to Linux on the desktop. Is there any > way that I can have their home directory automatically mounted via > Samba when they log in?Well, to save resources you should probably just mount a share on startup and then set each user's home directory to a directory in that mount location. Otherwise, you'll have a mount for each active user. Cheers, Paul
Bob Crandell
2003-Sep-04 23:01 UTC
[Samba] Any way to do Linux User home directories via Samba
Rashkae (rashkae@tigershaunt.com) wrote:> >On Fri, Sep 05, 2003 at 09:02:15AM +1200, Paul Eggleton wrote: >> Jason Joines wrote on Friday, 5 September 2003 7:02 a.m.: >> > All of our user authentication is done via LDAP. We have an all >> > Linux backend and tons of windows desktops. We've just started >> > getting a few people to move to Linux on the desktop. Is there any >> > way that I can have their home directory automatically mounted via >> > Samba when they log in? >> >> Well, to save resources you should probably just mount a share on >> startup and then set each user's home directory to a directory in that >> mount location. Otherwise, you'll have a mount for each active user. > >That's not a good idea. If you did it that way, all users on the >desktop would have the same permissions, to each others home >directory. > >What you probably want for a setup like this is to a NFS mount. If >your heart is set on using SMB, however, it can be done. I don't have >a howto immediately at hand. :( >Create a Data directory to act as a mount point. In /etc/fstab: # Create one of these lines for each user that uses this workstation. //server/home /home/user/Data smbfs user, username=user, password=password, uid=user, gid=users, rw In /etc/profile: # Mount Home on server. There seems to be something more to this but I can't find # it right now. /bin/mount /home/$USER/Data # This also clears the screen on logout trap "sudo /bin/umount ~/Data; /usr/bin/clear" EXIT I hope this helps. -- Bob Crandell Assured Computing When you need to be sure. bob@assuredcomp.com www.assuredcomp.com Voice - 541-689-9159 FAX - 541-463-1627 Eugene, Oregon