[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

chown



Hi.

My question is really very simple, I believe.

I have a user called "teste"

aluno@maq13:~$ id teste
uid=1001(teste) gid=1001(teste) grupos=1001(teste)


I am user "aluno" and as so, I create a directory in my own $HOME

aluno@maq13:~$ mkdir trash
aluno@maq13:~$ ls -ld trash
drwxr-xr-x 2 aluno aluno 4096 2006-08-14 23:09 trash

I want the user called "teste" to be the owner of this directory

aluno@maq13 :~$ chown teste trash
chown: mudando permissões de `trash': Operação não permitida

That means "aluno" cannot do this.


Can someone explain me why he can't ?


More info:

aluno@maq13 :~$ uname -a
Linux maq13 2.6.15-1-486 #2 Mon Mar 6 15:19:16 UTC 2006 i686 GNU/Linux

aluno@maq13:~$ cat /etc/debian_version
testing/unstable

aluno@maq13:~$ ls -l /bin/ch*
-rwxr-xr-x 1 root root 33588 2006-05-27 17:28 /bin/chgrp
-rwxr-xr-x 1 root root 30800 2006-05-27 17:28 /bin/chmod
-rwxr-xr-x 1 root root 35912 2006-05-27 17:28 /bin/chown



Thanks for help.

Reply to: