完成实践题
This commit is contained in:
Executable
+13
@@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo "创建用户组testgroup"
|
||||||
|
groupadd testgroup
|
||||||
|
|
||||||
|
echo "创建用户testuser"
|
||||||
|
useradd -m testuser
|
||||||
|
|
||||||
|
echo "将testuser加入testgroup组"
|
||||||
|
usermod -aG testgroup testuser
|
||||||
|
|
||||||
|
echo "验证结果"
|
||||||
|
id testuser
|
||||||
Reference in New Issue
Block a user