강의

멘토링

커뮤니티

Cộng đồng Hỏi & Đáp của Inflearn

Hình ảnh hồ sơ của esk10083411
esk10083411

câu hỏi đã được viết

Nhập môn Amazon AWS

sudo usermod –a –G apache ec2-user 이 명령어가 안먹어요

Đã giải quyết

Viết

·

408

0

sudo usermod –a –G apache ec2-user

해당 명령어를 입력하면 아래같이 나옵니다.

이후 진행을 못하고 있어요.

 

[ec2-user@ip-172-31-22-71 ~]$ sudo usermod –a –G apache ec2-user

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

  -R, --root CHROOT_DIR         directory to chroot into

  -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 SEUSER     new SELinux user mapping for the user account

 

wordpressaws

Câu trả lời 2

0

저도 명령어 모음.txt 로 하니 위와 같은 오류가 나서 좀 헤맸는데 답변처럼 직접 입력하니 실행이 되네요.

0

Masocampus님의 프로필 이미지
Masocampus
Người chia sẻ kiến thức

esk1008님, 안녕하세요. 마소캠퍼스 헬프데스크입니다.

 

AWS 수업의 경우 사용하는 Editor에 따라서 copy&paste 시에 언어 코드의 값이 변경될 수 있기 때문에,

실습은 콘솔에 직접 타이핑하여 수강하시는 것을 추천드립니다.

 

이와 같은 방식으로 동일한 오류가 발생한다면, 언제든지 문의해 주시기 바랍니다.

감사합니다. 

 

마소캠퍼스 헬프데스크 드림

Hình ảnh hồ sơ của esk10083411
esk10083411

câu hỏi đã được viết

Đặt câu hỏi