ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] find -- запарился...
@ 2004-01-15 10:21 Evgeny Yugov
  2004-01-15 11:34 ` Antonio
  0 siblings, 1 reply; 4+ messages in thread
From: Evgeny Yugov @ 2004-01-15 10:21 UTC (permalink / raw)
  To: All

Здравствуйте All,

Стоит задача, с определенного пути, найти файлы и каталоги которые
имеют _не_ указанного овнера и группу...

find $SCANPATH -type f -not -user apache -ls

пашет нормалек, добавляю группу:

find $SCANPATH -type f -not -user apache -not -group webmaster -ls

соответственно фига, пляски с -or не спасли, может я чего не так
делаю? :o/

далее нужно проверить права

[john@bug0 john]$ find /var/www/virt/ -type d -not -perm rwxrwxrwx -ls
find: неверный режим 'rwxrwxrwx'

эээ в 100-ый раз ползем в man:
...
       -perm mode
              File's permission bits are exactly  mode  (octal  or  symbolic).
              Symbolic modes use mode 0 as a point of departure.
...

шо за мода такая? :o/


-- 
With Best regards,
Evgeny Yugov,
MTS, programmer of Advanced Technologies Departament.
Registered Linux User #316667
mailto:yugov@scs-900.ru

Origin: Лень - это подсознательная мудрость.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-01-16  8:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-15 10:21 [Comm] find -- запарился Evgeny Yugov
2004-01-15 11:34 ` Antonio
2004-01-16  4:09   ` Re[2]: " Evgeny Yugov
2004-01-16  8:51     ` Antonio

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git