AWS 서버에서 사용자에게 "net_privaddr" 권한을 부여해야 합니다. 나는 다음 명령으로 시도했습니다.
/usr/sbin/usermod -K defaultpriv=basic,net_privaddr USER
하지만 AWS 서버에는 K 옵션이 존재하지 않습니다. 바라보다:
[root@xxxx dddd]# /usr/sbin/usermod -K defaultpriv=basic,net_privaddr USER
/usr/sbin/usermod: invalid option -- 'K'
Usage: usermod [options] LOGIN
Options:
-c, --comment COMMENT new value of the GECOS field
-d, --home HOME_DIR new home directory for the user account
-e, --expiredate EXPIRE_DATE set account expiration date to EXPIRE_DATE
-f, --inactive INACTIVE set password inactive after expiration
to INACTIVE
-g, --gid GROUP force use GROUP as new primary group
-G, --groups GROUPS new list of supplementary GROUPS
-a, --append append the user to the supplemental GROUPS
mentioned by the -G option without removing
him/her from other groups
-h, --help display this help message and exit
-l, --login NEW_LOGIN new value of the login name
-L, --lock lock the user account
-m, --move-home move contents of the home directory to the
new location (use only with -d)
-o, --non-unique allow using duplicate (non-unique) UID
-p, --password PASSWORD use encrypted password for the new password
-s, --shell SHELL new login shell for the user account
-u, --uid UID new UID for the user account
-U, --unlock unlock the user account
-Z, --selinux-user new SELinux user mapping for the user account
[root@xxxx dddd]#
그렇다면 Usermod에 "K" 옵션이 없을 때 어떻게 해당 권한을 부여할 수 있습니까?
티아,
추신. 이것은 내 리눅스 버전입니다
Linux version 3.10.48-55.140.amzn1.x86_64 (mockbuild@gobi-build-60002)
(gcc version 4.8.2 20131212 (Red Hat 4.8.2-7) (GCC) ) #1 SMP