Увидели сообщение с непонятной ссылкой, спам, непристойность или оскорбление?Воспользуйтесь ссылкой «Сообщить модератору» рядом с сообщением!
0 Пользователей и 2 Гостей просматривают эту тему.
DarthNyan@PC:~$ sudo cat /etc/sudoers[sudo] пароль для DarthNyan:## 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 mail_badpassDefaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"# Host alias specification# User alias specification# Cmnd alias specification# User privilege specificationroot ALL=(ALL:ALL) ALL DarthNyan 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) ALL# See sudoers(5) for more information on "#include" directives:#includedir /etc/sudoers.dDarthNyan@PC:~$
DarthNyan@PC:~$ sudo -u postgres psqlsudo: setresuid() [1000, 113, 1000] -> [-1, 0, -1]: Операция не позволена sudo: unable to set runas group vector: Операция не позволена sudo: PERM_ROOT: setresuid(0, -1, 0): Операция не позволена sudo: не удаётся открыть /var/run/sudo/ts/DarthNyan: Отказано в доступе [sudo] пароль для DarthNyan: sudo: PERM_ROOT: setresuid(0, -1, 0): Операция не позволена DarthNyan отсутствует в файле sudoers. Данное действие будет занесено в журнал.DarthNyan@PC:~$ cat /etc/group | grep DarthNyanadm:x:4:syslog,DarthNyancdrom:x:24:DarthNyan sudo:x:27:DarthNyanaudio:x:29:DarthNyandip:x:30:DarthNyanplugdev:x:46:DarthNyanDarthNyan:x:1000:DarthNyan@PC:~$
ls - l /usr/bin/sudo /etc/sudoerc
# User privilege specificationroot ALL=(ALL:ALL) ALL DarthNyan ALL=(ALL:ALL) ALL
DarthNyan@PC:~$ cat /etc/group | grep DarthNyanadm:x:4:syslog,DarthNyancdrom:x:24:DarthNyansudo:x:27:DarthNyanaudio:x:29:DarthNyandip:x:30:DarthNyanplugdev:x:46:DarthNyanDarthNyan:x:1000:
Страница сгенерирована за 0.033 секунд. Запросов: 23.