LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   chmod: changing permissions of `public_html': Operation not permitted (http://www.linuxquestions.org/questions/linux-newbie-8/chmod-changing-permissions-of-%60public_html-operation-not-permitted-800340/)

painterj 04-06-2010 08:26 AM

chmod: changing permissions of `public_html': Operation not permitted
 
Hi everyone,

I run a small site and today I've discovered that my site is down. I found that cPanel has flagged the account suspended even though I haven't got any quotas on the account. I don't know what went wrong. I've tried to unsuspend the account in WHM but a certain part of the function failed.

Quote:

safe_userchgid: chown: /home/crocbits/public_html: Operation not permitted at /scripts/cPScript/SafetyBits.pm line 93.
After searching the internet someone mentioned that the problem might lie in the permissions of the public_html folder. I had a look at the permissions and the folder had no permissions d---------

When I try to chmod the folder I get this error:

Quote:

chmod: changing permissions of `public_html': Operation not permitted
I have no idea what to do next. All the files in the directory are locked too. I tried to move them but this command isn't allowed either. I ran these commands under the 'root' user in SSH.

Your help would be greatly appreciated.

AlucardZero 04-06-2010 09:10 AM

What are the permissions on /home/crocbits? Can you change the perms on /home/crocbits/public_html as crocbits instead of as root?

Is /home/crocbits or /home an NFS mount? If so do you have write permission to it and is it exported with root_squash?

painterj 04-06-2010 09:34 AM

Quote:

Originally Posted by AlucardZero (Post 3926195)
What are the permissions on /home/crocbits? Can you change the perms on /home/crocbits/public_html as crocbits instead of as root?

Is /home/crocbits or /home an NFS mount? If so do you have write permission to it and is it exported with root_squash?

Ok, I tried changing the permissions of /home/crocbits/public_html as logged in as crocbits too. Got the same error. The permissions of /home/crocbits are drwx--x--x

Im not too sure what is meant by NFS mount. It's a VPS. The fstab looks like this:

Quote:

root@main [/dev]# cat /etc/fstab
none /dev/pts devpts rw 0 0
/tmp /var/tmp ext3 defaults,bind,noauto 0 0
root@main [/dev]#
The df command gives this output:

Quote:

root@main [/dev]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/vzfs 52428800 25395868 27032932 49% /
/dev/simfs 52428800 25395868 27032932 49% /tmp
/dev/simfs 52428800 25395868 27032932 49% /var/tmp
root@main [/dev]#
Everything worked fine until a day or so ago. Thanks for the help so far.

AlucardZero 04-06-2010 10:05 AM

can you post the output of "mount" ?

painterj 04-06-2010 10:14 AM

Here you go:

Quote:

root@main [/dev]# mount
/dev/vzfs on / type reiserfs (rw,usrquota,grpquota)
/dev/simfs on /tmp type simfs (rw,nosuid,nodev,noexec)
/dev/simfs on /var/tmp type simfs (rw,nosuid,nodev,noexec)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
none on /dev/pts type devpts (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
root@main [/dev]#

Tinkster 04-06-2010 01:48 PM

Who owns crocbits?
ls -ld /home/crocbits

painterj 04-06-2010 02:00 PM

Quote:

Originally Posted by Tinkster (Post 3926524)
Who owns crocbits?
ls -ld /home/crocbits

crocbits

painterj 04-07-2010 04:20 AM

Anyone got any ideas? I've lost so much traffic with the site being down for days now.

Tinkster 04-07-2010 04:31 AM

Well ... the only thing (given the perms and mount-options) that
I can think of would be some sort of file-system corruption going
on on that box ... but then again, I have no idea what kind of
set-up that is, how /dev/vzfs came into being and whether or not
you have the facilities to boot into runlevel 1 and do a manual
fsck on the thing.

Shared hosting is really nothing I had any dealings with ...


Cheers,
Tink

AlucardZero 04-07-2010 07:34 AM

No.. ask your host for support.

painterj 04-07-2010 10:39 AM

I've deleted the account through WHM and restored an older backup. The directory still exists and can't be deleted. It's an unmanaged VPS server so they don't provide any support.

Tinkster 04-09-2010 09:40 PM

Please continue at http://www.linuxquestions.org/questi...backup-800985/


All times are GMT -5. The time now is 06:59 PM.