linux *** 作命令

linux *** 作命令,第1张

[root@localhost collectl]# groupadd student

[root@localhost collectl]# useradd -g student -u 505 -s /bin/bash test

[root@localhost collectl]# passwd test

Changing password for user test.

New UNIX password:

BAD PASSWORD: it is too simplistic/systematic

Retype new UNIX password:

passwd: all authentication tokens updated successfully.

[root@localhost collectl]# tail -1 /etc/passwd

test:x:505:500::/home/test:/bin/bash

[root@localhost collectl]# mkdir software

[root@localhost collectl]# chmod 666 software

[root@localhost collectl]# touch software/readme

[root@localhost collectl]# echo "今天是个阴天" >software/readme

[root@localhost collectl]# cat software/readme

今天是个阴天

[test@localhost collectl]$ su test

[test@localhost collectl]$ cd software/

bash: cd: software/: 权限不够

但是为什么给目录设置成666呢?对于目录来说,应该有执行权限才能进去。也就是为7的。 对于文件的最大权限就是666,而对于目录来说,最大最公开的权限就是777,如/tmp就是

1、首先打开505cent官方网站,点击左上角的登录。

2、其次输入自己的账号为身份z号,输入手机号获取验证码。

3、最后输入验证码就成功登陆了。505cent是Linux *** 作系统的一款线上教育平台。


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/yw/7347966.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-04-04
下一篇 2023-04-04

发表评论

登录后才能评论

评论列表(0条)

保存