Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm trying to deploy a rails app and i've done it before, but this time i'm having a weird issue.

Why can i not run this chmod command? I'm currently logged in as user: csmsched

-bash-3.2$ pwd
/var/www/vhosts/mysite.com/staging
-bash-3.2$ ls -al
total 40
drwxrwxrwx  6 csmsched psaserv 4096 Mar 18 16:05 .
drwxr-xr-x 14 root     root    4096 Mar 18 15:37 ..
drwxrwxrwx  2 csmsched psacln  4096 Mar 18 10:52 css
-rwxrwxrwx  1 csmsched psacln  1150 Mar 18 10:52 favicon.ico
drwxrwxrwx  6 csmsched psacln  4096 Mar 18 10:52 img
-rwxrwxrwx  1 csmsched psacln  8997 Mar 18 10:52 index.html
drwxrwxrwx  2 csmsched psacln  4096 Mar 18 10:52 mt_images
drwxrwxrwx 11 csmsched psacln  4096 Mar 18 10:52 test
-bash-3.2$ chmod g+w /var/www/mysite.com/staging/
chmod: changing permissions of `/var/www/mysite.com/staging/': Operation not permitted
-bash-3.2$ 
share|improve this question
    
Although your problem was solved, lsattr and chattr -i (as superuser) is another potential place to look ... -i is for immutable. –  0xC0000022L Mar 19 '13 at 0:22

1 Answer 1

up vote 2 down vote accepted

You mistyped the directory name.

Instead of /var/www/vhosts/mysite.com/staging your chmod command contains /var/www/mysite.com/staging.

share|improve this answer
    
Ahh thanks for pointing out the obvious. –  Catfish Mar 18 '13 at 23:24

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.