[CS-FSLUG] sudo, alternatives, configurators

Stephen J. McCracken smccracken at hcjb.org.ec
Sun Jan 11 12:41:52 CST 2009


>>>> Do you have a simple way to have SMB NAS or XP Home shares mount
>>>> automatically at login? J.E.B.

> Why not just make s script to do it then?
> 
> #!/bin/bash
> mkdir -p /home/username/mymount
> sudo mount -t cifs //server/share /home/username/mymount -o uid=username
> 
> Then have your user run that script to initiate their mount.
> Alternatively, you can add the password into that script as well and use
> the whole thing as a startup script.  Of course you could also just put
> the necessary info into the /etc/fstab.

If you want it mounted every time the box is booted, I usually put these
things in rc.local that runs after all the other rc scripts.

sjm




More information about the Christiansource mailing list