• 카테고리

    질문 & 답변
  • 세부 분야

    데브옵스 · 인프라

  • 해결 여부

    미해결

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

22.05.20 15:30 작성 조회수 273

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

 

답변 2

·

답변을 작성해보세요.

0

류재안님의 프로필

류재안

2023.07.16

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

0

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

 

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

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

 

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

감사합니다. 

 

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