[slightly OT] using sudo -S via shell

Ton Kuypers tkuypers at pandora.be
Sat Nov 19 10:02:34 EST 2005


hi,

I know there are people online with a lot of unix knowledge, so  
here's a question for them:

Through a rev-app a user needs to automatically create a bunch of  
folders on a servervolume and this user has limited privileges for  
the root directory these folders need to be in.
The server is an OS-X server, so I was looking into the sudo -S  
command...

Because I don't have a server like that setup, I created another  
account on my Mac, but I don't think I can be very sure everything  
works the way it should work...

The command I send via shell is "sudo -S mkdir '/users/test/desktop/ 
testfolder'"

The result is a new folder on the test-users desktop.
But when I do the same from the terminal, I get the question to enter  
a password for the same command.

Questions:
- Why don't I need to enter a password when using RR?
- What will happen when I do this on a network volume?
- How do I send the password in one line with the sudo command,  
because I can't seem to get this working from within the Terminal app.

Many thanks in advance,

Ton Kuypers



More information about the use-livecode mailing list