Root unable to change ownership and modify permissions
Basil Chupin
blchupin at iinet.net.au
Tue Apr 20 06:54:16 UTC 2010
On 20/04/10 15:06, 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
>
Am I missing something here (and everywhere for that matter) but aren't
the commands for chown and chmod should read:
chown -R <login-name/owner-name>.<group-name> <directory-path-and-name>
<<<==Note the 'period'!
chmod -R u=rwx,g=rx,o= <directory-path-and-name>
where the u, g, and o parameters are set to the choice you want?
In the case above,
chown -R iamme.<group-name eg "users"> /media/Andrew/Protexted/Projects
BC
--
"I do not feel obliged to believe that the same God who has endowed us with sense, reason and intellect has intended us to forgo their use."
Galileo Galilei
More information about the kubuntu-users
mailing list