0
:

 

 

user is not in the sudoers file. This incident will be reported.

  
: 0
sudo, su . /etc/sudoers :/
PHP:
  1. kuzia@mobile ~ $ sudo apt-get 123123
  2. [sudo] password for kuzia:
  3. kuzia is not in the sudoers file. This incident will be reported.
  4. kuzia@mobile ~ $ su
  5. :
  6. mobile kuzia # /etc/sudoers
  7. bash: /etc/sudoers:
  8. mobile kuzia #
  9.  
/etc/group . , ?
: 0
ID
PHP:
  1. kuzia@mobile ~ $ id
  2. 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)
  3.  
: 0
root. sudoers, .
:
PHP:
  1. #
  2. # This file MUST be edited with the 'visudo' command as root.
  3. #
  4. # Please consider adding local content in /etc/sudoers.d/ instead of
  5. # directly modifying this file.
  6. #
  7. # See the man page for details on how to write a sudoers file.
  8. #
  9. Defaults env_reset
  10. Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
  11.  
  12. # Host alias specification
  13.  
  14. # User alias specification
  15.  
  16. # Cmnd alias specification
  17.  
  18. # User privilege specification
  19. root ALL=(ALL:ALL) ALL
  20.  
  21. # Members of the admin group may gain root privileges
  22. %admin ALL=(ALL) ALL
  23.  
  24. # Allow members of group sudo to execute any command
  25. %sudo ALL=(ALL:ALL) ALL
  26.  
  27. # See sudoers(5) for more information on "#include" directives:
  28.  
  29. #includedir /etc/sudoers.d
?
: 0
, . . root:
PHP:
  1. usermod -a -G root <username>
, sudoers, , , .

, .
 
|
:
, .