Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Command "find" hide "no permission" prin
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
pinnockio
Apprentice
Apprentice


Joined: 08 Jun 2002
Posts: 162

PostPosted: Thu Mar 04, 2004 10:08 am    Post subject: Command "find" hide "no permission" prin Reply with quote

Hello,

Is there an option by which the command "find" doesn't display the lines "permission denied" for directories a normal user doesn't have access rights to. On a stand alone computer this ain't that frustrating, but when trying to find something on our university server with a lot of student accounts,... .

Kind regards,


A belgian Gentoo user
Back to top
View user's profile Send private message
CheshireCat
Guru
Guru


Joined: 25 Aug 2002
Posts: 572

PostPosted: Thu Mar 04, 2004 10:10 am    Post subject: Reply with quote

I can't get at my system to check right now, but I believe those messages are directed to stderr, and that you could use something like this:
Code:
find / -name whatever 2>/dev/null

to get rid of the errors while keeping the normal find output.
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Thu Mar 04, 2004 10:20 am    Post subject: Reply with quote

Code:
find (-user $YOU -perm -ur) -or (-group $YOUR -perm -gr) -or -perm -or

man find.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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