Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: Help with Chmod
07-21-2008, 09:50 AM #1
- Join Date
- Jun 2007
- N. Ireland
- Thanked 4 Times in 4 Posts
Help with Chmod
Hi guys I am running the following:
Using a site app on one domain to change permissions on another site on the same box as my admin app. Then uploading dirs and files to the 2nd site before changing permissions back.
The 2nd domain is 0750 and I am trying to get it to 0777 but get the following:
Warning: chmod() [function.chmod]: Operation not permitted in XXXXX
When I manually change permissions to 0777 the mkdirs and file copies works fine but i just cannot get chmod to work.
Can someone please explain what a user/owner is and how to find out if this possible on my VPS. Would this even be the cause of the problem?
Why would the operation not be permitted?
Thanks for your help.
07-21-2008, 11:15 AM #2
- Join Date
- Feb 2006
- Thanked 0 Times in 0 Posts
The only reason I can see that would happen is if you are not root. Also I would drop the 0 and just use:
To give an entire directory and all subdirectorys and files 777 use:Code:chmod 777 filename
Are you sure you want to give read/write/execute privledges to everyone?Code:chmod -R 777 directory
There is a very good site here:
It will tell you exactly what permissions to use.