linux用戶組管理命令
This section contains Aptitude Questions and Answers on Linux User and Group Commands.
本節包含有關Linux用戶和組命令的 Aptitude問答。
createuser
adduser
useradd
user
Correct answer: 3
useradd
The useradd command is used to create a new user in the Linux operating system.
創建用戶
添加用戶
用戶添加
用戶
正確答案:3
用戶添加
useradd命令用于在Linux操作系統中創建新用戶。
Creates a new home directory for the user
The ownership and permissions are assigned to the home directory
Both of the above
None of the above
Correct answer: 3
Both of the above
When we create a new user then a new home directory gets created with required ownership and permissions.
為用戶創建一個新的主目錄
所有權和權限分配給主目錄
以上兩者
以上都不是
正確答案:3
以上兩者
當我們創建新用戶時,將創建具有所需所有權和權限的新主目錄。
/etc/group
/etc/shadow
/etc/gshadow
/etc/passwd
Options:
A and B
C and D
A, B, and C
A, B, C, and D
Correct answer: 4
A, B, C, and D
All given files get edited when we create a new in Linux operating system.
/ etc / group
/ etc / shadow
/ etc / gshadow
/ etc / passwd
選項:
A和B
C和D
A,B和C
A,B,C和D
正確答案:4
A,B,C和D
當我們在Linux操作系統中創建新文件時,所有給定的文件都會被編輯。
0
1
2
3
Correct answer: 1
0
The 0 UID is reserved for root users in Linux operating system.
0
1個
2
3
正確答案:1
0
0 UID為Linux操作系統中的root用戶保留。
1-50
51-100
100-999
1000-9999
Correct answer: 3
100-999
The UIDs range 100-999 and are reserved for groups and system accounts.
1-50
51-100
100-999
1000-9999
正確答案:3
100-999
UID的范圍為100-999,并且保留給組和系統帳戶使用。
GID is a group identification number that is used it identify a group in Linux OS.
GID is provided by the Linux operating system to the newly created group.
GID is provided by the user who created the group in the Linux operating system.
GIDs are stored in /etc/group file.
Options:
A and B
A, B, and D
A, B, and C
B, C, and D
Correct answer: 2
A, B, and D
Statements A, B, and D are correct about GID in the Linux operating system.
GID是一個組標識號,用于在Linux OS中標識一個組。
GID由Linux操作系統提供給新創建的組。
GID由在Linux操作系統中創建組的用戶提供。
GID存儲在/ etc / group文件中。
選項:
A和B
A,B和D
A,B和C
B,C和D
正確答案:2
A,B和D
關于Linux操作系統中GID的語句A,B和D是正確的。
useradd -m /MyHome user1
useradd -m -d /MyHome user1
useradd -m -h /MyHome user1
useraddhome /MyHome user1
Correct answer: 2
useradd -m -d /MyHome user1
The 2nd option is an exact command to create a user user1 with home directory MyHome.
useradd -m / MyHome user1
useradd -m -d / MyHome user1
useradd -m -h / MyHome user1
useraddhome / MyHome user1
正確答案:2
useradd -m -d / MyHome user1
第二個選項是使用主目錄MyHome創建用戶user1的精確命令。
password
newpass
passwd
pwd
Correct answer: 3
passwd
The passwd command is used to assign a password to the created user.
密碼
新通
密碼
密碼
正確答案:3
密碼
passwd命令用于為創建的用戶分配密碼。
Yes
No
Correct answer: 1
Yes
Yes, we can create a new user with an expiry date; it means the user gets deleted automatically after a particular date.
是
沒有
正確答案:1
是
是的,我們可以創建一個具有到期日期的新用戶; 這意味著用戶將在特定日期后自動刪除。
who
whoami
who am i
w
Options:
A and B
C and D
A, B, and C
A, B, C, and D
Correct answer: 4
A, B, C, and D
All given commands are used to know about the current user.
WHO
我是誰
我是誰
w
選項:
A和B
C和D
A,B和C
A,B,C和D
正確答案:4
A,B,C和D
所有給定的命令用于了解當前用戶。
This command describes the user id.
This command describes the group id.
This command describes the list of groups belongs to the user.
All the above
Options:
A and B
A and C
B and C
D
Correct answer: 4
D
All statements are correct about the id command.
此命令描述用戶標識。
此命令描述組ID。
此命令描述屬于用戶的組列表。
以上全部
選項:
A和B
A和C
B和C
d
正確答案:4
d
所有關于id命令的語句都是正確的。
Using sudo command
Using su command
Using super command
None of the above
Correct answer: 2
Using su command
Using su command is used to change a normal user to root user.
使用sudo命令
使用su命令
使用超級命令
以上都不是
正確答案:2
使用su命令
使用su命令可將普通用戶更改為root用戶。
Yes
No
Correct answer: 1
Yes
Yes we can create a new user without becoming root user using the sudo command.
是
沒有
正確答案:1
是
是的,我們可以使用sudo命令創建新用戶而無需成為root用戶。
/etc/passwords
/etc/shadow
/etc/pwd
/etc/pwds
Correct answer: 2
/etc/shadow
The /etc/shadow file contains encrypted user's passwords.
/ etc / passwords
/ etc / shadow
/ etc / pwd
/ etc / pwds
正確答案:2
/ etc / shadow
/ etc / shadow文件包含加密的用戶密碼。
Yes
No
Correct answer: 2
No
No, a non-root user cannot read /etc/shadow file.
是
沒有
正確答案:2
沒有
否,非root用戶無法讀取/ etc / shadow文件。
encrypt passwd
secure passwd
openssl passwd
All the above
Correct answer: 3
openssl passwd
The openssl password command is used to create an encrypted password.
加密密碼
安全密碼
openssl密碼
以上全部
正確答案:3
openssl密碼
openssl password命令用于創建加密密碼。
In this file, we can define the maximum number of days a password may be used.
In this file, we can define the minimum number of days allowed between password changes.
In this file, we can also define the minimum and maximum length of the password.
There is no "/etc/login.defs" file exists in the Linux operating system.
Options:
A and B
A and C
A, B and C
D
Correct answer: 3
A, B and C
Statements A, B, and C are correct about /etc/login.defs file.
在此文件中,我們可以定義密碼可以使用的最大天數。
在此文件中,我們可以定義兩次密碼更改之間允許的最少天數。
在此文件中,我們還可以定義密碼的最小和最大長度。
Linux操作系統中不存在“ /etc/login.defs”文件。
選項:
A和B
A和C
A,B和C
d
正確答案:3
A,B和C
關于/etc/login.defs文件,語句A,B和C是正確的。
change
knowpass
passinf
info
Correct answer: 1
change
The change command is used to know password information.
更改
知識通
密碼
信息
正確答案:1
更改
change命令用于了解密碼信息。
usermod
userenable
userdisable
change
Correct answer: 1
usermod
The usermod command is used to enable and disable password for a particular user.
用戶模組
用戶可使用的
用戶禁用
更改
正確答案:1
用戶模組
usermod命令用于為特定用戶啟用和禁用密碼。
usermod -D <user name>
usermod -d <user name>
usermod -l <user name>
usermod -L <user name>
Correct answer: 4
usermod -L <user name>
The 4th option is correct command to disable password for a particular user.
usermod -D <用戶名>
usermod -d <用戶名>
usermod -l <??用戶名>
usermod -L <用戶名>
正確答案:4
usermod -L <用戶名>
第四個選項是正確的命令,用于禁用特定用戶的密碼。
creategroup
addgroup
groupadd
groupcreate
Correct answer: 3
groupadd
The groupadd command is used to create a new group.
創建組
添加組
組添加
組創建
正確答案:3
組添加
groupadd命令用于創建新組。
grouplist
groups
groupinfo
groupinformation
Correct answer: 2
groups
The groups command is used to know about groups that below to current user.
群組清單
團體
組信息
組信息
正確答案:2
團體
groups命令用于了解當前用戶下面的組。
rename
rengroup
groupmode
groupmod
Correct answer: 4
groupmod
The groupmod command is used to rename the existing group.
改名
人組
組模式
組mod
正確答案:4
組mod
groupmod命令用于重命名現有組。
removegroup
deletegroup
groupdel
grouprmv
Correct answer: 3
groupdel
The groupdel command is used to remove an existing group.
刪除組
刪除組
groupdel
組
正確答案:3
groupdel
groupdel命令用于刪除現有組。
groupuser
gpasswd
grouppasswd
None of the above
Correct answer: 2
gpasswd
The gpasswd command is used to pass control of group membership to another user.
組用戶
gpasswd
組密碼
以上都不是
正確答案:2
gpasswd
gpasswd命令用于將組成員身份控制權傳遞給另一個用戶。
翻譯自: https://www.includehelp.com/linux/user-and-group-commands-commands-aptitude-questions-and-answers.aspx
linux用戶組管理命令