Shutdown

Achilleas Kotsis achille at nyx.gr
Thu Nov 19 13:23:08 EET 1998


On Thu, 19 Nov 1998, Athanassios Balafoutis wrote:

> Paidia,
> mimpos kserei kaneis pws mporw na dwsw permision se kapoion user (ektos
> tou root) gia na mporei na kanei shutdown sto systima?
> 
> Efxaristw
> 
> Thanassis Balafoutis

An exeis to sudo einai polu aplo.
Dineis visudo
(to opoio anoigei to /etc/sudoers kai elenxei an exeis swsth sunta3h prin
to kleisei)

kai pros8eteis mia grammh pou na leei ta e3hs:

user host=command

px an 8eleis na mporei na kanei shutdown o user achille otan mpainei apo
localhost 8a pros8eseis mia grammh san authn:

achille localhost=/sbin/shutdown,/sbin/halt,/sbin/reboot

O achille twra gia na kanei shutdown grafei apla:

sudo /sbin/halt

kai afou dwsei to password tou,ekteleitai h entolh.
gia perisoteres plhrofories, man sudo , man sudoers
(mporeis na kaneis kai auto pou eipe o gdk gia to group,alla MHN kaneis
kamia blakia kai baleis a+x sto shutdown ;)

      Achilleas Kotsis (Achille on IRC) 
achille at nyx.gr , http://www.darkness.gr/~achille/

--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at argos.hol.gr
Ta archives tis listas einai sto http://www.argos.hol.gr/lists :
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users
====================================================================



More information about the Linux-greek-users mailing list