Linuxathome.net
https://www.linuxathome.net/forum/

SUID
https://www.linuxathome.net/forum/viewtopic.php?f=1&t=129
Page 1 of 1

Author:  LordGemma [ Wed Nov 06, 2002 11:24 pm ]
Post subject:  SUID

Am I correct in guessing that Linux does not support SUID?

For example, if I write a script as root like :

#!/bin/sh

/etc/init.d/xinetd restart



and then give it permissions chmod 4755.

Doesn't that mean that any user can then start xinetd? Can anybody clarify this for me.

Thanks.

Author:  bukharin [ Thu Nov 07, 2002 1:13 am ]
Post subject: 

SUID is supported, but not for shell scripts. This is for security reasons (too easy to exploit to give root access, apparently). I don't know if this can be changed - probably, knowing linux - but the point is that you shouldn't be doing such a thing anyway. If you really need a normal user to run such a command, investigate sudo, or change the permissions on "service".

bukharin

Page 1 of 1 All times are UTC + 10 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/