LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   mounting home directories from samba? (https://www.linuxquestions.org/questions/linux-networking-3/mounting-home-directories-from-samba-86381/)

tommyj27 08-27-2003 04:13 PM

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

Blindsight 08-27-2003 04:21 PM

why not make a remote home directory and mount it? Setup the user's home directories as /home/$user.

ie, smbmount //machine/homedir /usr/home

then when you create users, have them create their directories as /usr/home/$user and migrate your existing users over there.

tommyj27 08-27-2003 04:49 PM

i'm not trying to mount my entire home directory from the server, i want to keep my home directories on the workstation, and mount the remote home directory as a subdirectory within the home directory like so...

Code:

/home/tom
          local
          files
          and_directories/
          remote_mount/
                  containing
                  remote.stuff

edit: didn't format right :eek:


All times are GMT -5. The time now is 04:03 PM.