Linux中创建两个用户帐号test1(UID为2045,并属于group1),test2(UID为2046,并属于group2)密码均为upl123

2025-04-29 14:58:22
推荐回答(1个)
回答1:

echo upl123 | password --stdin | useradd -g group1 -u 2045 test1
echo upl123 | password --stdin | useradd -g group2 -u 2046 test2