Linux下添加一用户Sunrier并设置密码为RedHat:
su -
输入密码
pwconv
useradd Sunrier
pwunconv
pwconv
passwd Sunrier
redhat
pwunconv
改变档案的拥有者
chown -R user[:group] file
user : 新的档案拥有者的使用者 ID
group: 新的档案拥有者的使用者群体(group),为可选项
-R : 对目前目录下的所有档案与子目录进行相同的拥有者变更(即以递回的方式逐个变更) 例:
[root@localhost Sunrier]# ls -l
总计 6
drwxr-xr-x 3 root root 4096 07-31 11:11 src
[root@localhost Sunrier]# chown -R Sunrier:Sunrier src
[root@localhost Sunrier]# ls -l
总计 6
drwxr-xr-x 3 Sunrier Sunrier 4096 07-31 11:11 src
[root@localhost Sunrier]#Linux下学习crontab定时任务笔记CentOS 6 boot分区被删除了恢复总结相关资讯 Linux命令
- 48 字节命令可令 Linux 系统当机! (今 07:55)
- 在Linux笔记本上执行这句命令能致 (02月02日)
- .NET开发必会的Linux命令 (12/20/2015 10:32:03)
| - 运维工程师必会的109个Linux命令 (03月09日)
- 有趣的Linux命令行:随机输出唐诗 (12/28/2015 20:14:23)
- 10 个 Linux 中的 passwd 命令示例 (10/29/2015 10:14:30)
|
本文评论 查看全部评论 (0)