Portál AbcLinuxu, 25. dubna 2024 09:51
Potřeboval bych povolit používání příkazu sudo
pro uživatele tak, že napíšou sudo příkaz
, zadá heslo roota a provede se příkaz.
Soubor /etc/sudoers
vypadá takto:
# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL) ALL
# Přidáno
Defaults targetpw
%users ALL=(ALL) ALL
Ale při sudo příkaz
akorát napíše:
%uživatelské_jméno% is not in the sudoers file. This incident will be reported.
Kde je prosím chyba?
%users ALL=(ALL) NOPASSWD: ALL
Tiskni Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.