摘要:
作业一: 1) 将用户信息数据库文件和组信息数据库文件纵向合并为一个文件/1.txt(覆盖) [root@localhost ~]# cat /etc/passwd /etc/group > 1.txt 2) 将用户信息数据库文件和用户密码数据库文件纵向合并为一个文件/2.txt(追加) [root 阅读全文
posted @ 2017-03-16 21:57
qianxiamo
阅读(163)
评论(0)
推荐(0)
摘要:
作业三: 以操作文件的方式,新建一个用户alex echo "alex:x:1200:1200::/home/alex/:/bin/bash" >> /etc/passwd echo "alex:x:1200:" >> /etc/group echo "alex::17239:0:99999:7:: 阅读全文
posted @ 2017-03-16 08:31
qianxiamo
阅读(84)
评论(0)
推荐(0)
摘要:
作业四: 1) 新建目录/test/dir,属主为tom,数组为group1,/test目录的权限为777 # useradd tom [root@localhost /]# groupadd group1 [root@localhost /]# chown tom.group1 /test/dir 阅读全文
posted @ 2017-03-16 08:29
qianxiamo
阅读(165)
评论(0)
推荐(0)
摘要:
作业二: 1) 在用户的主目录下创建目录test,进入test创建空文件file1 # ls /home/test file 2) 以长格式形式显示文件信息,注意文件的权限和所属用户和组 # ls -l 总用量 0 -r--r-xr-x. 1 root root 0 3月 15 15:06 file 阅读全文
posted @ 2017-03-16 08:28
qianxiamo
阅读(251)
评论(0)
推荐(0)
摘要:
作业一: 1) 新建用户natasha,uid为1000,gid为555,备注信息为“master” natasha:x:1004:555:master:/home/natasha:/bin/bash 2) 修改natasha用户的家目录为/Natasha usermod -d /Natasha n 阅读全文
posted @ 2017-03-16 08:27
qianxiamo
阅读(137)
评论(0)
推荐(0)
浙公网安备 33010602011771号