You have it!!!  Typically there is a group named admin and mount is owned by root and has gid set for the admin group.<br><br><div class="gmail_quote">On Wed, May 20, 2009 at 4:40 PM, Shawn <span dir="ltr">&lt;<a href="mailto:sgrover@open2space.com">sgrover@open2space.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I&#39;m trying to execute the following command in a script:<br>
<br>
mount -t cifs -o username=$user,password=$pass //<a href="http://192.168.0.14/c$" target="_blank">192.168.0.14/c$</a> $MOUNTDIR/remote<br>
<br>
I&#39;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.<br>
<br>
I&#39;m trying to remove the need to use sudo and/or enter passwords here to help automate things....<br>
<br>
Sooo, what am I missing?  Does my user account need to be added to a group so it can use mount?<br>
<br>
Shawn<br>
<br>
_______________________________________________<br>
clug-talk mailing list<br>
<a href="mailto:clug-talk@clug.ca" target="_blank">clug-talk@clug.ca</a><br>
<a href="http://clug.ca/mailman/listinfo/clug-talk_clug.ca" target="_blank">http://clug.ca/mailman/listinfo/clug-talk_clug.ca</a><br>
Mailing List Guidelines (<a href="http://clug.ca/ml_guidelines.php" target="_blank">http://clug.ca/ml_guidelines.php</a>)<br>
**Please remove these lines when replying<br>
</blockquote></div><br>