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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to chown on a folder through php/apace

Status
Not open for further replies.

pollux0

IS-IT--Management
Mar 20, 2002
262
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
 
If you need to know how to do this via PHP, there is a great forum here that deals with PHP programming. forum434
 
i figured there might be another way besides php but i will post in php as well...thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top