linux 用戶和組管理

1.用戶相關html

https://blog.csdn.net/wj78080458/article/details/86217037  添加用戶useraddui

https://blog.csdn.net/yilovexing/article/details/78793858 刪除用戶userdel.net

https://blog.51cto.com/13438667/2061590 Linux用戶user,組group詳解htm

1.1查詢用戶和組;blog

cat /etc/passwd|grep user1get

cat /etc/shadow|grep user1test

1.2添加用戶;grep

useradd -d /home/other -u 600 -g group_name -c "test user" user02  新建用戶並設定用戶的家目錄、uid、備註查詢

1.3刪除用戶;di

userdel user1

 

2.組相關

http://www.javashuo.com/article/p-wrruqwjt-ck.html 添加組groupadd

https://blog.csdn.net/yexiangCSDN/article/details/80757836 刪除組groupdel

2.1 查詢組信息;

cat /etc/group|grep loggrp

cat /etc/gshadow|grep loggrp

2.2 添加組;

groupadd -g 400008 group_name

2.3 刪除組

groupdel group_name

相關文章
相關標籤/搜索