The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > Security
Google UNIX.COM
Home Forums Register Rules & FAQ Members List Arcade Search Today's Posts Mark Forums Read


Security Anything involving computer security goes here.


Other UNIX.COM Threads You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
listing sequential files as one group... kentm UNIX for Advanced & Expert Users 1 01-24-2007 02:11 PM
find file with date and recursive search for a text rosh0623 UNIX for Advanced & Expert Users 10 08-16-2006 11:27 AM
Recursive Search and replace only when found string umen Shell Programming and Scripting 1 05-07-2006 10:20 AM
group by in files :-) hellsd UNIX for Dummies Questions & Answers 10 06-22-2005 08:47 AM
recursive copy of hidden files usfrog UNIX for Advanced & Expert Users 2 02-19-2002 11:16 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-13-2008
Registered User
 

Join Date: Feb 2008
Posts: 5
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Recursive search for group or other writeable 'dot' files

I'm looking for a easy way to do a recursive search through a directory structure for all files that begin with '.' that are group or other writable.

Any suggestions?
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 02-13-2008
HPAVC's Avatar
Registered User
 

Join Date: Feb 2008
Posts: 105
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Quote:
Originally Posted by maficdan View Post
I'm looking for a easy way to do a recursive search through a directory structure for all files that begin with '.' that are group or other writable. Any suggestions?
For shame, that is actually in the "find" man-page EXAMPLES section.

Code:
find . -type f -name ".*" -perm /-g+w,u+w
Reply With Quote
  #3 (permalink)  
Old 02-13-2008
Registered User
 

Join Date: Feb 2008
Posts: 5
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
thanks

For shame??

Man pages are a great resource, but they aren't the end all/be all.

Not all man pages are alike and the ones that I looked at did not have this example. I checked again, just to be certain. I will certainly try what you mentioned and report back what happens. - again thanks for the suggestion.
Reply With Quote
  #4 (permalink)  
Old 02-13-2008
Registered User
 

Join Date: Feb 2008
Posts: 1
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Hi,
This is pretty simple to search recursively.
This can be done in three ways.
1. ls -R this command work beautifully ,but not all version of ls have -R option.
2. find . ~print should work everywhere
3. du ~a . shows both name and size of the file.

So tryout this command,
By.................
Reply With Quote
  #5 (permalink)  
Old 02-14-2008
Registered User
 

Join Date: Feb 2008
Posts: 5
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
"For shame, that is actually in the "find" man-page EXAMPLES section."

And as expected, this did not work. However, using the 'perm' flag ended up being what I wanted.

Thanks for the help but you need to work on your delivery.
Reply With Quote
Google UNIX.COM
Reply



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 11:10 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger

Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102