Считаете, что Ubuntu недостаточно дружелюбна к новичкам? Помогите создать новое Руководство для новичков!
0 Пользователей и 2 Гостей просматривают эту тему.
## This file MUST be edited with the 'visudo' command as root.## Please consider adding local content in /etc/sudoers.d/ instead of# directly modifying this file.## See the man page for details on how to write a sudoers file.#Defaults env_resetDefaults: user !env_resetDefaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"# Host alias specification# User alias specification# Cmnd alias specificationCmnd_Alias NICE_CMDS = /usr/bin/nice, /usr/bin/renice# User privilege specificationroot ALL=(ALL:ALL) ALLuser ALL=(ALL:ALL) ALL# Members of the admin group may gain root privileges%admin ALL=(ALL) ALL# Allow members of group sudo to execute any command%sudo ALL=(ALL) ALL# See sudoers(5) for more information on "#include" directives:user ALL = NOPASSWD: NICE_CMDS#includedir /etc/sudoers.d
user - nice -20
/etc/security/limits.confдобавКод: [Выделить]user - nice -20и ребут.
sudousers нормальный?
asp2chief,Цитироватьsudousers нормальный?нет
u10_04@maxoft-ZBOX-ID84:~$ nice -n -20 echonice: невозможно установить значение nice: Отказано в доступеu10_04@maxoft-ZBOX-ID84:~$
u10_04@maxoft-ZBOX-ID84:~$ echo "u10_04 - nice -20" | sudo tee -a /etc/security/limits.conf[sudo] password for u10_04: u10_04 - nice -20u10_04@maxoft-ZBOX-ID84:~$ sudo rebootШироковещательное сообщение от u10_04@maxoft-ZBOX-ID84 (/dev/pts/11) в 16:57...Система будет перезагружена СЕЙЧАС!
u10_04@maxoft-ZBOX-ID84:~$ nice -n -20 echou10_04@maxoft-ZBOX-ID84:~$
asp2chief,гугле "/etc/security/limits.conf"
sudo -u user nice -n -20 ./_program
Страница сгенерирована за 0.016 секунд. Запросов: 21.