LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 916|回复: 3

[求助]关于组内权限的问题

[复制链接]
发表于 2007-10-19 15:07:12 | 显示全部楼层 |阅读模式
个人用groupadd命令建立了一个TEST组,GID为502,我通过修改/etc/group文件,将原有的用户student和michael加入到TEST组内,用root登陆,并建立一个test文件,通过chmod将其权限修改为-rwxrw----,再通过chgrp命令,将其组的所有权修改为TEST,问题出现:通过ls -l命令看到其所有组居然为michael!!!用michael和student账户登陆后均无法对test文件进行修改!!无奈之下,用 useradd -g TEST test1命令新增一个TEST组内账户,用这个账户登陆,却可以对test文件进行修改!!小弟不解,请各位高手指教!!按道理说小弟的做法,应该是michael和student账户均可以对test文件进行修改的!!
 楼主| 发表于 2007-10-19 17:45:33 | 显示全部楼层
晕倒,怎么还是没人啊?自己顶一下
回复 支持 反对

使用道具 举报

发表于 2007-10-21 23:51:15 | 显示全部楼层
改错了吧,,能用命令就不要去编辑/etc/group
回复 支持 反对

使用道具 举报

发表于 2007-10-22 07:23:54 | 显示全部楼层
PWCONV(8)

NAME
       pwconv,  pwunconv,  grpconv,  grpunconv  -  convert to and from shadow
       passwords and groups.

SYNOPSIS
       pwconv
       pwunconv
       grpconv
       grpunconv

DESCRIPTION
       These four programs all operate on the normal and shadow password  and
       group files: /etc/passwd, /etc/group, /etc/shadow, and /etc/gshadow.

       pwconv  creates  shadow from passwd and an optionally existing shadow.
       pwunconv creates passwd  from  passwd  and  shadow  and  then  removes
       shadow.  grpconv creates gshadow from group and an optionally existing
       gshadow.  grpunconv creates group from  group  and  gshadow  and  then
       removes gshadow.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表