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?

Shawn

_______________________________________________
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

Reply via email to