[clue-tech] user mounts

Ken MacFerrin lists at macferrin.com
Fri Dec 8 13:15:42 MST 2006


David L. Willson wrote:
> I am constantly annoyed by the fact that users can't mount.
> 
> 1) I have 6 or so Windows shares to connect to everywhere I work, and I'd like to just
> write a script that connects them all, so I can just work, without messing around a lot.
>  I tried having root write the script for me and doing a setuid, but setuid seems to be
> ignored on shell-scripts.  (Kinda makes sense, actually.)
> 
> 2) My backup disk is normally dismounted.  I want a special account to mount it, do the
> sync, and then dismount it.
> 
> What is the most masculine and correct way to do these things?
> 

Why are you using the scripts?  You can mount windows/samba shares
directly out of /etc/fstab if you don't mind storing your share
credentials in your /home directory:

//server/share  /home/username/mnt/share cifs
auto,rw,credentials=/home/username/.topsecret,uid=user,gid=sambausers

-Ken



More information about the clue-tech mailing list