Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 08-27-2003, 05:13 PM   #1
Registered: May 2003
Distribution: Ubuntu, Slackware
Posts: 43

Rep: Reputation: 15
mounting home directories from samba?


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
Old 08-27-2003, 05:21 PM   #2
Registered: Mar 2003
Distribution: Slackware
Posts: 234

Rep: Reputation: 30
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.
Old 08-27-2003, 05:49 PM   #3
Registered: May 2003
Distribution: Ubuntu, Slackware
Posts: 43

Original Poster
Rep: Reputation: 15
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...

edit: didn't format right

Last edited by tommyj27; 08-27-2003 at 05:50 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache Root/Home Directory and setting up FTP for home directories? Mankind75 Linux - Newbie 6 07-23-2006 03:37 PM
Samba does not allow writing to public shares / browsing home directories disallowed Xolo Linux - Software 6 02-14-2005 05:22 PM
samba: home directories not visible flipboi Linux - Networking 1 05-28-2004 12:06 AM
Creating home directories with samba and PAM mkhomedir ferrantepunto Linux - Software 2 01-21-2004 10:13 AM
Samba and Home Directories dlucas10 Linux - Networking 5 10-28-2003 01:51 PM > Forums > Linux Forums > Linux - Networking

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration