chown:opreration not permitted
bzcnc 2008-01-26 04:12:04 在学习linux文件的属主的改变的时候,我遇到了这样一个问题,只要使用超级用户,就可以修改文件的属主,但是该文件的属主无法进行修改,不知道问题出现在何处?希望得到专家的帮助:
举例而言:
[bzjfcx@localhost bzjfcx]$ ls -l sd
-rw-rw-r-- 2 bzjfcx bzjfcx 9 Nov 21 09:31 sd
[bzjfcx@localhost bzjfcx]$ chown root sd
chown: changing ownership of `sd': Operation not permitted
[bzjfcx@localhost bzjfcx]$ ls -l sd
-rw-rw-r-- 2 bzjfcx bzjfcx 9 Nov 21 09:31 sd
这个操作不能成功,然后我就切换到超级用户root进行相同的操作:
[bzjfcx@localhost bzjfcx]$ su - root
Password:
[root@localhost root]# ls -l sd
ls: sd: No such file or directory
[root@localhost root]# cd /home/bzjfcx/
[root@localhost bzjfcx]# ls -l sd
-rw-rw-r-- 2 bzjfcx bzjfcx 9 Nov 21 09:31 sd
[root@localhost bzjfcx]# chown root sd
[root@localhost bzjfcx]# ls -l sd
-rw-rw-r-- 2 root bzjfcx 9 Nov 21 09:31 sd
[root@localhost bzjfcx]#
修改sd属主成功,我想问题上面文件的属主不能修改的原因,谢谢!