sudo must be setuid root. | Unix Linux Forums | AIX

  Go Back    


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

sudo must be setuid root.

AIX


Tags
aix, unix

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 02-24-2010
ITHelper
Guest
 
Posts: n/a
sudo must be setuid root.

Guy's

I'm trying to add some lines in sudo by useing this command visudo


Code:
 
 
 
# User privilege specification
root ALL=(ALL) ALL
# Uncomment to allow people in group wheel to run all commands
# %wheel ALL=(ALL) ALL
# Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
# Samples
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users localhost=/sbin/shutdown -h now
 
%sysadmin ALL=(root) /usr/sbin/shutdown,/usr/bin/topas,/usr/bin/svmon,/usr/bin/lsof,/opt/sarcheck/bin/sarcheck,/usr/bin/stopsrc,/usr
/sbin/fuser,/usr/sbin/umount,/usr/sbin/mount,/usr/bin/chown,/usr/bin/chmod,/usr/bin/find,/usr/bin/mksysb,/usr/bin/truss,/usr/sbin/tc
pdump,/usr/bin/vmstat,/usr/sbin/varyoffvg,/usr/sbin/exportvg,/usr/sbin/varyonvg,/usr/sbin/importvg
 
 
:wq!
 
when I try to save I'm getting the belwo
 
"/etc/sudoers.tmp" 31 lines, 945 characters 
>>> sudoers file: syntax error, line 29 <<<
>>> sudoers file: syntax error, line 30 <<<
What now? \
Options are:
(e)dit sudoers file again
e(x)it without saving changes to sudoers file
(Q)uit and save changes to sudoers file (DANGER!)
What now?

when I try to run sudo -l

I'm getting the below ?


Code:
Sorry, sudo must be setuid root.


Please help me in this regard and advices ....
Sponsored Links
    #2  
Old 02-24-2010
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 17 September 2014, 5:50 PM EDT
Location: Saskatchewan
Posts: 19,366
Thanks: 787
Thanked 3,258 Times in 3,054 Posts
It means what it says. The permissions of the sudo executable are incorrect for some reason, preventing it from running as root, preventing it from changing users. On my system(not AIX) sudo's permissions are:
Code:
$ ls -l /usr/bin/sudo
---s--x--x 1 root root 139528 2008-07-06 17:35 /usr/bin/sudo
$

Sponsored Links
    #3  
Old 02-25-2010
xoops xoops is offline
Registered User
 
Join Date: Aug 2009
Last Activity: 29 March 2012, 3:19 AM EDT
Posts: 124
Thanks: 0
Thanked 7 Times in 7 Posts
Quote:
"/etc/sudoers.tmp" 31 lines, 945 characters
>>> sudoers file: syntax error, line 29 <<<
>>> sudoers file: syntax error, line 30 <<<
What now? \
Options are:
(e)dit sudoers file again
e(x)it without saving changes to sudoers file
(Q)uit and save changes to sudoers file (DANGER!)
What now?
Your sudoers file has syntax error.
You must resolve them before you proceed with sudo -l
    #4  
Old 02-27-2010
ITHelper
Guest
 
Posts: n/a
This is my permissions still I'm getting the same ?!! can you please advices in this regard ....


Code:
P690_server/>ls -l /usr/bin/sudo
lrwxrwxrwx    1 root     system           27 Aug 18 2009  /usr/bin/sudo -> ../../opt/freeware/bin/sudo

P690_server>sudo -l
Sorry, sudo must be setuid root.


Last edited by ITHelper; 02-27-2010 at 09:02 AM..
Sponsored Links
    #5  
Old 02-27-2010
pludi's Avatar
pludi pludi is offline Forum Advisor  
Cat herder
 
Join Date: Dec 2008
Last Activity: 28 March 2014, 8:35 AM EDT
Location: Vienna, Austria, Earth
Posts: 5,522
Thanks: 38
Thanked 335 Times in 308 Posts
Quick question: did you really, really read the thread so far? And why do you think the permissions on a link even remotely influence the file linked to?

Check the permissions for /opt/freeware/bin/sudo. If that's a link too, follow it again. Repeat until you encounter a regular file. That needs to have 3 certain attributes:
  • it has to be owned by the user root
  • it has to have the sticky bit set (chmod u+s as root)
  • it has to be executable for those allowed to use it
Sponsored Links
    #6  
Old 02-28-2010
ITHelper
Guest
 
Posts: n/a
Thank you very match .......

problem was in the owner of this file /opt/freeware/bin/sudo

---s--x--x 1 bin bin 114730 Jul 07 2005 /opt/freeware/bin/sudo

chown root:system /opt/freeware/bin/sudo

ls -la /opt/freeware/bin/sudo

---s--x--x 1 root system 114730 Jul 07 2005 /opt/freeware/bin/sudo


sudo is working fain now ................ solved
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Is there a way to find users who have sudo permissions for non root? pristine UNIX for Dummies Questions & Answers 1 10-22-2008 02:04 PM
Possible to give non root user sudo to "crontab -l" LordJezoX UNIX for Dummies Questions & Answers 4 10-10-2008 02:02 PM
Setuid Program with (-rwsr-sr-x 1 root other ) UID/EUID issue 0ktalmagik UNIX for Advanced & Expert Users 7 08-20-2006 12:16 AM
sudo, root password penguin-friend Linux 5 11-02-2005 02:27 AM
Setuid root and chown johnmsucpe UNIX for Dummies Questions & Answers 6 04-02-2005 09:23 AM



All times are GMT -4. The time now is 07:35 PM.