/sbin/halt vagy reboot-nak futtatási jog adása több felhasználó számára

Fórumok

Sziasztok!

Egy egyszerű kérdésem lenne:

Hogyan tudom elérni h a /sbin/halt -t vagy a /sbin/reboot -t a többi felhasználóként is futtathassam ne csak root -ként?

Amit olvasgattam arra jutottam h a sima chmod 111 nem jó mert a halt parancs vmiért nem szuperálna így (h miért azt a babelfish vhogyan nagyon rosszul fordította (németről angolra)) ahogy kivettem vhogyan így kellene chmod 1111 /sbin/halt .
Ám erre nem változik semmi :(

Válaszotokat előre is köszönöm.

Zsolt

Hozzászólások

/etc/sudoers

----------------------------------------------------------------
"A megoldas mindeki kerdesere egyszeru.
OLVASSATOK DOKUMENTACIOT!"
by thuglife

tudom, hogy ez téged nem vigasztal, de UHU-Linux alatt alapból megy...

--
by Mikul@s

Sudoersben szépen megadod neki, hogy a user csoport tagjai jelszó nélkűl használhatják halt programot. Arra vigyázz, hogy /sbin/halt -ot engedélyezd és ne simán a halt-ot , mert különben trükkös dolgokat lehet csinálni. ;)

--
TheReplaced@Zenwalk - 540,000 Degrees Fahrenheit

man shutdown
``If shutdown
is called with the -a argument (add this to the invocation of shutdown in /etc/inittab), it checks to see if the file
/etc/shutdown.allow is present. It then compares the login names in that file with the list of people that are logged
in on a virtual console (from /var/run/utmp). Only if one of those authorized users or root is logged in, it will pro-
ceed. Otherwise it will write the message

shutdown: no authorized users logged in

to the (physical) system console. The format of /etc/shutdown.allow is one user name per line. Empty lines and comment
lines (prefixed by a #) are allowed. Currently there is a limit of 32 users in this file.

Note that if /etc/shutdown.allow is not present, the -a argument is ignored.''