UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 16th, 2005, 04:20 PM
Enigma23 Enigma23 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Posts: 3 Enigma23 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 m 53 sec
Reputation Power: 0
Question Finding files with permission to execute

I know that its dangerous to have script that everyone can read and execute. Is it possible to find all of these types of files?

Reply With Quote
  #2  
Old April 16th, 2005, 05:28 PM
vgersh99 vgersh99 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 47 vgersh99 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 Days 5 h 41 m 53 sec
Reputation Power: 4
Send a message via AIM to vgersh99 Send a message via MSN to vgersh99 Send a message via Yahoo to vgersh99
man find

Reply With Quote
  #3  
Old April 17th, 2005, 01:30 PM
Enigma23 Enigma23 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Posts: 3 Enigma23 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 m 53 sec
Reputation Power: 0
Is it possible to use ls -al and do the same thing because when I do find / -type f -perm -o+rx I get a real long list of files that I dont see when I do ls-al

Reply With Quote
  #4  
Old April 20th, 2005, 11:08 AM
gruntz gruntz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 53 gruntz User rank is Private First Class (20 - 50 Reputation Level)gruntz User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 22 h 39 m 25 sec
Reputation Power: 5
Quote:
Originally Posted by Enigma23
when I do find / -type f -perm -o+rx I get a real long list of files that I dont see when I do ls-al


ls -al will only list your CWD. Find on the other hand will start at the dir that's supplied. In this case your starting at root. That's why your lists at different.

You can use "." like find . -typ.... and your results should be similiar.

Find can be very confusing at first but it can be very useful once you get the hang of it.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > Finding files with permission to execute


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway