: 0 | sudo, su . /etc/sudoers :/ PHP:kuzia@mobile ~ $ sudo apt-get 123123 [sudo] password for kuzia: kuzia is not in the sudoers file. This incident will be reported .kuzia@mobile ~ $ su : mobile kuzia # /etc/sudoers bash: /etc/sudoers: mobile kuzia #
/etc/group . , ? |
: 0 | ID PHP:kuzia@mobile ~ $ id uid=1000(kuzia) gid=1000(kuzia) =1000(kuzia),4(adm),20(dialout),21(fax),24(cdrom),25(floppy),26(tape),29(audio),30(dip),44(video),46(plugdev),104(fuse),107(scanner),109(lpadmin),112(nopasswdlogin),113(netdev),126(powerdev),127(sambashare)
|
: 0 | root. sudoers, . : PHP:# # 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_reset Defaults 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 specification root 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
? |
: 0 | , . . root: PHP:usermod -a -G root <username>
, sudoers, , , . , . |