Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Coquille dans le 'security-handbook'
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
OXiDiUS
n00b
n00b


Joined: 18 Mar 2007
Posts: 23

PostPosted: Sat Feb 28, 2009 10:40 pm    Post subject: Coquille dans le 'security-handbook' Reply with quote

Bonjour tout le monde,

Je voulais juste signaler une petite erreur dans la version française du security-handbook :

http://www.gentoo.org/doc/fr/security/security-handbook.xml?part=1&chap=6

Paragraphe 6.b. :

Code:
# find / -type f \( -perm -2 -o -perm -20 \) \ -exec ls -lg {} \; 2>/dev/null >writable.txt
# find / -type d \( -perm -2 -o -perm -20 \) \ -exec ls -ldg {} \; 2>/dev/null >>writable.txt


Et dans la version anglaise, les bonnes commandes :

Code:
# find / -type f \( -perm -2 -o -perm -20 \) -exec ls -lg {} \; 2>/dev/null >writable.txt
# find / -type d \( -perm -2 -o -perm -20 \) -exec ls -ldg {} \; 2>/dev/null >>writable.txt


Bonne soirée :)

edit: de même pour le paragraphe 6.c. :
Code:
find / -type f \( -perm -004000 -o -perm -002000 \) \ -exec ls -lg {} \; 2>/dev/null >suidfiles.txt

Code:
find / -type f \( -perm -004000 -o -perm -002000 \) -exec ls -lg {} \; 2>/dev/null >suidfiles.txt


Last edited by OXiDiUS on Sun Mar 01, 2009 2:16 am; edited 1 time in total
Back to top
View user's profile Send private message
OXiDiUS
n00b
n00b


Joined: 18 Mar 2007
Posts: 23

PostPosted: Sun Mar 01, 2009 2:12 am    Post subject: Reply with quote

Il me semble que même avec une bonne syntaxe, cette commande ne renvoie par le résultat attendu.

Ces commandes devraient retourner les fichiers (respectivement les répertoires) qui sont accessibles en écriture à tous, autrement dit aux 'autres'. Or la première commande retourne tous les fichiers qui sont accessibles en écriture aux propriétaires (utilisateur+groupe)...

Cette commande retourne le bon résultat :

Code:
find / -type f \( -perm -o+w \) -exec ls -lg {} \; 2>/dev/null >writable.txt
find / -type d \( -perm -o+w \) -exec ls -ldg {} \; 2>/dev/null >>writable.txt


Bonne soirée ;)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum