Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-08-2004, 09:52 PM
|
#1
|
Member
Registered: May 2004
Location: USA
Distribution: Slackware-Current
Posts: 74
Rep:
|
help with slocate
hey there,
i am curious, is there a way to use slocate to find suid and sgid files and groups? Also, does anyone know of a list of suid files and sgid groups that should be changed?
Thanks,
-9
|
|
|
07-08-2004, 10:47 PM
|
#2
|
Member
Registered: Sep 2003
Location: Columbus, OH
Distribution: Slackware 12.2
Posts: 166
Rep:
|
I believe that the slocate.db file only keeps the filenames in it, not the attributes, so I don't believe you can find that info with the slocate command.
|
|
|
07-09-2004, 03:34 PM
|
#3
|
Senior Member
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132
Rep:
|
Find suid files:
Code:
find / -type f -perm -4000 -print
Find guid files:
Code:
find / -type f -perm -2000 -print
That should tell you what you want to know. Takes a little while, though.
Last edited by shilo; 07-09-2004 at 04:51 PM.
|
|
|
07-09-2004, 03:42 PM
|
#4
|
LQ Guru
Registered: Mar 2004
Distribution: Slackware
Posts: 6,858
|
Don't forget the -print switch or you won't get output 
|
|
|
07-09-2004, 04:50 PM
|
#5
|
Senior Member
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132
Rep:
|
DOH!!! I'll edit that.
|
|
|
07-09-2004, 04:57 PM
|
#6
|
Member
Registered: Sep 2003
Location: Columbus, OH
Distribution: Slackware 12.2
Posts: 166
Rep:
|
Why does everyone alwways say you need the -print switch? Mine gives the same output with or without the -print
Last edited by CartersAdvocate; 07-10-2004 at 01:37 AM.
|
|
|
07-09-2004, 06:01 PM
|
#7
|
Senior Member
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132
Rep:
|
Huh?!?! Not to hijack the thread, but you are right.
|
|
|
07-09-2004, 06:06 PM
|
#8
|
LQ Guru
Registered: Mar 2004
Distribution: Slackware
Posts: 6,858
|
I would like to know your find version as mine refuse to display standart output without the -print switch, the standart error is displayed (permission denied)
[edit]
Ok, get it, with the -type switch -print is not needed
Last edited by keefaz; 07-09-2004 at 06:11 PM.
|
|
|
07-10-2004, 01:41 AM
|
#9
|
Member
Registered: Sep 2003
Location: Columbus, OH
Distribution: Slackware 12.2
Posts: 166
Rep:
|
Excerpt from find manpage:
Quote:
If no expression is given, the expression '-print' is used.
|
I don't use any of the other expressions, so I guess that's why I never need it
|
|
|
All times are GMT -5. The time now is 08:47 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|