Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

chown on a file/folder

Status
Not open for further replies.

pollux0

IS-IT--Management
Joined
Mar 20, 2002
Messages
262
Location
US
i am building a web based app which will adminstrate my imap/smtp server. using php I need to be able to change the owner on a folder. i am using this command and getting errors:
chown("/usr/local/virtual/username", "testUser");

from what i have read this can only be done by a superuser such as root because the user/password files need to be read in /etc

can anyone suggest another way to do this? mabey execute a script on the server?

thanks in advance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top