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
A téma engem is érdekelne, de nálam nincs /etc/sudoers...
Szintén Debian Sargeról van szó!
By(t)e, Sanyi
"A téma engem is érdekelne, de nálam nincs /etc/sudoers..."
Szerkeszteni visudo -val ajánlott (az EDITOR változóban megadott szerkesztőben nyitja meg, a mentés során ellenőrzi, és ha valami gebac van a tartalmával, akkor szól.)
ok.
megnézem. de sajnos csak este felé tudom mondani h mit sikerült ügyködnöm.
de thx előre is a választ
Zsolt
tudom, hogy ez téged nem vigasztal, de UHU-Linux alatt alapból megy...
--
by Mikul@s
Hát nem sokat segít... :)
Zsolt
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
ALL csoportneve = NOPASSWD: /program/elérése
--
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.''