Data stored on the hard disk is stored numberically
ex:
ueradd test01
ll-d /home/test01/
userdel test01
UID or GID are 2023 ,for The user is deleted
tail /etc/shadow
useradd
useradd -s /sbin/nologin
uesermod -a -G users david
add user to a group
uid
gid user's private group
Gid add group
tom: gid
ll /var/log/messages
ps -ef |grep log
id mail
last
lastb serch who login in my computer
umask :
666 777
root :022 644 755
002 664 775
033 644 744
rw-rw-rw-
033 ---wx-wx
rw-r--r--
644
suid command run with permissions of the owner of the command .not executor of the command
sgid command runs with group affiliation of the group of the command
find / -perm -2000
------------------------------------
mkdir /data
chmod 777 /data
chmod g+s /data
chgrp users /data/
usermod -a -G users user1
usermod -a -G users david
4 suid 2 sgid 1stiky
chmod 3777
find / -perm -4000 find the suid firm
本文介绍了 Linux 系统中用户管理的基本操作,包括用户添加、删除、组管理及权限设置等,并详细解释了 UID、GID 的作用以及 umask、suid 和 sgid 的使用方法。
1820

被折叠的 条评论
为什么被折叠?



