Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sudo & setuid

Status
Not open for further replies.

windjam

Technical User
Jun 19, 2001
21
FR
Hi,

I've got a surprising problem with sudo on a AIX 4.3.1 box :
when i use sudo with a user, i've his message on terminal :

"Sorry, sudo must be setuid root"

Of course, i glance at /usr/local/bin and the rights are ...
---s--x--x 1 root sys 152453 22 fev 17:16 sudo
In fact, this helpful soft was working very well a few weeks ago; but i've modified the rights of my Unix tree and now it's impossible to use it :-(

I've removed sudo and i tried to install it another time : but i've exactly the same problem

Maybe someone has a good idea for me ...

Thanks
"Unix, it's like French : nothing is impossible"


 
We have sudo working on one of our systems here, so maybe comparing settings might help:

ls -al /usr/local/bin/sudo
---s--x--x 1 root system 63250 01 Oct 1998 /usr/local/bin/sudo

lslpp -l freeware.sudo.rte

freeware.sudo.rte 1.5.6.2 COMMITTED sudo - Super-User Do
oslevel
4.3.3.0

I'd be suspicious about how you modified the rights to your unix tree?? Presumably you haven't been changing uids in /etc/passwd....can you back out your changes and re-test?
 
Thanks for your support.

I think the problem does not depend on my modifications ;
Indeed, it's not the first time i've made this and the only changes i've made goals the write permissions for users on the root and / directories ;
But you're right, the first thing to do was to back out these changes : nothing's going better.

I've read some stuff about AIX read/write permissions and nothing seems to be wrong.

I'm very disapointed now and i'm starting to lose any hope . :-(

Can somebody show me a "perfect" root (/) file tree, then i'll compare with mine ? - or give me some advise ...

The version of my sudo is 1.6.3.6

Thanks a lot
"Unix, it's like French : nothing is impossible"




"Unix, it's like French : nothing is impossible"
 
I think your problem is really simple: Have you set the nosuid option of the filesystem containing sudo?
I hope it works...
Unix was made by and for smart people.
 
Well done !!

Shame on me ... "Unix, it's like French : nothing is impossible"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top