UNIX set-UID to become root?

UNIX set-UID to become root?

Post by Kurt J Lan » Fri, 26 Jul 1996 04:00:00




>Hi net,
>       Recently I read an article, talking about suid'ing a common
>command to allow root access with regular accounts. Such as
>---s--x--x   1 root     staff       32768 Sep 20  1995 /bin/mail*
>Can anyone tell me how to do it? ( via /bin/mail or any other set-uid
>programs).

Man chmod. Only the owner (or root) of a file can change its
mode. In the above, only root can change mail to set-uid.
It's a security thang. Hope this helps.
--
--

 
 
 

UNIX set-UID to become root?

Post by Ray A. Jon » Fri, 26 Jul 1996 04:00:00


: Hi net,
:        Recently I read an article, talking about suid'ing a common
: command to allow root access with regular accounts. Such as

: ---s--x--x   1 root     staff       32768 Sep 20  1995 /bin/mail*

: Can anyone tell me how to do it? ( via /bin/mail or any other set-uid
: programs).

: Thanks and please e-mail me.

: scott
: .

See
man chmod

chmod +s /bin/mail
chmod 4111 /bin/mail

1. you must be root
2. won't work on shell scripts.

--

URL: http://www.celestial.com         One Mercer Plaza, Suite S100
                                      Mercer Island, WA 98040; (206) 236-1676
Manufacturer of InterRack (Internet-in-a-Rack), a full turn-key
system, including all the hardware, software, installation, setup, training
and support for businesses and Internet Service Providers

 
 
 

UNIX set-UID to become root?

Post by unkno » Fri, 26 Jul 1996 04:00:00


Hi net,
       Recently I read an article, talking about suid'ing a common
command to allow root access with regular accounts. Such as

---s--x--x   1 root     staff       32768 Sep 20  1995 /bin/mail*

Can anyone tell me how to do it? ( via /bin/mail or any other set-uid
programs).

Thanks and please e-mail me.

scott
.