ยง2023-08-27
- Install
pi64 ~ # emerge --ask app-admin/sudo
Local copy of remote index is up-to-date and will be used.
* Last emerge --sync was 3y 77d 3h 20m 27s ago.
Local copy of remote index is up-to-date and will be used.
These are the packages that would be merged, in order:
Calculating dependencies... done!
[binary R ] app-admin/sudo-1.9.0-r1
!!! The following binary packages have been ignored due to changed dependencies:
dev-lang/perl-5.30.3-r1::gentoo
virtual/editor-0-r3::gentoo
NOTE: The --binpkg-changed-deps=n option will prevent emerge
from ignoring these binary packages if possible.
Using --binpkg-changed-deps=y will silence this warning.
Would you like to merge these packages? [Yes/No] Yes
>>> Emerging binary (1 of 1) app-admin/sudo-1.9.0-r1::gentoo
>>> Installing (1 of 1) app-admin/sudo-1.9.0-r1::gentoo
>>> Jobs: 1 of 1 complete Load avg: 1.18, 1.35, 0.89
* Messages for package app-admin/sudo-1.9.0-r1:
*
* sudo uses the /etc/ldap.conf.sudo file for ldap configuration.
*
* To use the -A (askpass) option, you need to install a compatible
* password program from the following list. Starred packages will
* automatically register for the use with sudo (but will not force
* the -A option):
*
* [*] net-misc/ssh-askpass-fullscreen
* net-misc/x11-ssh-askpass
*
* You can override the choice by setting the SUDO_ASKPASS environmnent
* variable to the program you want to use.
>>> Auto-cleaning packages...
>>> No outdated packages were found on your system.
* GNU info directory index is up-to-date.
- visudo add a user with visudo
##
## User privilege specification
##
root ALL=(ALL) ALL
alexlai ALL=(ALL) ALL
or,
## Uncomment to allow members of group wheel to execute any command
# %wheel ALL=(ALL) ALL
- add alexlai to wheel group
pi64 ~ # usermod -a -G wheel alexlai
pi64 ~ # id alexlai
uid=1026(alexlai) gid=1026(alexlai) groups=1026(alexlai),10(wheel)