|
mounting home directories from samba?
greetings,
i'm trying to set up a logon script to mount several remote directories on logon. so far i've used a "sudo mount ...." command from my user which has sudo access to the mount command. while there aren't any users on my system that i don't trust with mount, I would like to set up my system so that less privileged users would also be able to have a remote directory mounted on logon. I've considered adding a line to fstab for each users home but this also seems rather inane, especially on a system which many users. Is there a way to set up one statement in fstab (or elsewhere) that allows any user to mount their respective home dir without need for sudo or other elevated privileges? this (and a few variations) is I've tried so far but mount doesn't seem to interpret variables from fstab. any ideas?
//dali/$USER /home/$USER/server smbfs rw,credentials=/home/$USER/.credentials,uid=$USER
while i'm on the subject, perhaps someone knows the answer to this one. using my current startup script, when I logon from a console the remote directory mounts properly. However, when I login from a gdm session, the directory shows up as being mounted 3 times. any idea why gdm is mounting this multiple times? BTW, the script in question is my ~/.profile
TIA, tom
|