chgrp

Ubuntu下chgrp的用法

你。 提交于 2020-12-15 06:42:38
每天一个linux命令链接: http://www.cnblogs.com/peida/archive/2012/12/03/2799003.html 实例1: 改变文件的群组属性 命令: chgrp -v bin log2012.log 输出: [root@localhost test] # ll ---xrw-r-- 1 root root 302108 11-13 06:03 log2012.log [root @localhost test] # chgrp -v bin log2012.log “log2012.log” 的所属组已更改为 bin [root @localhost test] # ll ---xrw-r-- 1 root bin 302108 11-13 06:03 log2012.log 说明: 将 log2012.log 文件由 root群组改为bin群组 来源: oschina 链接: https://my.oschina.net/u/2320120/blog/414959

Need to reboot Xubuntu to make chgrp work?

那年仲夏 提交于 2019-12-12 01:44:41
问题 I recently noticed a fairly strange and for me unexpected behaviour in Xubuntu 12.04 and 14.04. I was doing the following: Testing if my user in in the group users , with groups $USER This is not the case by default. So I add my user to this group: sudo usermod -a -G users $USER I the can check the file /etc/group and will see my user added in the entry. I then would like to give the group users access to some files, in my example the www and cgi-bin directory: sudo chgrp users /var/www /usr