Linux,即使拥有组权限也为什么不能写? [英] Linux, Why can't I write even though I have group permissions?

查看:101
本文介绍了Linux,即使拥有组权限也为什么不能写?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我所属的工作人员小组拥有的目录中创建一个文件.为什么我不能这样做?

I want to create a file in a directory owned by the staff group which I am a member of. Why can I not do this?

bmccann@bmccann-htpc:~$ ls -l /usr/local/lib/R/
total 4
drwxrwsr-x 2 root staff 4096 2010-07-31 16:21 site-library
bmccann@bmccann-htpc:~$ id -nG bmccann
bmccann adm dialout cdrom plugdev staff lpadmin admin sambashare
bmccann@bmccann-htpc:~$ touch /usr/local/lib/R/site-library/tmp
touch: cannot touch `/usr/local/lib/R/site-library/tmp': Permission denied

推荐答案

在更改组后您是否注销并重新登录?参见:
涉及触摸权限失败的超级用户答案

Did you logout and log back in after making the group changes? See:
Super User answer involving touch permissions failure

这篇关于Linux,即使拥有组权限也为什么不能写?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆