At 3:42 PM -0500 3/18/02, [EMAIL PROTECTED] wrote:
>In a message dated 18-Mar-02 7:36:55 PM GMT Standard Time, 
>[EMAIL PROTECTED] writes:
>
>>You may want to look into useradd and /etc/skel on a Linux system.  It
>>   has everything you are trying to accomplish handled automatically
>>   by using the standard Linux user creation techniques. No need to
>>   re-implement the wheel. :)
>>
>
>
>That's just it ... we didn't want to have to create whole new user 
>accounts for everybody. Just a small directory of files for a demo 
>of our web-app.
>
>I'd be happy if all the apps weren't apache:apache ... but I was 
>thinking there had to be a better solution than `chown nobody:nobody 
>$directory -R` (just an example !!)

To change default file permissions of newly created files
perldoc -f umask

To change ownership of a file without a fork*
perldoc -f chown

To change permissions of a file without a fork*
perldoc -f chmod

To create directories without a fork*
perldoc -f mkdir


* on most *nix based systems

Rob


--
When I used a Mac, they laughed because I had no command prompt. When 
I used Linux, they laughed because I had no GUI.  

Reply via email to