1830769 Members
2657 Online
110015 Solutions
New Discussion

Permission issue

 
SOLVED
Go to solution
Pramod M
Regular Advisor

Permission issue

Hi,
I am facing a problem related to directory permission / owbership. It was found during backup failure.

drwxrwx--- 2 webtest isdads 2048 Feb 8 12:16 uploadedfiles

I changed the directoy ownership by chown to root:root from user webtest.
$ chown root:root uploadedfiles
$ chmod 777 uploadedfiles
chmod: can't change uploadedfiles: Not owner

Now from even root I am not able to change the permission / ownership of the folder. Also I am not able to revert back the ownership to webtest:isdads.

# chmod 777 uploadedfiles
chmod: can't change uploadedfiles: Not owner
# chown webtest:isdads uploadedfiles
uploadedfiles: Not owner

Now I need to give full permisson 777 to that folder.

drwxrwxrwx 2 webtest isdads 2048 Feb 8 12:16 uploadedfiles

How can I achive this.

Thanks in advance..

Pramod
5 REPLIES 5
Bill Hassell
Honored Contributor
Solution

Re: Permission issue

Is uploadedfiles an NFS mountpoint? If yes, then contact the server owner and change the export permissions to allow remote root access.


Bill Hassell, sysadmin
singh sanjeev
Trusted Contributor

Re: Permission issue

$ chown root:root uploadedfiles
By above action you have change the users to root so below chmod can only be executed with root account..if am not wrong..

do ..
#ls -ld uploadedfiles

So try with root to adapt the permission.

$ chmod 777 uploadedfiles
Sanjeev Singh
Elmar P. Kolkman
Honored Contributor

Re: Permission issue

If you do:
$ bdf uploadedfiles

What does it show for the provider of the directory? Is it on a lvol, NFS, CIFS or something else?

You can change the ownership of your own files and directories, but the root on your system apperently doesn't have super-user access to this directory.

You haven't mentioned what OS you run. Perhaps mentioning things like OS and version and some more info on the directory/filesystem, we might be able to help further.
Every problem has at least one solution. Only some solutions are harder to find.
Pramod M
Regular Advisor

Re: Permission issue

Hi ..
Sorry for my mistake ... That updatefiles was an NFS and i resoled it from the source server..

Thanks for the replies...
Unluckly the itrc forum site also was not working today morninig....

Thnkas very much..
Closing this thread
Pramod M
Regular Advisor

Re: Permission issue

see arlier post