Skip to main content
Added link to man page, fixed formatting of man page extract, fixed various typos, and added list formatting
Source Link

inIn the manualmanual you can find  :

Operators Operators join together the other items within the expression. They include for example -o (meaning logical OR) and -a (meaning logical AND). Where an operator is missing, -a is assumed.

Operators
              Operators join together the other items within the expression.
              They include for example -o (meaning logical OR) and -a
              (meaning logical AND).  Where an operator is missing, -a is
              assumed.

So litterallyliterally \( -perm -0002 -a ! -perm -1000 \) means : perm = 0002 and not perm = 1000

perm = 0002 means writeable for Others
perm = 1000 means sticky bit is set.

So this expression search for file writable for Other and without sticky bit sets.

Looking for directory is done with -type d d means directory so find look after object of type directory

fromFrom the find manual, -perm has several forms  : -perm 0002 will match all files with this exact permission setting -perm -0002 will match all files where this right bit is setup, (which means 0772, 1752... whatever combination if the file is writeble for others)

  • -perm 0002 will match all files with this exact permission setting
  • -perm -0002 will match all files where this right bit is setup, (which means 0772, 1752... whatever combination if the file is writeable for others)

in the manual you can find  :

Operators Operators join together the other items within the expression. They include for example -o (meaning logical OR) and -a (meaning logical AND). Where an operator is missing, -a is assumed.

So litterally \( -perm -0002 -a ! -perm -1000 \) means : perm = 0002 and not perm = 1000

perm = 0002 means writeable for Others
perm = 1000 means sticky bit is set.

So this expression search for file writable for Other and without sticky bit sets.

Looking for directory is done with -type d d means directory so find look after object of type directory

from the find manual, -perm has several forms  : -perm 0002 will match all files with this exact permission setting -perm -0002 will match all files where this right bit is setup, (which means 0772, 1752... whatever combination if the file is writeble for others)

In the manual you can find:

Operators
              Operators join together the other items within the expression.
              They include for example -o (meaning logical OR) and -a
              (meaning logical AND).  Where an operator is missing, -a is
              assumed.

So literally \( -perm -0002 -a ! -perm -1000 \) means : perm = 0002 and not perm = 1000

perm = 0002 means writeable for Others
perm = 1000 means sticky bit is set.

So this expression search for file writable for Other and without sticky bit sets.

Looking for directory is done with -type d d means directory so find look after object of type directory

From the find manual, -perm has several forms:

  • -perm 0002 will match all files with this exact permission setting
  • -perm -0002 will match all files where this right bit is setup, (which means 0772, 1752... whatever combination if the file is writeable for others)
added 11 characters in body
Source Link
ilkkachu
  • 147.9k
  • 16
  • 268
  • 441

in the manual you can find :

Operators Operators join together the other items within the expression. They include for example -o (meaning logical OR) and -a (meaning logical AND). Where an operator is missing, -a is assumed.

So litterally \( -perm -0002 -a ! -perm -1000 \) means : perm = 0002 and not perm = 1000

perm = 0002 means writeable for Others 
perm = 1000 means sticky bit is set.

So this expression search for file writable for Other and without sticky bit sets.

Looking for directory is done with -type d d means directory so find look after object of type directory

from the find manual, -perm has several forms : -perms 0002-perm 0002 will match all files with this exact permission setting -perms -0002-perm -0002 will match all files where this right bit is setup, (which means 07720772,1752 1752...whatever whatever combination if the file is writeble for others)

in the manual you can find :

Operators Operators join together the other items within the expression. They include for example -o (meaning logical OR) and -a (meaning logical AND). Where an operator is missing, -a is assumed.

So litterally \( -perm -0002 -a ! -perm -1000 \) means : perm = 0002 and not perm = 1000

perm = 0002 means writeable for Others perm = 1000 means sticky bit is set.

So this expression search for file writable for Other and without sticky bit sets.

Looking for directory is done with -type d d means directory so find look after object of type directory

from the find manual, -perm has several forms : -perms 0002 will match all files with this exact permission setting -perms -0002 will match all files where this right bit is setup, (which means 0772,1752...whatever combination if the file is writeble for others)

in the manual you can find :

Operators Operators join together the other items within the expression. They include for example -o (meaning logical OR) and -a (meaning logical AND). Where an operator is missing, -a is assumed.

So litterally \( -perm -0002 -a ! -perm -1000 \) means : perm = 0002 and not perm = 1000

perm = 0002 means writeable for Others 
perm = 1000 means sticky bit is set.

So this expression search for file writable for Other and without sticky bit sets.

Looking for directory is done with -type d d means directory so find look after object of type directory

from the find manual, -perm has several forms : -perm 0002 will match all files with this exact permission setting -perm -0002 will match all files where this right bit is setup, (which means 0772, 1752... whatever combination if the file is writeble for others)

added 258 characters in body
Source Link
netmonk
  • 1.9k
  • 1
  • 15
  • 20

in the manual you can find :

Operators Operators join together the other items within the expression. They include for example -o (meaning logical OR) and -a (meaning logical AND). Where an operator is missing, -a is assumed.

So litterally \( -perm -0002 -a ! -perm -1000 \) means : perm = 0002 and not perm = 1000

perm = 0002 means writeable for Others perm = 1000 means sticky bit is set and only that.

So this expression search for file writable for Other and without sticky bit sets.

Looking for directory is done with -type d d means directory so find look after object of type directory

from the find manual, -perm has several forms : -perms 0002 will match all files with this exact permission setting -perms -0002 will match all files where this right bit is setup, (which means 0772,1752...whatever combination if the file is writeble for others)

in the manual you can find :

Operators Operators join together the other items within the expression. They include for example -o (meaning logical OR) and -a (meaning logical AND). Where an operator is missing, -a is assumed.

So litterally \( -perm -0002 -a ! -perm -1000 \) means : perm = 0002 and not perm = 1000

perm = 0002 means writeable for Others perm = 1000 means sticky bit is set and only that.

So this expression search for file writable for Other and without sticky bit sets.

Looking for directory is done with -type d d means directory so find look after object of type directory

in the manual you can find :

Operators Operators join together the other items within the expression. They include for example -o (meaning logical OR) and -a (meaning logical AND). Where an operator is missing, -a is assumed.

So litterally \( -perm -0002 -a ! -perm -1000 \) means : perm = 0002 and not perm = 1000

perm = 0002 means writeable for Others perm = 1000 means sticky bit is set.

So this expression search for file writable for Other and without sticky bit sets.

Looking for directory is done with -type d d means directory so find look after object of type directory

from the find manual, -perm has several forms : -perms 0002 will match all files with this exact permission setting -perms -0002 will match all files where this right bit is setup, (which means 0772,1752...whatever combination if the file is writeble for others)

Source Link
netmonk
  • 1.9k
  • 1
  • 15
  • 20
Loading