添加用户
useradd– d / home / sam - m sam
此命令创建了一个用户 sam,其中 -d 和 -m 选项用来为登录名 sam 产生一个主目录/home/sam ( /home 为默认的用户主目录所在的父目录,所有用户的目录都应该在此目录下)。-m 命令保证了在目录不存在时自动创建目录
删除用户
userdel - r sam
此命令删除用户 sam 在系统文件中(主要是 /etc/passwd , /etc/shadow , /etc/group 等)的记录,同时删除用户的主目录。
看得透又看得远者prevail. ppt.cc/flUmLx ppt.cc/fqtgqx ppt.cc/fZsXUx ppt.cc/fhWnZx ppt.cc/fnrkVx ppt.cc/f2CBVx
ppt.cc/fKlBax ppt.cc/fwlgFx ppt.cc/fVjECx ppt.cc/fEnHsx ppt.cc/fRZTnx ppt.cc/fSZ3cx ppt.cc/fLOuCx ppt.cc/fE9Nux ppt.cc/fL5Kyx ppt.cc/f71Yqx tecmint.com linuxcool.com linux.die.net linux.it.net.cn ostechnix.com unix.com ubuntugeek.com runoob.com man.linuxde.net ppt.cc/fwpCex ppt.cc/fxcLIx ppt.cc/foX6Ux linuxprobe.com linuxtechi.com howtoforge.com linuxstory.org systutorials.com ghacks.net linuxopsys.com ppt.cc/ffAGfx ppt.cc/fJbezx ppt.cc/fNIQDx ppt.cc/fCSllx ppt.cc/fybDVx ppt.cc/fIMQxx
Total Pageviews
Monday, 29 June 2026
Linux上, 添加用户/ 删除用户的详细命令
Labels:
linux
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment