HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   web folders owned by root, .. and root has no access to them? (http://www.howtoforge.com/forums/showthread.php?t=61739)

LaKing 6th May 2013 16:30

web folders owned by root, .. and root has no access to them?
 
I recently updated my OS, fedora 18, and my ISPConfig. I noticed now a strange permission problem.

Code:


[root@r2 client_2]# ls -l
...
drwxr-xr-x  9 root  root    4096 May  6 14:46 web_535
drwxr-xr-x  9 root  root    4096 May  6 14:52 web_536
...
[root@r2 client_2]# cd web_536

[root@r2 web_536]# echo "hello" > test.txt
bash: test.txt: Permission denied

Web fodlers used to be owned by clients before. Are they now owned by root on purpose?

How can it be that root can not create files and folders?

till 6th May 2013 16:45

Quote:

Are they now owned by root on purpose?
Yes. The folders have to be owned by root.

Quote:

How can it be that root can not create files and folders?
The folders are protected with the immutable attribute. If you want to upload files as root, then remove the attribute with chattr command first. But dont forget to enable immuntable bit again when you are finished.


All times are GMT +2. The time now is 12:19.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.