Хотите сделать посильный вклад в развитие Ubuntu и русскоязычного сообщества? Помогите нам с документацией!
0 Пользователей и 1 Гость просматривают эту тему.
ВИКИ
sudo passwd root
id <имя_пользователя>
Покажите Код: [Выделить]id <имя_пользователя>
Сделайте что написано по ссылке выше.
## 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 secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"# Host alias specification# User alias specification# Cmnd alias specification# User privilege specificationroot 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.d
root:x:0:selekhdaemon:x:1:bin:x:2:sys:x:3:adm:x:4:tty:x:5:disk:x:6:lp:x:7:mail:x:8:news:x:9:uucp:x:10:man:x:12:proxy:x:13:kmem:x:15:dialout:x:20:fax:x:21:voice:x:22:cdrom:x:24:floppy:x:25:tape:x:26:sudo:x:27:audio:x:29:dip:x:30:www-data:x:33:backup:x:34:operator:x:37:list:x:38:irc:x:39:src:x:40:gnats:x:41:shadow:x:42:utmp:x:43:video:x:44:sasl:x:45:plugdev:x:46:staff:x:50:games:x:60:users:x:100:nogroup:x:65534:libuuid:x:101:crontab:x:102:syslog:x:103:fuse:x:104:messagebus:x:105:bluetooth:x:106:lpadmin:x:107:ssl-cert:x:108:lightdm:x:109:nopasswdlogin:x:110:netdev:x:111:ntp:x:112:mlocate:x:113:ssh:x:114:sambashare:x:115:selekh:x:1000:
# Members of the admin group may gain root privileges...# Allow members of group sudo to execute any command...
Вас не смущает, что в sudoers есть строкиЦитировать# Members of the admin group may gain root privileges...# Allow members of group sudo to execute any command...И нет ни слова про root group ?!?Пользователь должен быть в группе 27(sudo)
Тоесть мне надо снова повторить процедуру, но вместо 0 поставить 27?
Цитата: Selekh от 12 Июля 2012, 11:01:32Тоесть мне надо снова повторить процедуру, но вместо 0 поставить 27?Ага, а заодно: 4, 24, 100, 1000
Страница сгенерирована за 0.02 секунд. Запросов: 21.