- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- finding files with set guid set
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2006 02:48 AM
03-30-2006 02:48 AM
find / -type f -perm -g=xxx -print
Any help is appreciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2006 02:56 AM
03-30-2006 02:56 AM
Solutionfind
will list all plain files with suid set on group.
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2006 02:56 AM
03-30-2006 02:56 AM
Re: finding files with set guid set
find / -type f -perm -4000 -print #finds setuids
find / -type f -perm -6000 -print #find files with setuid AND setgid bits set
find / -type f i\( -perm -4000 -o -perm -2000 \) -print #find files with setuid OR setgid bits set
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2006 02:57 AM
03-30-2006 02:57 AM
Re: finding files with set guid set
find . -type f -perm -2000
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2006 02:58 AM
03-30-2006 02:58 AM
Re: finding files with set guid set
find / -type f i\( -perm -4000 -o -perm -2000 \) -print #find files with setuid OR setgid bits set
should be:
find / -type f \( -perm -4000 -o -perm -2000 \) -print #find files with setuid OR setgid bits set
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2006 02:59 AM
03-30-2006 02:59 AM
Re: finding files with set guid set
# find / \( -perm -4000 -o -perm -2000 \) -exec ls -ld {} \; | more
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2006 03:13 AM
03-30-2006 03:13 AM
Re: finding files with set guid set
You can use:
# find /path -xdev -type f -perm -u+s
...will find files with the setuid bit whether or not the owner's execute bit is on ("s") or off ("S").
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2006 04:16 AM
03-30-2006 04:16 AM
Re: finding files with set guid set
My apologies, There was a "g" after the word "set" and beofre the "uid". Since you want to find those files where the S_ISGID ('setgid') bit is set, do:
# find /path -xdev -type f -perm -g+s
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2006 04:36 AM
03-30-2006 04:36 AM
Re: finding files with set guid set
Regards,
JB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2006 08:21 PM
03-30-2006 08:21 PM
Re: finding files with set guid set
since you are new to ITRC forum:
please read the link about the point system
"How to earn points".
http://forums1.itrc.hp.com/service/forums/helptips.do?#28
mfG Peter