add task_29.sh
This commit is contained in:
Executable
+10
@@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
#创建testgroup组
|
||||||
|
sudo groupadd testgroup
|
||||||
|
|
||||||
|
#创建testuser用户并加入testgroup
|
||||||
|
sudo useradd -m -g testgroup testuser
|
||||||
|
|
||||||
|
# 验证:查看testuser的id信息
|
||||||
|
id testuser
|
||||||
Reference in New Issue
Block a user