Question regarding shell user creation at login time
Sean Kelly
smkelly at zombie.org
Sun Mar 28 18:39:38 PST 2004
Please don't crosspost.
I don't think this is a topic for -current, so I've removed it.
On Mon, Mar 29, 2004 at 11:05:55AM +0900, Ganbold wrote:
> 10198 new CALL setuid(0)
> 10198 new RET setuid -1 errno 1 Operation not permitted
Your attempt to setuid(0) failed.
> 10198 new CALL execve(0x80485d0,0xbfbfed8c,0xbfbfed94)
> 10198 new NAMI "/home/new/new.pl"
> 10198 new RET execve -1 errno 13 Permission denied
Your attempt to run that perl script failed.
> -rwsr-x--- 1 root new 4651 Mar 26 08:47 new
> ---------- 1 root wheel 94 Mar 26 08:47 new.c
> -r-x------ 1 root wheel 15430 Mar 25 15:16 new.pl
Well, since your attempt to setuid(0) failed, `new.pl` is not being
execve()'d as root. Therefore, the permissions on the `new.pl` file are
such that it can't be read or executed by the user/process.
--
Sean Kelly | PGP KeyID: D2E5E296
smkelly at FreeBSD.org | http://www.sean-kelly.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20040328/64848bb0/attachment.bin
More information about the freebsd-hackers
mailing list