-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Shawn wrote: > I'm trying to execute the following command in a script: > > mount -t cifs -o username=$user,password=$pass //192.168.0.14/c$ > $MOUNTDIR/remote > > I'm getting told that only root can do this. The local directory in > question is owned by my user account, and I need to run the script as > that user - not as root. > > I'm trying to remove the need to use sudo and/or enter passwords here to > help automate things.... > > Sooo, what am I missing? Does my user account need to be added to a > group so it can use mount?
Your user needs to be root to use mount. Otherwise look at using a NOPASSWD directive by configuring sudo (using visudo or some other utility) so that your user does not need a password to use sudo with mount. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkoUe0wACgkQwRXgH3rKGfOZ1ACff3stRcitxIu9xfzd1Qr7UVXc n9YAnReZP4kqhj/HEqC70iasDvWjG+0B =JP1e -----END PGP SIGNATURE----- _______________________________________________ clug-talk mailing list [email protected] http://clug.ca/mailman/listinfo/clug-talk_clug.ca Mailing List Guidelines (http://clug.ca/ml_guidelines.php) **Please remove these lines when replying

