[linux] setfacl: subor: Permission denied
Kasr-Fodrek
fodrek na kasr.elf.stuba.sk
Čtvrtek Září 5 15:15:32 CEST 2002
----- Original Message -----
From: Oskar Stolc <stolc na intrak.sk>
To: <linux na lists.linux.sk>
Sent: Thursday, September 05, 2002 2:48 PM
Subject: [linux] setfacl: subor: Permission denied
> caute,
>
>
> maturujem tu s acl-kami, mozno robim trivialnu chybu, ale neviem aku...
>
>
> # cd /tmp
> # mkdir test
> # ls -ld test
>
> drwxr-xr-x 2 root root 6 Sep 5 14:32 test/
>
> # cd test
> # echo aaa > subor
> # ls -l
>
> -rw-r--r-- 1 root root 4 Sep 5 14:33 subor
>
> # getfacl subor
>
> # file: subor
> # owner: root
> # group: root
> user::rw-
> group::r--
> other::r--
>
> # setfacl -m u:stolc:rw- subor
> # getfacl subor > acl
> # cat acl
>
> # file: subor
> # owner: root
> # group: root
> user::rw-
> user:stolc:rw-
> group::r--
> mask::rw-
> other::r--
>
> # rm subor
> # echo aaa > subor
> # setfacl --restore=acl
>
> setfacl: subor: Permission denied
>
ake prava ma subor pred tym ako spustis setfacl?
mozno by ta posledna sekvencia mala zmenit prava...
# rm subor
# echo aaa > subor
# chmod 777 subor
# setfacl --restore=acl
tu 777 neber samozrejme vazne :)))))) Bohvie co je tam za masku a ake uid
pouziva ten soft...
a ci meni euid na vlastnika pri volbe --restore
Peto...
Další informace o konferenci linux