Web Hosting Talk







View Full Version : How do I reset all the permissions


certify
08-02-2001, 03:41 PM
I just untar some cgi files using root and now when i ftp using my normal account to overide the file it say permission denied.

How do I change all the permission?

Palm
08-02-2001, 03:48 PM
If you want to be able to view and work with the files as a normal user you need to chown it.

chown user.group filename

Your group should be the same as your username.

JonnyQuags
08-02-2001, 04:18 PM
If there are a lot of files you need to do this to one username, you can do this command :

chown username.username -R foldername

This will give the correct permissions to the folder and everything in it.

certify
08-02-2001, 04:39 PM
Thanks. :)

winquest
08-04-2001, 10:33 AM
I encountered this problem on quie a number of scripts. This usually happens when my host runs cgi as nobody. Is there any particular reason for runing cgi as nobody?