LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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


Reply
  Search this Thread
Old 01-11-2009, 12:26 PM   #1
tuftystick
Member
 
Registered: Jan 2009
Location: Scotland
Distribution: CentOS 5.3
Posts: 36

Rep: Reputation: 15
Thumbs down Chown Problems


Greetings All,

Firstly I am using the following server setup;

CentOS 5.2 w/ OpenVZ & HyperVM

I have backed up my clients VPS servers and moved the tar.gz to my external NAS drive.

I have just looked and they are all owned by eddie_vm and we are unable to chown them to ROOT via SSH as ROOT. details below;

Backup Files;

Code:
[root@node NAS]# ls -alh
total 9.6G
drwxrws---+ 2 nobody eddie_vm 0 Jan 11 18:26 .
drwxr-xr-x 29 root root 4.0K Jan 10 22:13 ..
-rw-rwxr--+ 1 eddie_vm eddie_vm 1.1G Jan 10 22:45 Maintenance-2.0-dmann.vm-2009-Jan-10-1231606743.tgz
-rw-rwxr--+ 1 eddie_vm eddie_vm 55M Jan 10 22:47 Maintenance-2.0-e.andersen.vm-2009-Jan-10-1231606816.tgz
-rw-rwxr--+ 1 eddie_vm eddie_vm 131M Jan 10 22:49 Maintenance-2.0-eddie_.vm-2009-Jan-10-1231606877.tgz
-rw-rwxr--+ 1 eddie_vm eddie_vm 3.1G Jan 10 23:09 Maintenance-2.0-hosting.vm-2009-Jan-10-1231618820.tgz
-rw-rwxr--+ 1 eddie_vm eddie_vm 199M Jan 10 22:51 Maintenance-2.0-hosttrde.vm-2009-Jan-10-1231618936.tgz
-rw-rwxr--+ 1 eddie_vm eddie_vm 468M Jan 10 22:53 Maintenance-2.0-mmcmackin.vm-2009-Jan-10-1231619259.tgz
-rw-rwxr--+ 1 eddie_vm eddie_vm 1.7G Jan 11 18:29 Maintenance-2.0-myvps3.vm-2009-Jan-10-1231622121.tgz
-rw-rwxr--+ 1 eddie_vm eddie_vm 2.8G Jan 10 23:22 Maintenance-2.0-n9ofu.vm-2009-Jan-10-1231619061.tgz
-rw-rwxr--+ 1 eddie_vm eddie_vm 247M Jan 10 22:54 Maintenance-2.0-tommyo123.vm-2009-Jan-10-1231619165.tgz
[root@node NAS]#
They shouldn't be owned by eddie_vm as it is just a clients VM...

Chown Output;

Code:
chown: changing ownership of `Maintenance-2.0-dmann.vm-2009-Jan-10-1231606743.tgz': Permission denied
chown: changing ownership of `Maintenance-2.0-e.andersen.vm-2009-Jan-10-1231606816.tgz': Permission denied
chown: changing ownership of `Maintenance-2.0-eddie_.vm-2009-Jan-10-1231606877.tgz': Permission denied
chown: changing ownership of `Maintenance-2.0-hosting.vm-2009-Jan-10-1231618820.tgz': Permission denied
chown: changing ownership of `Maintenance-2.0-hosttrde.vm-2009-Jan-10-1231618936.tgz': Permission denied
chown: changing ownership of `Maintenance-2.0-mmcmackin.vm-2009-Jan-10-1231619259.tgz': Permission denied
chown: changing ownership of `Maintenance-2.0-myvps3.vm-2009-Jan-10-1231622121.tgz': Permission denied
chown: changing ownership of `Maintenance-2.0-n9ofu.vm-2009-Jan-10-1231619061.tgz': Permission denied
chown: changing ownership of `Maintenance-2.0-tommyo123.vm-2009-Jan-10-1231619165.tgz': Permission denied
The DC said it might have something to do with the permissions having the "+" in them...

Any ideas?

Thanks.
 
Old 01-11-2009, 12:44 PM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
The + at the end of the permissions means that some ACL (access control lists) are set on these files (and the filesystem on which the files reside is ACL capable). At first you can check the ACL using the getfacl command and see if there is some additional permission which prevents to change the ownership.
 
Old 01-11-2009, 01:08 PM   #3
tuftystick
Member
 
Registered: Jan 2009
Location: Scotland
Distribution: CentOS 5.3
Posts: 36

Original Poster
Rep: Reputation: 15
This is what I got on one of the files;

Code:
[root@node NAS]# getfacl Maintenance-2.0-dmann.vm-2009-Jan-10-1231606743.tgz
# file: Maintenance-2.0-dmann.vm-2009-Jan-10-1231606743.tgz
# owner: eddie_vm
# group: eddie_vm
user::rw-
group::rwx
group:apache:rwx
mask::rwx
other::r--
Any ideas?

Thanks.
 
Old 01-11-2009, 05:23 PM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
These ACLs should not prevent root to modify the file's owner. What about the ACL list of the directory containing these files?
Code:
getfacl .
And what about the presence of some special attributes?
Code:
lsattr Maintenance-2.0-dmann.vm-2009-Jan-10-1231606743.tgz
 
Old 01-11-2009, 05:46 PM   #5
tuftystick
Member
 
Registered: Jan 2009
Location: Scotland
Distribution: CentOS 5.3
Posts: 36

Original Poster
Rep: Reputation: 15
This problem is fixed.

Thanks.
 
Old 01-11-2009, 05:47 PM   #6
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
Good to know. Can you just share the solution? You know... we all are curious here at LQ!
 
Old 01-12-2009, 09:36 AM   #7
TuxSurfer
Member
 
Registered: May 2004
Location: NC USA
Distribution: Fedora 23 - Cinnamon Spin
Posts: 270

Rep: Reputation: 32
I would also like to know what solved this for you.
 
Old 01-12-2009, 09:50 AM   #8
saagar
Member
 
Registered: Jul 2008
Location: Chennai, India
Distribution: RHEL5, Ubuntu
Posts: 191

Rep: Reputation: 37
I think for "security reasons" he does not want to disclose how he fixed it...! congrats.

Last edited by saagar; 01-12-2009 at 09:51 AM.
 
Old 01-12-2009, 12:18 PM   #9
tuftystick
Member
 
Registered: Jan 2009
Location: Scotland
Distribution: CentOS 5.3
Posts: 36

Original Poster
Rep: Reputation: 15
Hey guys,

All I did was demounted my NAS drive reloaded my OS and then mounted it again and they were owned by ROOT again.

Thanks.
 
Old 01-12-2009, 01:53 PM   #10
TuxSurfer
Member
 
Registered: May 2004
Location: NC USA
Distribution: Fedora 23 - Cinnamon Spin
Posts: 270

Rep: Reputation: 32
Brilliant! Thank You!
 
  


Reply


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
chown problems Shay Linux - General 9 04-16-2007 03:34 PM
chown lsu420luv Linux - Newbie 3 04-18-2006 06:08 PM
problems with chown and chgrp apax Linux - Software 6 11-03-2003 04:44 PM
chown problems phantom0810 Linux - General 11 04-26-2003 01:04 PM
chown Sathe Linux - General 13 10-14-2002 12:25 PM


All times are GMT -5. The time now is 11:08 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration