LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 08: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, 09:42 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,278

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
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, 06:57 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,358

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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, 10: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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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