LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-08-2004, 10:52 PM   #1
plan9
Member
 
Registered: May 2004
Location: USA
Distribution: Slackware-Current
Posts: 74

Rep: Reputation: 15
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
 
Old 07-08-2004, 11:47 PM   #2
CartersAdvocate
Member
 
Registered: Sep 2003
Location: Columbus, OH
Distribution: Slackware 12.2
Posts: 166

Rep: Reputation: 30
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.
 
Old 07-09-2004, 04:34 PM   #3
shilo
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: Reputation: 50
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 05:51 PM.
 
Old 07-09-2004, 04:42 PM   #4
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,230

Rep: Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724
Don't forget the -print switch or you won't get output
 
Old 07-09-2004, 05:50 PM   #5
shilo
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: Reputation: 50
DOH!!! I'll edit that.
 
Old 07-09-2004, 05:57 PM   #6
CartersAdvocate
Member
 
Registered: Sep 2003
Location: Columbus, OH
Distribution: Slackware 12.2
Posts: 166

Rep: Reputation: 30
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 02:37 AM.
 
Old 07-09-2004, 07:01 PM   #7
shilo
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: Reputation: 50
Huh?!?! Not to hijack the thread, but you are right.
 
Old 07-09-2004, 07:06 PM   #8
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,230

Rep: Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724
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 07:11 PM.
 
Old 07-10-2004, 02:41 AM   #9
CartersAdvocate
Member
 
Registered: Sep 2003
Location: Columbus, OH
Distribution: Slackware 12.2
Posts: 166

Rep: Reputation: 30
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
slocate dajomu Ubuntu 1 09-16-2005 09:08 PM
slocate error props666999 Slackware 5 11-17-2004 05:25 PM
Where is Slocate in Suse 8.2 Pro? dougp25 Linux - Laptop and Netbook 5 05-12-2004 12:19 PM
Using slocate in RH 7.2 hominy Linux - Newbie 1 08-10-2003 03:59 PM
slocate foobarred Dave Campbell Linux - General 0 12-31-2001 06:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration