Just mount //server/homes (or whatever you've called it) in something like .bashrc, executed when the user logs on and automatically uses the user's home directory. You could also just use the environment variable $USER and mount //server/$USER in the same script instead. On Tue, 2004-06-29 at 22:44, Entelin wrote: > I am putting a linux workstation in for one of my clients who has a > samba server. I think I am pretty good to go except one sticking point I > am hoping someone here could help me with. > > The workstation will be logged into by multiple accounts. I want to > write a script that will mount the servers samba shares under their home > directory somewhere when they login, for example their "home" directory > on the server. Of course I could set all the shares up in fstab make > them usermountable and do all that stuff, however I dont want to have to > do anything on the machine at all if a new users logs into the station. > It would be time prohibitive. > > or perhaps samba is not really the way to go in this instance and rather > nfs or something. However the issue is management, I want to write a > script, perhaps added to /etc/profile, or something that mounts this > stuff, I do not want to have to do anything to this workstation if I add > a new user to the server. Having nfs mount their whole /home/username > from the server wouldent be a bad idea either, is their a way as root to > auto mount a users nfs home when they login? > > fyi: I am using ldap as a network wide authentication scheme, therefore > when I "add a user to the server" the workstations will check this first > for their authentication as well. glory of PAM :) > > Any suggestions? -- Bryce C CoBryce Communications