On Tue, Jun 03, 2003 at 09:18:06AM +1000, Simon Bryan wrote:
> Hi all,
> I am one step away from a wholesale distribution of older machines back onto our
> network as Linux workstations - some as thin clients some as full blown clients.
> 
> My one remaining problem is how to allow a user to mount their home directory from
> another server back onto the local system - or is there another way they can get
> access to their home drive?
> 
> The home drives are on a server and shared with Samba, I was hoping to have a script
> on the desktop that would run and mount the drive for them after they login. The
> users do NOT exist on the workstation they are being authenticated via winbind from
> an NT server. A skeleton home directory is created for them on first login, I would
> like to map their real home directory to that directory.
>
> 1. Mount works for root, but can't be used by an ordinary user.
> 2. Smbmount doesn't seem to work unles used within mount (-t smbfs) See 1

Mount does work for other users, just have to have the entry in /etc/fstab with the 
stuff:

e.g.

/dev/cdrom  /cd  iso9660  ro,user,noauto,unhide

allows any user to mount the cdrom.

You probably want noauto as well, which will stop it being mounted at boot, when mount 
-a is
called.

Also take a look at sudo (super-user do), which will let you put "sudo mount -t smb 
\\samba\\share /home" in a script and not ask for a password, but not let the user 
"sudo rm -rf /".

The sudo approach may take less work than keeping fstab files in sync.

cheers,
Woody
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to