Remote shutdown
Martin 'Goran' Moravec
goran na artax.karlin.mff.cuni.cz
Úterý Duben 25 09:15:45 CEST 2000
On Tue, 25 Apr 2000, Roman Slechta wrote:
> Ahoj,
>
> nejak to porad nefunguje. Nelze vypnout,
> protoze uzivatel neni root nebo superuser.
> /sbin/halt je ELF soubor, takze ho ani neumim
> upravit.
> Roman
Sakrys, ze by tu nekdo neumel pracovat s pravama?
takze to same jeste jednou OPRAVDU podrobne, protoze tohle JE funkcni
reseni.
adduser --home /sbin --no-create-home --group halters --system kompkiller
passwd kompkiller (zadat heslo)
chsh -s /sbin/halt kompkiller
chgrp halters /sbin/halt
/*ted poporade */
chmod 710 /sbin/halt
/*predela prava na spousteni na rwx--x---
odted smi /sbin/halt spustit nejen root, ale i vsichni v grupe halters,
jelikoz se jedna o systemovy zasah je treba posledni upravy*/
chmod u+s /sbin/halt /*prida setuid bit, nemusi to spoustet root*/
\||/
| @___oo
/\ /\ / (__,,,,|
) /^\) ^\/ _)
) /^\/ _) Martin 'Goran' Moravec
) _ / / _) goran na ipp.cas.cz
/\ )/\/ || | )_)
< > |(,,) )__)
|| / \)___)\
| \____( )___) )___
\______(_______;;; __;;;
Další informace o konferenci Linux