Linux文件属主显示数字
2015-09-10 12:23
555 查看
今天发现一个很有趣的东西,Linux系统中有一个文件的属主是数字
[root@rac1 ~]# ls -al test
-rw-r--r-- 1 111 root 0 Sep 10 04:13 test
很好奇,想了想,可能是改变属组的时候使用的uid,但是后来uid改变了,然后就尝试一下:
[root@rac1 ~]# touch test
[root@rac1 ~]# useradd -u 112 -g root test
[root@rac1 ~]# chown 112:root test
[root@rac1 ~]# ls -al test
-rw-r--r-- 1 lm root 0 Sep 10 04:18 test
[root@rac1 ~]# usermod -u 113 -g root test
[root@rac1 ~]# ls -al test
-rw-r--r-- 1 112 root 0 Sep 10 04:18 test
现在,数字的属主就出现了。
[root@rac1 ~]# ls -al test
-rw-r--r-- 1 111 root 0 Sep 10 04:13 test
很好奇,想了想,可能是改变属组的时候使用的uid,但是后来uid改变了,然后就尝试一下:
[root@rac1 ~]# touch test
[root@rac1 ~]# useradd -u 112 -g root test
[root@rac1 ~]# chown 112:root test
[root@rac1 ~]# ls -al test
-rw-r--r-- 1 lm root 0 Sep 10 04:18 test
[root@rac1 ~]# usermod -u 113 -g root test
[root@rac1 ~]# ls -al test
-rw-r--r-- 1 112 root 0 Sep 10 04:18 test
现在,数字的属主就出现了。
相关文章推荐
- linux系统安装后优化
- linux系统安装后优化
- vi/vim 使用方法讲解
- 虚拟机安装CentOS6.4用“桥接:直接连接到物理网线”不能上网的原因及解决方法
- VMware虚拟机安装Linux centOS 6.5使用桥接
- linux后台运行和关闭、查看后台任务
- Linux中cron命令的用法详解
- CentOS7+Mysql-5.2.26+php-5.6.12+Zabbix-2.4.6
- 个人学习笔记--linux中断下半部之软中断
- centos服务器搭建svn
- Linux DM9000网卡驱动程序完全分析
- LinuxMint 17.2休眠后重新开机(使用电池)鼠标没有反应
- 如何在CentOS 7上修改主机名
- linux内核之休眠
- Linux系统中重复执行命令的方法小结
- 【未完】rsync同步--exclude/--delete等
- linux php.ini在哪
- Centos6.5 安装Composer
- Linux系统中-/+ buffers/cache: 1397032 2752124 的意思
- Centos 6.6 install gcc-4.8.2