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

Re: Réf. : Re: Bizarre ....



edi.stojicevic@ccf.com a écrit :

> Et pourtant :
> 
> ~/tmp# echo test1 > file
> ~/tmp# chmod a-w file
> ~/tmp# ls -l
> total 1
> -r--r--r--    1 root     root            6 Aug 10 16:08 file
> ~/tmp# echo test2 >> file
> ~/tmp# cat file
> test1
> test2
> 
> A noter que la même manip ne fonctionne pas quand je ne suis pas root.
> 
> Étais-tu root sur la machine HP-UX ?
> 
> >> oui malheureusement ...
> >> Es-tu sous Debian ?
> >> Quelqu'un a-t-il une machine sous un autre OS (redhat, suse, ...) pour
> nous confirmer ?

Sur SuSE:

yann@cray:~ > echo test > test
yann@cray:~ > l test
-rw-r--r--   1 yann     users           5 aoû 10 16:32 test
yann@cray:~ > chmod a-w test
yann@cray:~ > l test
-r--r--r--   1 yann     users           5 aoû 10 16:32 test
yann@cray:~ > echo test2 >> test
bash: test: Permission non accordée

cray:~ # echo test > test
cray:~ # l test
-rw-r--r--   1 root     root            5 Aug 10 16:34 test
cray:~ # chmod a-w test
cray:~ # l test
-r--r--r--   1 root     root            5 Aug 10 16:34 test
cray:~ # echo test2 >> test
cray:~ # cat test
test
test2

Yann

-- 
Yann Forget, System administrator, http://www.ynternet.org
Non profit organization serving young social entrepreneurs
Portal & cybercenters for developing countries
Tel.: +41-21-3113047



Reply to: