我更改了文件 ( chmod g+w testfile) 的权限并运行ls -l testfile:
chmod g+w testfile
ls -l testfile
-rwxrwxr-x 1 user1 user1 0 2011-01-24 20:36 testfile
然后我将一个用户添加到该组(“ /etc/group ”有user1:x:1000:user2一行),但是我无法以 user2.conf 的身份编辑该文件。为什么会这样?
user1:x:1000:user2
users permissions group
group ×1
permissions ×1
users ×1