LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Closed Thread
 
Search this Thread
Old 04-06-2010, 08:26 AM   #1
painterj
LQ Newbie
 
Registered: Apr 2010
Posts: 10

Rep: Reputation: 0
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.
 
Old 04-06-2010, 09:10 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,613

Rep: Reputation: 518Reputation: 518Reputation: 518Reputation: 518Reputation: 518Reputation: 518
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?
 
Old 04-06-2010, 09:34 AM   #3
painterj
LQ Newbie
 
Registered: Apr 2010
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by AlucardZero View Post
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.
 
Old 04-06-2010, 10:05 AM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,613

Rep: Reputation: 518Reputation: 518Reputation: 518Reputation: 518Reputation: 518Reputation: 518
can you post the output of "mount" ?
 
Old 04-06-2010, 10:14 AM   #5
painterj
LQ Newbie
 
Registered: Apr 2010
Posts: 10

Original Poster
Rep: Reputation: 0
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]#
 
Old 04-06-2010, 01:48 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,966
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
Who owns crocbits?
ls -ld /home/crocbits
 
Old 04-06-2010, 02:00 PM   #7
painterj
LQ Newbie
 
Registered: Apr 2010
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Tinkster View Post
Who owns crocbits?
ls -ld /home/crocbits
crocbits
 
Old 04-07-2010, 04:20 AM   #8
painterj
LQ Newbie
 
Registered: Apr 2010
Posts: 10

Original Poster
Rep: Reputation: 0
Anyone got any ideas? I've lost so much traffic with the site being down for days now.
 
Old 04-07-2010, 04:31 AM   #9
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,966
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
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
 
Old 04-07-2010, 07:34 AM   #10
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,613

Rep: Reputation: 518Reputation: 518Reputation: 518Reputation: 518Reputation: 518Reputation: 518
No.. ask your host for support.
 
Old 04-07-2010, 10:39 AM   #11
painterj
LQ Newbie
 
Registered: Apr 2010
Posts: 10

Original Poster
Rep: Reputation: 0
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.
 
Old 04-09-2010, 09:40 PM   #12
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,966
Blog Entries: 11

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


Closed Thread

Tags
cant, permissions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] chown: changing ownership of `<file>': Operation not permitted schuurs Linux - General 14 06-26-2013 05:15 PM
chmod says operation not permitted lewyx Linux - Newbie 5 10-12-2009 10:00 AM
Logged in as "root"/Fedora 8 but get "Operation not permitted" when using "chmod etc gosunlee Linux - Newbie 7 02-10-2008 05:56 AM
chmod chown permissions not working operation not allowed UMG:Chicken_Sop Slackware 1 11-06-2007 12:15 AM
Changing permissions for one operation... closet geek Linux - General 11 07-12-2003 10:53 PM


All times are GMT -5. The time now is 07:20 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration