I have a Linux server running SAMBA with a few shares. When I used Windows machines, I had them set up so they would automatically connect to the server and mount those shares. This included providing the necessary passwords, etc. I want to duplicate this functionality for my Linux workstations. I want them to automatically connect to the SAMBA server and mount a set of shares specific for the user logging on. I want to do this without eliminating the requirement to enter passwords. I also want to do it so the user logging on doesn't have to provide more than the single password to get into the KDE desktop. I've looked in the O'Reilly SAMBA book, plus a couple others that I have and all they seem to address is Windows workstations connecting to a Linux SAMBA server. I want Linux-to-Linux. Has anyone done this? How do you automate the mounting, while keeping the security settings? Is this even possible with Linux workstations? Any pointers welcome! Thanks.
Adolfo Santiago wrote:> > I've looked in the O'Reilly SAMBA book, plus a couple > others that I have and all they seem to address is > Windows workstations connecting to a Linux SAMBA server. > I want Linux-to-Linux.autofs & NFS is a much better solution for Linux to Linux. Cheers, jerry ---------------------------------------------------------------------- /\ Gerald (Jerry) Carter Professional Services \/ http://www.valinux.com/ VA Linux Systems gcarter@valinux.com http://www.samba.org/ SAMBA Team jerry@samba.org http://www.plainjoe.org/ jerry@plainjoe.org "...a hundred billion castaways looking for a home." - Sting "Message in a Bottle" ( 1979 )
On Thu, 2 Nov 2000, Adolfo Santiago wrote:> shares specific for the user logging on. I want to do this without > eliminating the requirement to enter passwords. I also want to do it so > the user logging on doesn't have to provide more than the single password > to get into the KDE desktop.If you have a samba server why not run nfs on it? Oh, I forgot about potential nfs vs smb locking problems.> Has anyone done this? How do you automate the mounting, while keeping > the security settings? Is this even possible with Linux workstations?AFAIK there is no simple & complete solution that you can just pop into your system and do this. The connection between login (commonly pam) and smbmount is missing. You can use autofs for mounting. Each user could have their own autofs map with username&password (root owned, read-only) and they would each find the server on a different place. Something like this: User 'chago' has an autofs map that mounts stuff under ~chago/.smbfs/ User 'urban' has an autofs map that mounts stuff under ~urban/.smbfs/ ... Each mount could be done with 'uid=chago,fmask=0700' to give ownership and access to only that user. Or you could have smbmnt set-uid root and allow your users to mount themselves (possibly with the aid of some graphical tool to do browsing). /Urban
I belive this is what you are looking for... http://www.liscon.com/ges/ (I don't know if it works but it appears to do what you want). Andrew Bartlett Adolfo Santiago wrote:> > I have a Linux server running SAMBA with a few shares. When I used > Windows machines, I had them set up so they would automatically connect > to the server and mount those shares. This included providing the > necessary passwords, etc. > > I want to duplicate this functionality for my Linux workstations. I want > them to automatically connect to the SAMBA server and mount a set of > shares specific for the user logging on. I want to do this without > eliminating the requirement to enter passwords. I also want to do it so > the user logging on doesn't have to provide more than the single password > to get into the KDE desktop. > > I've looked in the O'Reilly SAMBA book, plus a couple others that I have > and all they seem to address is Windows workstations connecting to a > Linux SAMBA server. I want Linux-to-Linux. > > Has anyone done this? How do you automate the mounting, while keeping > the security settings? Is this even possible with Linux workstations? > Any pointers welcome! > > Thanks.-- Andrew Bartlett abartlet@pcug.org.au