Rechercher : dans
Par :

Débutant Linux

Dernière réponse le 5 jui 2009 à 20:16:33 andcoul, le 5 jui 2009 à 19:05:00 
 Signaler ce message aux modérateurs

Bonjour,
Je voudrais rechercher les fichiers dont l'UID est comprise entre 500 et 799 (nom, UID et GID uniquement).
Merci

Configuration: Windows XP
Firefox 3.0.11

Meilleures réponses pour « Débutant Linux » dans :
[Linux] Débuter sous Linux VoirDÉBUTER SOUS LINUX Qu'est-ce que Linux ? Si vous venez de Windows I - LES LIVE-CDS I-1 Quelles distributions choisir ? I-2 Utilisation II - INSTALLER LINUX II-1 Partitionner son disque dur II-2 Multiboot Windows/Linux II-3 Quelles...
Choisir une distribution Linux VoirChoisir sa distribution GNU/Linux est loin d'être évident ! Surtout quand on débute sur la banquise ;-) Ceci n'a pas la prétention de promouvoir une distribution au détriment des autres. C'est plutôt une liste de solutions classées par...
[Programmation] Comment débuter, quel langage? VoirComment débuter, quel langage? Introduction Ceux que l'on peut utiliser Delphi/Pascal Java Python .Net Smalltalk Ceux que l'on peut utiliser à la rigueur C/C++ PHP Ada Lisp/Caml/... Ceux que l'on peut ne pas utiliser
Introduction à Linux VoirHistorique et génèse de Linux Linus B.Torvalds est à l'origine de ce système d'exploitation entièrement libre. Au début des années 90, il voulait mettre au point son propre système d'exploitation pour son projet de fin d'étude. Linus Torvalds...

1

adrio_8854, le 5 jui 2009 à 19:21:44

C'est quoi de ces trucs ???

UID GID ?

Répondre à adrio_8854

2

andcoul, le 5 jui 2009 à 20:01:15

UID identifiant des utilisateurs,
GID identifiant des groupes d'utilisateurs
Merci

Répondre à andcoul

3

 Non2, le 5 jui 2009 à 20:16:33

Bonjour,

UID = User ID = identification d'utilisateur
GID = Group ID = identification de groupe d'utilisateur

En faisant man find, j'ai vu ces possibilités d'utilisation (peut-être possible de coupler avec | grep) :

-gid n File’s numeric group ID is n.

-group gname
File belongs to group gname (numeric group ID allowed).

...

find . -perm 664

Search for files which have read and write permission for their owner, and group, but which other users can read but not write to. Files which meet these criteria but have other permissions bits set (for example if someone can execute the file)
will not be matched.

find . -perm -664

Search for files which have read and write permission for their owner and group, and which other users can read, without regard to the presence of any extra permission bits (for example the executable bit). This will match a file which has mode 0777, for example.

find . -perm /222

Search for files which are writable by somebody (their owner, or their group, or anybody else).

find . -perm /220
find . -perm /u+w,g+w
find . -perm /u=w,g=w

All three of these commands do the same thing, but the first one uses the octal representation of the file mode, and the other two use the symbolic form. These commands all search for files which are writable by either their owner or their group. The files don’t have to be writable by both the owner and group to be matched; either will do.

find . -perm -220
find . -perm -g+w,u+w

Both these commands do the same thing; search for files which are writable by both their owner and their group.

find . -perm -444 -perm /222 ! -perm /111
find . -perm -a+r -perm /a+w ! -perm /a+x

These two commands both search for files that are readable for everybody (-perm -444 or -perm -a+r), have at least on write
bit set (-perm /222 or -perm /a+w) but are not executable for anybody (! -perm /111 and ! -perm /a+x respectively)


J'espère que ça pourra être utile, mais je ne suis pas spécialiste. Si les hommes ne devaient parler qu'en connaissance de cause, un silence de mort tomberait sur la terre. (Anne O'Nym)

Répondre à Non2