���� ���������� wrote:
>  ���������!
>  ���������� ���� �� ��������, �� ��-���-������� ����� ;) �������� (���� �������
> ������������ �� X ���� �� root..) �� ������ �� ����� �� ���� ��� �������, 
> ������� ������� �������� ���� "�������� �����" ;))
>  ���� �������� ���������� �� ���� �� ������� shutdown, ��������� reboot, halt 
> � ������� �������, ����� ������� shutdown..:(
>  ����, �� �������� � ��� Debian-specific - ������ ����� �������� (���..), ����� 
> ��� �������, �� ��������� �� ������������ �� ���������� �� ����������� ����.
>  �������� �� ���� /etc/shutdown.allow � �� ������� � ����. � /etc/inittab �� 
> �������� �� shutdown pri ctrl+alt+del ����:
> 
> ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
> 
> �����, ����� �� ��������� ����... �� �� ��� ���� �� �� ����� ������, ����� �� 
> ���� �� �� ������ �������� � halt, poweroff, ...whatever ;)
> 
>  must be superuser
>  ���
>  only root can do that
>  � �� ������� � su, ���� ������ ��������/��������� :( �� ����� ������, �� �����
> ������ ��� ������ �� �� ��������� � ����, ��������� �� � ���� �� ��������� 
> ������� � ���-�� (Debian-�...) �� ���� �� ���� ��������. �� � ��-������� �� 
> �� �� ��������� �� ����������� - ��, �������� ���..., ��� ���� ����� ���� �� 
> workstation, ����� ���� �������, ��� ������� ���� ����� �� �����... ������ 
> �� ����� root-pass-� .... ���� ;)
> 
>  �������� ���� �� ��������� �/��� ��������� � rtfm - �������;)
>  ����� �������������
> 

��� ���� ����������� sudo, ������ �� ���� � /etc/sudoers, � ���� ����
������ ����� �� � ������� users �� ����� �� ���������� reboot � halt,
������ ��������� sudo reboot � ������. ����� �� ������� %users � �����
�����.

%users  localhost=NOPASSWD: /sbin/halt,/sbin/reboot


-- 
Georgi Chorbadzhiyski
http://georgi.top.bg/

============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================


  • ... Ясен Праматаров
    • ... George Danchev
      • ... George Danchev
    • ... Georgi Chorbadzhiyski
    • ... Damyan Ivanov
      • ... Boris Jordanov
    • ... gecata
      • ... Georgi Chorbadzhiyski
        • ... Svetoslav Nikolov
          • ... George Danchev

Reply via email to