| | |
script for search SUID/GUID !
Please support our Shell Scripting advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Nov 2004
Posts: 3
Reputation:
Solved Threads: 0
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.
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.
![]() |
Similar Threads
- Jsp Search data inside HTML Table (JavaScript / DHTML / AJAX)
- Search Script (PHP)
- search engine script (Existing Scripts)
- Search two databases (PHP)
- How to conect the search engine...??? (Existing Scripts)
- Using Search Engine Friendly PHP URLs (PHP)
Other Threads in the Shell Scripting Forum
- Previous Thread: Why my shell script doesn't delete a file ??
- Next Thread: Some help with "downloading" links
| Thread Tools | Search this Thread |





