The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > Security
Google UNIX.COM


Security Anything involving computer security goes here.

More UNIX and Linux Forum Topics 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 03: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 12:16 PM

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

Join Date: Feb 2008
Posts: 5
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  
Old 02-13-2008
HPAVC's Avatar
Registered User
 

Join Date: Feb 2008
Posts: 105
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  
Old 02-13-2008
Registered User
 

Join Date: Feb 2008
Posts: 5
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  
Old 02-13-2008
Registered User
 

Join Date: Feb 2008
Posts: 1
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  
Old 02-14-2008
Registered User
 

Join Date: Feb 2008
Posts: 5
"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
  #6  
Old 02-14-2008
Registered User
 

Join Date: Feb 2008
Posts: 5
Didn't work

"find . -type f -name ".*" -perm /-g+w,u+w"

No shame here. This did not work. However by putting the syntax that I needed, I was able to get what was necessary by using the -perm flag.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 06:49 PM.


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

Content Relevant URLs by vBSEO 3.2.0