LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-01-2009, 07:28 PM   #1
palisetty_suman
Member
 
Registered: Feb 2007
Location: TX, USA
Distribution: fedora
Posts: 191

Rep: Reputation: 33
Smile setuid files


Hi this is my assignment question and i need to submit it tomorrow. Can anybody tell the answer for this is correct or not.

Q) Use the find command to locate five setuid files on your system. For each file, explain why the setuid mechanism is necessary for the command to function properly.


My answer for the question i got is

find / -perm +4000 | ls -l

Some files are set with setuid file permissions because the users on system can execute binaary executables with temporary high level privilleges in order to do a specific job.

Can you guys say whether my answer is correct or not. If wrong please correct me where i am going wrong.

Thanks.
 
Old 02-01-2009, 07:57 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Reported as duplicate of https://www.linuxquestions.org/quest...s-help-701516/
 
Old 02-01-2009, 08:55 PM   #3
almatic
Member
 
Registered: Mar 2007
Distribution: Debian
Posts: 547

Rep: Reputation: 67
your answer is correct, but incomplete. I think you are supposed to tell for 5 of the files, why they need to be setuid root. For example, passwd is setuid root so users can change their own password, ping is setuid root because it needs to create raw sockets and so on.

I also think your command will not have the effect you want (in case you intend to pipe the files to ls). You are probably looking for something like this

for file in `find / -perm +4000`;do ls -l $file ;done
 
Old 02-01-2009, 10:14 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Ok--I think we've now closed all the duplicates...

palisetty;
Two things:

1. You told me earlier that all this was not homework, but here you are with an assignment due.

2. Please do not make multipe posts like this. One thread per subject.
 
  


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
setuid files palisetty_suman Linux - Newbie 1 02-01-2009 07:57 PM
setuid files sulekha Linux - Security 1 10-11-2008 05:04 AM
Do all these files really need setuid/setgid? jenhu Linux - Security 4 08-03-2008 04:49 AM
Bash script to email setuid root files deoren LinuxQuestions.org Member Success Stories 1 01-30-2005 09:56 AM
setuid + setgid files... jd32 Linux - Security 2 10-16-2004 11:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:02 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
Open Source Consulting | Domain Registration