LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-08-2009, 11:12 AM   #1
raj k yadav
LQ Newbie
 
Registered: Dec 2008
Posts: 27

Rep: Reputation: 2
meaning of suid on /usr/bin/passwd


Hi gurus.I m newbee in linux and trying to learn it. I have a doubt- somewhere i have read about suid, and what i understood is 'when suid is applied on an executable then it works on permissions of owner of file.

Now take example of /bin/passwd its default permissions in my system are rwsrwxr_x. As per the meaning of suid everyone can execute this command and can change their password. As its working on the permissions of file owner which has permissions rws, then there is no use of execute permission of other. If so why this command doesnt work for other users if i change the permissions to rwsrwxr--.

Pls guide me.
 
Old 01-08-2009, 11:52 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Hi, welcome to LQ!

And the o=r doesn't work because perms get evaluated left
to right. While sticky will make passwd able to manipulate
/etc/shadow for non-root users they still need to be allowed
to actually *run* it, which they can't if o-x ...


cheers,
Tink
 
  


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
RH8 /usr/bin/mh links to /usr/bin??? brian4xp Red Hat 2 04-22-2008 09:39 AM
what is difference between /usr/bin/7za /usr/bin/7z fakie_flip Linux - Software 9 08-14-2006 10:22 PM
Ubuntu 5.10 -> 6.06: diversion of /usr/bin/ldd to /usr/bin/ldd.amd64 by ia32-libs HellSpawn Linux - Software 2 06-04-2006 10:18 PM
path in services wrong for clamav updated frm 0.75 to 0.80 usr/bin vs usr/local/bin Emmanuel_uk Linux - Newbie 3 04-22-2005 02:02 AM
/usr/bin/X11/ and /usr/X11R6/bin/ the same? linuxtesting2 Linux - Newbie 2 11-16-2004 11:57 AM


All times are GMT -5. The time now is 06:39 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