l******n 发帖数: 17 | 1 /etc/mnttab的属性是这样的:
-r--r--r-- 1 root root
我想编辑这个文件,所以想先加上写权限
没想到 chmod 644 mnttab 改不了,出错
信息是:
#chmod 644 mnttab
chmod: WARNING: can't change mnttab
What's wrong?! 我又试了试其它没有写权限
的都加不上
BTW: 是root, Solaris 8 on SUN ULTRA5 |
c**t 发帖数: 2744 | 2
lsattr root?
【在 l******n 的大作中提到】 : /etc/mnttab的属性是这样的: : -r--r--r-- 1 root root : 我想编辑这个文件,所以想先加上写权限 : 没想到 chmod 644 mnttab 改不了,出错 : 信息是: : #chmod 644 mnttab : chmod: WARNING: can't change mnttab : What's wrong?! 我又试了试其它没有写权限 : 的都加不上 : BTW: 是root, Solaris 8 on SUN ULTRA5
|
l******n 发帖数: 17 | 3 what's lsattr?
【在 c**t 的大作中提到】 : : lsattr root?
|
t*******g 发帖数: 89 | 4 I think /etc/mnttab is maintained by kernel and is refered
by mount command.
【在 l******n 的大作中提到】 : /etc/mnttab的属性是这样的: : -r--r--r-- 1 root root : 我想编辑这个文件,所以想先加上写权限 : 没想到 chmod 644 mnttab 改不了,出错 : 信息是: : #chmod 644 mnttab : chmod: WARNING: can't change mnttab : What's wrong?! 我又试了试其它没有写权限 : 的都加不上 : BTW: 是root, Solaris 8 on SUN ULTRA5
|
a****y 发帖数: 1035 | 5 if you use vi, try :w!
I did this before, but not sure if it's Solaris 8
【在 l******n 的大作中提到】 : /etc/mnttab的属性是这样的: : -r--r--r-- 1 root root : 我想编辑这个文件,所以想先加上写权限 : 没想到 chmod 644 mnttab 改不了,出错 : 信息是: : #chmod 644 mnttab : chmod: WARNING: can't change mnttab : What's wrong?! 我又试了试其它没有写权限 : 的都加不上 : BTW: 是root, Solaris 8 on SUN ULTRA5
|