LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

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

Rep: Reputation: 15
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
 
Old 08-27-2003, 04:21 PM   #2
Blindsight
Member
 
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, 04:49 PM   #3
tommyj27
Member
 
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...

Code:
/home/tom
          local
          files
          and_directories/
          remote_mount/
                  containing
                  remote.stuff
edit: didn't format right

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


Reply


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 02:37 PM
Samba does not allow writing to public shares / browsing home directories disallowed Xolo Linux - Software 6 02-14-2005 04:22 PM
samba: home directories not visible flipboi Linux - Networking 1 05-27-2004 11:06 PM
Creating home directories with samba and PAM mkhomedir ferrantepunto Linux - Software 2 01-21-2004 09:13 AM
Samba and Home Directories dlucas10 Linux - Networking 5 10-28-2003 12:51 PM


All times are GMT -5. The time now is 05:37 PM.

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