Root unable to change ownership and modify permissions

Gene Heskett gene.heskett at verizon.net
Tue Apr 20 10:42:54 BST 2010


On Tuesday 20 April 2010, I Am Me wrote:
>Hi Guys,
>
>I am trying to change the ownership and permissions on a directory using
> the root login and am not able to do it. Here is what I have been trying :
>
>root at thishost:~# whoami; ls -ld /media/Andrew/Protected/Projects/
>root
>drwxrwxrwx 1 root root 4096 2010-04-05 09:52
> /media/Andrew/Protected/Projects/ root at thishost:~# chown -R iamme
> /media/Andrew/Protected/Projects/
>root at thishost:~# ls -ld /media/Andrew/Protected/Projects/
>drwxrwxrwx 1 root root 4096 2010-04-05 09:52
> /media/Andrew/Protected/Projects/ root at thishost:~# chmod 755
> /media/Andrew/Protected/Projects/
>root at thishost:~# ls -ld /media/Andrew/Protected/Projects/
>drwxrwxrwx 1 root root 4096 2010-04-05 09:52
> /media/Andrew/Protected/Projects/ root at thishost:~#
>
>I don't know If I am missing something very insignificant, and if yes I am
> not able to catch it
>
lsattr and chattr might be your friends there, but beware that they are the 
favorite tool of the rootkit folks, used to keep you from fixing their 
damages.

-- 
Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
We promise according to our hopes, and perform according to our fears.



More information about the kubuntu-users mailing list