View Single Post
Posts: 34 | Thanked: 2 times | Joined on Mar 2006
#16
I have been trying to automate the mounting process for a couple of days and have made minimal progress. I have created a script file to mount the Windows PC drive WHEN I have gained root access and call it from the directory in which I have placed it. For example my script file is called "foto1" and placed in /home/user/MyDocs/.documents.

However, when I run the same script without having root access ( which does include a callout to "sudo gainroot" ) I get an error "sh: Can't open foto1" .

I thought by adding /home/user/MyDocs/.documents to my PATH statement within the /usr/sbin/gainroot file that it would locate this file.

As I mentioned earlier I'm a linux NOOB and would appreciate a little guidance.
Thx

Last edited by pc4ever1; 2006-08-04 at 12:47.