Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 02-01-2005, 03:16 AM   #1 (permalink)
jackjill
Registered User
 
Join Date: Nov 2004
Posts: 5
jackjill is on a distinguished road
SUID/GUID files search !

Hi guys,
i'm trying to write a script for following purpose.

shell program will be used by Linux/Unix sysadmins to search for
SUID/SGID files. The default directory to search is the present
working directory, however, the user may include a directory name on
the command line as an alternative. Also, if the user includes the
argument '-R' then the search should include all subdirectories
recursively. Also, the '-G' argument will include SGID files which by
default are not shown. The output of the script should show the
absolute pathname of the file and the owner.


Please help me in performin such task.

i'm trying using this line:

ls -l | awk '{print $1}' | grep s
it just prints the permissions having s bit.
jackjill is offline   Reply With Quote
Old 02-01-2005, 06:25 AM   #2 (permalink)
idx
Senior Grasshopper
 
idx's Avatar
 
Join Date: Jun 2003
Location: FL
Posts: 317
idx is on a distinguished road
Sounds like a HW thing, but wtf:

man find

I think the `-perm` flag might help.

-r
idx is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Search -That Can Match Out Of Order Items JBurke All Other Coding Languages 11 09-25-2003 03:09 PM
Please Review ZapMeta - New Search Engine khn Program Design and Methods 3 07-06-2003 10:15 AM
Installing and using CMUgraphics library. Valmont Standard C, C++ 12 03-29-2003 09:39 AM
All Class Files mixingsoup PHP 12 12-04-2002 07:49 AM


All times are GMT -8. The time now is 01:34 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC8 ©2007, Crawlability, Inc.





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting