[comp.unix.sysv386] rmdir problem in SCO UNIX

rvdp@cs.vu.nl (Ronald van der Pol) (09/25/90)

I booted my Compaq Syspro 386 with an emergency boot floppy and
tried to remove a directory both with rm an with rmdir. However,
I get the error message:

 	rmdir:  setuid(2) failed, Not owner

Can anybody tell me what the problem is?

-rwx--x--x	bin	bin	rm
-rws--x--x	root	sys	rmdir

id tells me that I am really and effectively root (0).

--
		Ronald van der Pol  <rvdp@cs.vu.nl>

paul@tetrauk.UUCP (Paul Ashton) (09/26/90)

> I booted my Compaq Syspro 386 with an emergency boot floppy and
> tried to remove a directory both with rm an with rmdir. However,
> I get the error message:

>  	rmdir:  setuid(2) failed, Not owner

C2 strikes again!

solution is type
su
then rmdir
setuid will fail if the login uid is not set, however su sets it if it
is not already set. Obviously the single user login doesn't set your luid.
-- 
Paul