AFS + chown

Love lha at stacken.kth.se
Fri Aug 16 13:01:41 CEST 2002


"Aaron J. Angel" <aangel at myrealbox.com> writes:

> For some reason, when I'm root, chown doesn't work correctly with AFS;
> I get "chown: Operation permitted".  Any idea why this would be?  It
> works fine as my normal user, it seems, but not as root.  Any ideas?


staffan:/afs/e.kth.se/home/staff/lha/Public# klist | head -2
Credentials cache: FILE:/tmp/krb5cc_iy3HPC
        Principal: lha/root at E.KTH.SE
staffan:/afs/e.kth.se/home/staff/lha/Public# uname -a
Linux staffan.e.kth.se 2.4.17-ELEKTRO-PII-1 #1 Thu Jan 10 19:16:23 CET 2002 i686 unknown
staffan:/afs/e.kth.se/home/staff/lha/Public# id
uid=0(root) gid=0(wheel) groups=0(wheel),2(kmem),3(sys),4(tty),5(operator),20(staff),31(guest)
staffan:/afs/e.kth.se/home/staff/lha/Public# chown root index.html
staffan:/afs/e.kth.se/home/staff/lha/Public# ls -l index.html
-r--r--r--    1 root     65534        1630 Aug 15 18:45 index.html
staffan:/afs/e.kth.se/home/staff/lha/Public# chown lha index.html
staffan:/afs/e.kth.se/home/staff/lha/Public# ls -l index.html
-r--r--r--    1 lha      65534        1630 Aug 15 18:45 index.html


Works for me. You are not allowed to chown stuff if you don't have tokens
that permit that. Did you have tokens when running as root ?

Love





More information about the Arla-drinkers mailing list