Permission and directory creation issues as root user on CentOS

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite
2












I am trying to streamline my development and deployment process for the maintenance of my website, which is coded in PHP. The directory structure was initially set up by ISPConfig. The machine is running CentOS 6.9.



My problem is that when in a folder with path /var/www/clients/client1/web1, every operation is forbidden to me even when logged in as root user, not just while using sudo.



In that folder and only there, I cannot:




  • mkdir a new directory (fails with "mkdir: cannot create directory 'test': Permission denied")


  • mv an existing directory (fails with "mv: cannot move 'web' to 'web.old': Permission denied").

ll /var/www/clients/client1/ gives me this:



drwxr-xr-x 4 root root 4096 Jun 19 2017 .
drwxr-xr-x 3 root root 4096 May 16 2014 ..
drwxr-xr-x 11 root root 4096 Mar 11 11:38 web1
drwxr-xr-x 9 root root 4096 Apr 13 2015 web11


ll /var/www/clients/client1/web1/ gives:



drwxr-xr-x 11 root root 4096 Mar 11 11:38 .
drwxr-xr-x 4 root root 4096 Jun 19 2017 ..
drwxr-xr-x 2 web1 client1 4096 May 16 2014 cgi-bin
drwxr-xr-x 20 root root 4096 Jun 19 2017 log
drwx--x--- 2 web1 client1 4096 May 16 2014 private
drwx------ 2 web1 client1 4096 Mar 11 11:38 .ssh
drwxr-xr-x 2 root root 4096 May 17 2017 ssl
drwxr-xr-x 11 web1 client1 4096 Mar 24 19:22 subdomains
drwxrwxr-x 4 web1 client1 36864 Mar 24 20:38 tmp
drwxr-xr-x 22 web1 client1 4096 Mar 24 20:07 web
drwx--x--- 2 web1 client1 4096 May 16 2014 webdav


However, I can use chmod on existing directories.



I've checked rwx permissions on the entire path and nothing seem out of place to me.



SELinux is disabled.



There are no quotas in place and the disk usage is at 36%.



My question is: What other factors may lead to a "permission denied" message to the root user?



[EDIT]



lsattr . in /var/www/clients/client1/web1/web gives the same line for each file and directory in it:



[root:/var/www/clients/client1/web1/web]# lsattr .
-------------e- ./stats


lsattr . in /var/www/clients/client1/web1:



[root:/var/www/clients/client1/web1]# lsattr .
-------------e- ./cgi-bin
-------------e- ./ssl
-------------e- ./subdomains
-------------e- ./webdav
-------------e- ./log
-------------e- ./web
-------------e- ./private
----------I--e- ./tmp


However, lsattr . in /var/www/clients/client1 gives this:



[root:/var/www/clients/client1]# lsattr .
-------------e- ./web11
----i--------e- ./web1


mount gives me this in both /var/www/clients/client1/web1 and /var/www/clients/client1/web1/web:



[root:/var/www/clients/client1/web1]# mount
/dev/simfs on / type simfs (rw,relatime)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
none on /dev type devtmpfs (rw,relatime,mode=755)
none on /dev/pts type devpts (rw,relatime,mode=600,ptmxmode=000)
/dev/simfs on /var/www/clients/client1/web1/log/atlas-demo type simfs (rw,relatime)
/dev/simfs on /var/www/clients/client1/web1/log/atlas-demo-api type simfs (rw,relatime)
/dev/simfs on /var/www/clients/client1/web1/log/kinetic type simfs (rw,relatime)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
/dev/simfs on /var/www/clients/client1/web1/log/cloud type simfs (rw,relatime)
/dev/simfs on /var/www/clients/client1/web1/log/analytics type simfs (rw,relatime)
/dev/simfs on /var/www/clients/client1/web1/log/vcs type simfs (rw,relatime)
/dev/simfs on /var/www/clients/client1/web1/log/issues type simfs (rw,relatime)
/dev/simfs on /var/www/clients/client1/web1/log/webmail type simfs (rw,relatime)
/dev/simfs on /var/www/clients/client1/web1/log/downloads type simfs (rw,relatime)
/dev/simfs on /var/www/clients/client1/web11/log type simfs (rw,relatime)
/dev/simfs on /var/www/clients/client1/web1/log/preprod type simfs (rw,relatime)
/dev/simfs on /var/www/clients/client1/web1/log/atlas-demo type simfs (rw,relatime)
/dev/simfs on /var/www/clients/client1/web1/log/atlas-demo-api type simfs (rw,relatime)
/dev/simfs on /var/www/clients/client1/web1/log/kinetic type simfs (rw,relatime)






share|improve this question


















  • 3




    Can you post the output of mount, and of lsattr in the directory you're trying to write to?
    – Joseph Sible
    Mar 24 at 21:42










  • We need lsattr -d .
    – Hauke Laging
    Mar 24 at 23:25










  • I've added the results of lsattr . (for comparison with sibling directories) and mount.
    – AbVog
    Mar 25 at 8:51














up vote
2
down vote

favorite
2












I am trying to streamline my development and deployment process for the maintenance of my website, which is coded in PHP. The directory structure was initially set up by ISPConfig. The machine is running CentOS 6.9.



My problem is that when in a folder with path /var/www/clients/client1/web1, every operation is forbidden to me even when logged in as root user, not just while using sudo.



In that folder and only there, I cannot:




  • mkdir a new directory (fails with "mkdir: cannot create directory 'test': Permission denied")


  • mv an existing directory (fails with "mv: cannot move 'web' to 'web.old': Permission denied").

ll /var/www/clients/client1/ gives me this:



drwxr-xr-x 4 root root 4096 Jun 19 2017 .
drwxr-xr-x 3 root root 4096 May 16 2014 ..
drwxr-xr-x 11 root root 4096 Mar 11 11:38 web1
drwxr-xr-x 9 root root 4096 Apr 13 2015 web11


ll /var/www/clients/client1/web1/ gives:



drwxr-xr-x 11 root root 4096 Mar 11 11:38 .
drwxr-xr-x 4 root root 4096 Jun 19 2017 ..
drwxr-xr-x 2 web1 client1 4096 May 16 2014 cgi-bin
drwxr-xr-x 20 root root 4096 Jun 19 2017 log
drwx--x--- 2 web1 client1 4096 May 16 2014 private
drwx------ 2 web1 client1 4096 Mar 11 11:38 .ssh
drwxr-xr-x 2 root root 4096 May 17 2017 ssl
drwxr-xr-x 11 web1 client1 4096 Mar 24 19:22 subdomains
drwxrwxr-x 4 web1 client1 36864 Mar 24 20:38 tmp
drwxr-xr-x 22 web1 client1 4096 Mar 24 20:07 web
drwx--x--- 2 web1 client1 4096 May 16 2014 webdav


However, I can use chmod on existing directories.



I've checked rwx permissions on the entire path and nothing seem out of place to me.



SELinux is disabled.



There are no quotas in place and the disk usage is at 36%.



My question is: What other factors may lead to a "permission denied" message to the root user?



[EDIT]



lsattr . in /var/www/clients/client1/web1/web gives the same line for each file and directory in it:



[root:/var/www/clients/client1/web1/web]# lsattr .
-------------e- ./stats


lsattr . in /var/www/clients/client1/web1:



[root:/var/www/clients/client1/web1]# lsattr .
-------------e- ./cgi-bin
-------------e- ./ssl
-------------e- ./subdomains
-------------e- ./webdav
-------------e- ./log
-------------e- ./web
-------------e- ./private
----------I--e- ./tmp


However, lsattr . in /var/www/clients/client1 gives this:



[root:/var/www/clients/client1]# lsattr .
-------------e- ./web11
----i--------e- ./web1


mount gives me this in both /var/www/clients/client1/web1 and /var/www/clients/client1/web1/web:



[root:/var/www/clients/client1/web1]# mount
/dev/simfs on / type simfs (rw,relatime)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
none on /dev type devtmpfs (rw,relatime,mode=755)
none on /dev/pts type devpts (rw,relatime,mode=600,ptmxmode=000)
/dev/simfs on /var/www/clients/client1/web1/log/atlas-demo type simfs (rw,relatime)
/dev/simfs on /var/www/clients/client1/web1/log/atlas-demo-api type simfs (rw,relatime)
/dev/simfs on /var/www/clients/client1/web1/log/kinetic type simfs (rw,relatime)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
/dev/simfs on /var/www/clients/client1/web1/log/cloud type simfs (rw,relatime)
/dev/simfs on /var/www/clients/client1/web1/log/analytics type simfs (rw,relatime)
/dev/simfs on /var/www/clients/client1/web1/log/vcs type simfs (rw,relatime)
/dev/simfs on /var/www/clients/client1/web1/log/issues type simfs (rw,relatime)
/dev/simfs on /var/www/clients/client1/web1/log/webmail type simfs (rw,relatime)
/dev/simfs on /var/www/clients/client1/web1/log/downloads type simfs (rw,relatime)
/dev/simfs on /var/www/clients/client1/web11/log type simfs (rw,relatime)
/dev/simfs on /var/www/clients/client1/web1/log/preprod type simfs (rw,relatime)
/dev/simfs on /var/www/clients/client1/web1/log/atlas-demo type simfs (rw,relatime)
/dev/simfs on /var/www/clients/client1/web1/log/atlas-demo-api type simfs (rw,relatime)
/dev/simfs on /var/www/clients/client1/web1/log/kinetic type simfs (rw,relatime)






share|improve this question


















  • 3




    Can you post the output of mount, and of lsattr in the directory you're trying to write to?
    – Joseph Sible
    Mar 24 at 21:42










  • We need lsattr -d .
    – Hauke Laging
    Mar 24 at 23:25










  • I've added the results of lsattr . (for comparison with sibling directories) and mount.
    – AbVog
    Mar 25 at 8:51












up vote
2
down vote

favorite
2









up vote
2
down vote

favorite
2






2





I am trying to streamline my development and deployment process for the maintenance of my website, which is coded in PHP. The directory structure was initially set up by ISPConfig. The machine is running CentOS 6.9.



My problem is that when in a folder with path /var/www/clients/client1/web1, every operation is forbidden to me even when logged in as root user, not just while using sudo.



In that folder and only there, I cannot:




  • mkdir a new directory (fails with "mkdir: cannot create directory 'test': Permission denied")


  • mv an existing directory (fails with "mv: cannot move 'web' to 'web.old': Permission denied").

ll /var/www/clients/client1/ gives me this:



drwxr-xr-x 4 root root 4096 Jun 19 2017 .
drwxr-xr-x 3 root root 4096 May 16 2014 ..
drwxr-xr-x 11 root root 4096 Mar 11 11:38 web1
drwxr-xr-x 9 root root 4096 Apr 13 2015 web11


ll /var/www/clients/client1/web1/ gives:



drwxr-xr-x 11 root root 4096 Mar 11 11:38 .
drwxr-xr-x 4 root root 4096 Jun 19 2017 ..
drwxr-xr-x 2 web1 client1 4096 May 16 2014 cgi-bin
drwxr-xr-x 20 root root 4096 Jun 19 2017 log
drwx--x--- 2 web1 client1 4096 May 16 2014 private
drwx------ 2 web1 client1 4096 Mar 11 11:38 .ssh
drwxr-xr-x 2 root root 4096 May 17 2017 ssl
drwxr-xr-x 11 web1 client1 4096 Mar 24 19:22 subdomains
drwxrwxr-x 4 web1 client1 36864 Mar 24 20:38 tmp
drwxr-xr-x 22 web1 client1 4096 Mar 24 20:07 web
drwx--x--- 2 web1 client1 4096 May 16 2014 webdav


However, I can use chmod on existing directories.



I've checked rwx permissions on the entire path and nothing seem out of place to me.



SELinux is disabled.



There are no quotas in place and the disk usage is at 36%.



My question is: What other factors may lead to a "permission denied" message to the root user?



[EDIT]



lsattr . in /var/www/clients/client1/web1/web gives the same line for each file and directory in it:



[root:/var/www/clients/client1/web1/web]# lsattr .
-------------e- ./stats


lsattr . in /var/www/clients/client1/web1:



[root:/var/www/clients/client1/web1]# lsattr .
-------------e- ./cgi-bin
-------------e- ./ssl
-------------e- ./subdomains
-------------e- ./webdav
-------------e- ./log
-------------e- ./web
-------------e- ./private
----------I--e- ./tmp


However, lsattr . in /var/www/clients/client1 gives this:



[root:/var/www/clients/client1]# lsattr .
-------------e- ./web11
----i--------e- ./web1


mount gives me this in both /var/www/clients/client1/web1 and /var/www/clients/client1/web1/web:



[root:/var/www/clients/client1/web1]# mount
/dev/simfs on / type simfs (rw,relatime)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
none on /dev type devtmpfs (rw,relatime,mode=755)
none on /dev/pts type devpts (rw,relatime,mode=600,ptmxmode=000)
/dev/simfs on /var/www/clients/client1/web1/log/atlas-demo type simfs (rw,relatime)
/dev/simfs on /var/www/clients/client1/web1/log/atlas-demo-api type simfs (rw,relatime)
/dev/simfs on /var/www/clients/client1/web1/log/kinetic type simfs (rw,relatime)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
/dev/simfs on /var/www/clients/client1/web1/log/cloud type simfs (rw,relatime)
/dev/simfs on /var/www/clients/client1/web1/log/analytics type simfs (rw,relatime)
/dev/simfs on /var/www/clients/client1/web1/log/vcs type simfs (rw,relatime)
/dev/simfs on /var/www/clients/client1/web1/log/issues type simfs (rw,relatime)
/dev/simfs on /var/www/clients/client1/web1/log/webmail type simfs (rw,relatime)
/dev/simfs on /var/www/clients/client1/web1/log/downloads type simfs (rw,relatime)
/dev/simfs on /var/www/clients/client1/web11/log type simfs (rw,relatime)
/dev/simfs on /var/www/clients/client1/web1/log/preprod type simfs (rw,relatime)
/dev/simfs on /var/www/clients/client1/web1/log/atlas-demo type simfs (rw,relatime)
/dev/simfs on /var/www/clients/client1/web1/log/atlas-demo-api type simfs (rw,relatime)
/dev/simfs on /var/www/clients/client1/web1/log/kinetic type simfs (rw,relatime)






share|improve this question














I am trying to streamline my development and deployment process for the maintenance of my website, which is coded in PHP. The directory structure was initially set up by ISPConfig. The machine is running CentOS 6.9.



My problem is that when in a folder with path /var/www/clients/client1/web1, every operation is forbidden to me even when logged in as root user, not just while using sudo.



In that folder and only there, I cannot:




  • mkdir a new directory (fails with "mkdir: cannot create directory 'test': Permission denied")


  • mv an existing directory (fails with "mv: cannot move 'web' to 'web.old': Permission denied").

ll /var/www/clients/client1/ gives me this:



drwxr-xr-x 4 root root 4096 Jun 19 2017 .
drwxr-xr-x 3 root root 4096 May 16 2014 ..
drwxr-xr-x 11 root root 4096 Mar 11 11:38 web1
drwxr-xr-x 9 root root 4096 Apr 13 2015 web11


ll /var/www/clients/client1/web1/ gives:



drwxr-xr-x 11 root root 4096 Mar 11 11:38 .
drwxr-xr-x 4 root root 4096 Jun 19 2017 ..
drwxr-xr-x 2 web1 client1 4096 May 16 2014 cgi-bin
drwxr-xr-x 20 root root 4096 Jun 19 2017 log
drwx--x--- 2 web1 client1 4096 May 16 2014 private
drwx------ 2 web1 client1 4096 Mar 11 11:38 .ssh
drwxr-xr-x 2 root root 4096 May 17 2017 ssl
drwxr-xr-x 11 web1 client1 4096 Mar 24 19:22 subdomains
drwxrwxr-x 4 web1 client1 36864 Mar 24 20:38 tmp
drwxr-xr-x 22 web1 client1 4096 Mar 24 20:07 web
drwx--x--- 2 web1 client1 4096 May 16 2014 webdav


However, I can use chmod on existing directories.



I've checked rwx permissions on the entire path and nothing seem out of place to me.



SELinux is disabled.



There are no quotas in place and the disk usage is at 36%.



My question is: What other factors may lead to a "permission denied" message to the root user?



[EDIT]



lsattr . in /var/www/clients/client1/web1/web gives the same line for each file and directory in it:



[root:/var/www/clients/client1/web1/web]# lsattr .
-------------e- ./stats


lsattr . in /var/www/clients/client1/web1:



[root:/var/www/clients/client1/web1]# lsattr .
-------------e- ./cgi-bin
-------------e- ./ssl
-------------e- ./subdomains
-------------e- ./webdav
-------------e- ./log
-------------e- ./web
-------------e- ./private
----------I--e- ./tmp


However, lsattr . in /var/www/clients/client1 gives this:



[root:/var/www/clients/client1]# lsattr .
-------------e- ./web11
----i--------e- ./web1


mount gives me this in both /var/www/clients/client1/web1 and /var/www/clients/client1/web1/web:



[root:/var/www/clients/client1/web1]# mount
/dev/simfs on / type simfs (rw,relatime)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
none on /dev type devtmpfs (rw,relatime,mode=755)
none on /dev/pts type devpts (rw,relatime,mode=600,ptmxmode=000)
/dev/simfs on /var/www/clients/client1/web1/log/atlas-demo type simfs (rw,relatime)
/dev/simfs on /var/www/clients/client1/web1/log/atlas-demo-api type simfs (rw,relatime)
/dev/simfs on /var/www/clients/client1/web1/log/kinetic type simfs (rw,relatime)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
/dev/simfs on /var/www/clients/client1/web1/log/cloud type simfs (rw,relatime)
/dev/simfs on /var/www/clients/client1/web1/log/analytics type simfs (rw,relatime)
/dev/simfs on /var/www/clients/client1/web1/log/vcs type simfs (rw,relatime)
/dev/simfs on /var/www/clients/client1/web1/log/issues type simfs (rw,relatime)
/dev/simfs on /var/www/clients/client1/web1/log/webmail type simfs (rw,relatime)
/dev/simfs on /var/www/clients/client1/web1/log/downloads type simfs (rw,relatime)
/dev/simfs on /var/www/clients/client1/web11/log type simfs (rw,relatime)
/dev/simfs on /var/www/clients/client1/web1/log/preprod type simfs (rw,relatime)
/dev/simfs on /var/www/clients/client1/web1/log/atlas-demo type simfs (rw,relatime)
/dev/simfs on /var/www/clients/client1/web1/log/atlas-demo-api type simfs (rw,relatime)
/dev/simfs on /var/www/clients/client1/web1/log/kinetic type simfs (rw,relatime)








share|improve this question













share|improve this question




share|improve this question








edited Mar 25 at 8:49

























asked Mar 24 at 20:19









AbVog

1134




1134







  • 3




    Can you post the output of mount, and of lsattr in the directory you're trying to write to?
    – Joseph Sible
    Mar 24 at 21:42










  • We need lsattr -d .
    – Hauke Laging
    Mar 24 at 23:25










  • I've added the results of lsattr . (for comparison with sibling directories) and mount.
    – AbVog
    Mar 25 at 8:51












  • 3




    Can you post the output of mount, and of lsattr in the directory you're trying to write to?
    – Joseph Sible
    Mar 24 at 21:42










  • We need lsattr -d .
    – Hauke Laging
    Mar 24 at 23:25










  • I've added the results of lsattr . (for comparison with sibling directories) and mount.
    – AbVog
    Mar 25 at 8:51







3




3




Can you post the output of mount, and of lsattr in the directory you're trying to write to?
– Joseph Sible
Mar 24 at 21:42




Can you post the output of mount, and of lsattr in the directory you're trying to write to?
– Joseph Sible
Mar 24 at 21:42












We need lsattr -d .
– Hauke Laging
Mar 24 at 23:25




We need lsattr -d .
– Hauke Laging
Mar 24 at 23:25












I've added the results of lsattr . (for comparison with sibling directories) and mount.
– AbVog
Mar 25 at 8:51




I've added the results of lsattr . (for comparison with sibling directories) and mount.
– AbVog
Mar 25 at 8:51










1 Answer
1






active

oldest

votes

















up vote
3
down vote



accepted










The fact that the filesystem type of all your non-virtual filesystems is simfs suggests you're inside an OpenVZ Virtuozzo container.



The lower-case i in lsattr output indicates that the file or directory is set as immutable: even root must clear this attribute first before making any changes to it. With root access, you should be able to remove this with chattr -i /var/www/clients/client1/web1, but there is probably a reason why this was done in the first place; you should find out what the reason was and whether or not it's still applicable before removing it. There may be security implications.



The upper-case I in lsattr means the directory is being indexed using hashed tree structures; it should have no applications impact, other than possibly improved performance with directory listing operations. (Maybe the /var/www/clients/client1/web1/tmp directory can occasionally contain huge numbers of temporary files, slowing down the application?)



The lower-case e indicates "extent format", which is a new scheme of tracking disk block allocations introduced in ext4 file system type. (The attribute is related to backwards-compatibility mechanism that allows ext4 filesystems to be accessible as ext3 if a system does not support ext4.) It suggests that the underlying filesystem under simfs is probably ext4.






share|improve this answer




















  • The 'i' attribute was indeed the problem. I have removed it, the time to rename the old web directory to web.old and to create a symbolic link to the source code management repository where I push changes to the code of my website. I set it back with chattr +i /var/www/clients/client1/web1. I learned the existence of attributes with this question... I'm a happier man :-)
    – AbVog
    Mar 25 at 14:17











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f433318%2fpermission-and-directory-creation-issues-as-root-user-on-centos%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
3
down vote



accepted










The fact that the filesystem type of all your non-virtual filesystems is simfs suggests you're inside an OpenVZ Virtuozzo container.



The lower-case i in lsattr output indicates that the file or directory is set as immutable: even root must clear this attribute first before making any changes to it. With root access, you should be able to remove this with chattr -i /var/www/clients/client1/web1, but there is probably a reason why this was done in the first place; you should find out what the reason was and whether or not it's still applicable before removing it. There may be security implications.



The upper-case I in lsattr means the directory is being indexed using hashed tree structures; it should have no applications impact, other than possibly improved performance with directory listing operations. (Maybe the /var/www/clients/client1/web1/tmp directory can occasionally contain huge numbers of temporary files, slowing down the application?)



The lower-case e indicates "extent format", which is a new scheme of tracking disk block allocations introduced in ext4 file system type. (The attribute is related to backwards-compatibility mechanism that allows ext4 filesystems to be accessible as ext3 if a system does not support ext4.) It suggests that the underlying filesystem under simfs is probably ext4.






share|improve this answer




















  • The 'i' attribute was indeed the problem. I have removed it, the time to rename the old web directory to web.old and to create a symbolic link to the source code management repository where I push changes to the code of my website. I set it back with chattr +i /var/www/clients/client1/web1. I learned the existence of attributes with this question... I'm a happier man :-)
    – AbVog
    Mar 25 at 14:17















up vote
3
down vote



accepted










The fact that the filesystem type of all your non-virtual filesystems is simfs suggests you're inside an OpenVZ Virtuozzo container.



The lower-case i in lsattr output indicates that the file or directory is set as immutable: even root must clear this attribute first before making any changes to it. With root access, you should be able to remove this with chattr -i /var/www/clients/client1/web1, but there is probably a reason why this was done in the first place; you should find out what the reason was and whether or not it's still applicable before removing it. There may be security implications.



The upper-case I in lsattr means the directory is being indexed using hashed tree structures; it should have no applications impact, other than possibly improved performance with directory listing operations. (Maybe the /var/www/clients/client1/web1/tmp directory can occasionally contain huge numbers of temporary files, slowing down the application?)



The lower-case e indicates "extent format", which is a new scheme of tracking disk block allocations introduced in ext4 file system type. (The attribute is related to backwards-compatibility mechanism that allows ext4 filesystems to be accessible as ext3 if a system does not support ext4.) It suggests that the underlying filesystem under simfs is probably ext4.






share|improve this answer




















  • The 'i' attribute was indeed the problem. I have removed it, the time to rename the old web directory to web.old and to create a symbolic link to the source code management repository where I push changes to the code of my website. I set it back with chattr +i /var/www/clients/client1/web1. I learned the existence of attributes with this question... I'm a happier man :-)
    – AbVog
    Mar 25 at 14:17













up vote
3
down vote



accepted







up vote
3
down vote



accepted






The fact that the filesystem type of all your non-virtual filesystems is simfs suggests you're inside an OpenVZ Virtuozzo container.



The lower-case i in lsattr output indicates that the file or directory is set as immutable: even root must clear this attribute first before making any changes to it. With root access, you should be able to remove this with chattr -i /var/www/clients/client1/web1, but there is probably a reason why this was done in the first place; you should find out what the reason was and whether or not it's still applicable before removing it. There may be security implications.



The upper-case I in lsattr means the directory is being indexed using hashed tree structures; it should have no applications impact, other than possibly improved performance with directory listing operations. (Maybe the /var/www/clients/client1/web1/tmp directory can occasionally contain huge numbers of temporary files, slowing down the application?)



The lower-case e indicates "extent format", which is a new scheme of tracking disk block allocations introduced in ext4 file system type. (The attribute is related to backwards-compatibility mechanism that allows ext4 filesystems to be accessible as ext3 if a system does not support ext4.) It suggests that the underlying filesystem under simfs is probably ext4.






share|improve this answer












The fact that the filesystem type of all your non-virtual filesystems is simfs suggests you're inside an OpenVZ Virtuozzo container.



The lower-case i in lsattr output indicates that the file or directory is set as immutable: even root must clear this attribute first before making any changes to it. With root access, you should be able to remove this with chattr -i /var/www/clients/client1/web1, but there is probably a reason why this was done in the first place; you should find out what the reason was and whether or not it's still applicable before removing it. There may be security implications.



The upper-case I in lsattr means the directory is being indexed using hashed tree structures; it should have no applications impact, other than possibly improved performance with directory listing operations. (Maybe the /var/www/clients/client1/web1/tmp directory can occasionally contain huge numbers of temporary files, slowing down the application?)



The lower-case e indicates "extent format", which is a new scheme of tracking disk block allocations introduced in ext4 file system type. (The attribute is related to backwards-compatibility mechanism that allows ext4 filesystems to be accessible as ext3 if a system does not support ext4.) It suggests that the underlying filesystem under simfs is probably ext4.







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 25 at 9:26









telcoM

10.6k11132




10.6k11132











  • The 'i' attribute was indeed the problem. I have removed it, the time to rename the old web directory to web.old and to create a symbolic link to the source code management repository where I push changes to the code of my website. I set it back with chattr +i /var/www/clients/client1/web1. I learned the existence of attributes with this question... I'm a happier man :-)
    – AbVog
    Mar 25 at 14:17

















  • The 'i' attribute was indeed the problem. I have removed it, the time to rename the old web directory to web.old and to create a symbolic link to the source code management repository where I push changes to the code of my website. I set it back with chattr +i /var/www/clients/client1/web1. I learned the existence of attributes with this question... I'm a happier man :-)
    – AbVog
    Mar 25 at 14:17
















The 'i' attribute was indeed the problem. I have removed it, the time to rename the old web directory to web.old and to create a symbolic link to the source code management repository where I push changes to the code of my website. I set it back with chattr +i /var/www/clients/client1/web1. I learned the existence of attributes with this question... I'm a happier man :-)
– AbVog
Mar 25 at 14:17





The 'i' attribute was indeed the problem. I have removed it, the time to rename the old web directory to web.old and to create a symbolic link to the source code management repository where I push changes to the code of my website. I set it back with chattr +i /var/www/clients/client1/web1. I learned the existence of attributes with this question... I'm a happier man :-)
– AbVog
Mar 25 at 14:17













 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f433318%2fpermission-and-directory-creation-issues-as-root-user-on-centos%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

Peggy Mitchell

Palaiologos

The Forum (Inglewood, California)