Skip to content

필사 모드: Linux User and Group Commands

English
0%
정확도 0%
💡 왼쪽 원문을 읽으면서 오른쪽에 따라 써보세요. Tab 키로 힌트를 받을 수 있습니다.
원문 렌더가 준비되기 전까지 텍스트 가이드로 표시합니다.

Overview

Let's learn about the types of HBase Client APIs used to work with HBase.

useradd, userdel

Key useradd options

- -m: Create the user's home directory along with the user

- -d directory: Use directory as the user's home directory

- -e date: Specify date as the account expiration date

- -g group_id: Use group_id as the user's group ID

- -G group1, group2: Specify the user's group membership (multiple groups)

- -P password: Set password as the password

Create a new user

$ useradd user

Create a user with an account expiration date

$ useradd -e 2022-12031 user

Delete a user

$ userdel user

useradd, userdel

Key groupadd options

- -g gid: Use gid as the group ID

- -o: When creating a group with a group ID specified by the -g option, ignore errors even if the ID already exists and create the group anyway

Create a new group

$ groupadd mygroup

Create with group_id 555

$ groupadd -g 555 mygroup

Delete a group

$ groupdel mygroup

That concludes this post on how to add and delete Linux users and groups. Thank you.

Quiz

How to add or delete Users and Groups in Linux

-m: Create the user's home directory along with the user -d directory: Use directory as the user's

home directory -e date: Specify date as the account expiration date -g group_id: Use group_id as

the user's group ID -G group1, group2: Specify the user's group membership (multiple...

-g gid: Use gid as the group ID -o: When creating a group with a group ID specified by the -g

option, ignore errors even if the ID already exists and create the group anyway That concludes

this post on how to add and delete Linux users and groups. Thank you.

현재 단락 (1/23)

Let's learn about the types of HBase Client APIs used to work with HBase.

작성 글자: 0원문 글자: 1,397작성 단락: 0/23