LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-26-2010, 09:31 AM   #1
kevmcool
Member
 
Registered: Dec 2009
Location: London
Distribution: CentOS
Posts: 36

Rep: Reputation: 15
SUID problem


centos 5.4

i thought i understood this simple little bit

i thought i would apply it to /bin/mount so a regular user could use to to mount an
nfs share
chmod u+s /bin/mount
but the user gets permission denied
can you please tell me what else is stopping the user executing mount

thanks guru's
 
Old 05-26-2010, 10:42 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 7,780

Rep: Reputation: 741Reputation: 741Reputation: 741Reputation: 741Reputation: 741Reputation: 741Reputation: 741
in /etc/fstab, put the option user in the line about whatever disks you want the user to mount where it now has 'defaults'

You may have to configure something in nfsd - dunno about that.
 
Old 05-26-2010, 07:57 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,258

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
FYI, the default install already sets suid (Centos 5.5)

ls -l /bin/mount
-rwsr-xr-x 1 root root 58324 Jan 20 20:43 /bin/mount
 
Old 05-28-2010, 11:55 AM   #4
kevmcool
Member
 
Registered: Dec 2009
Location: London
Distribution: CentOS
Posts: 36

Original Poster
Rep: Reputation: 15
hey

i think your right about SUID being part of the defaults

/bin/mount works for a regular user with the default 755 perm

/bin/mount -t nfs host:/dir /mnt does not work even if you give it 4755

/sbin/iptables-save has 755 and reg user can not use

/sbin/iptables-save with 4755 and reg user can use

why does mount work and iptables-save does not for reg user both with 755

i think its something to do with some of these commands opening files they dont have perms to and maybe starting processes

oh well
 
  


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
suid problem Milosevic Programming 3 11-13-2005 12:36 AM
Suid problem with XFree86 4.5.0 FredL2 Linux - Software 2 05-20-2005 05:49 PM
SUID + CVS = problem m0llbuz_ Linux - General 0 10-25-2004 12:40 PM
problem with SUID bit joanq Linux - Newbie 6 04-09-2004 03:56 PM
SUID file drops suid bit on append? c_coder Programming 1 03-12-2004 08:59 AM


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