ubuntu下用户组权限问题
高洛峰
高洛峰 2017-04-22 08:55:46
0
2
385
今天碰到一个很奇怪的问题,
pengzhen@pengzhen-ubuntu:/var$ ll /var |grep www/
drwxrwxr-x  6 nobody nobody   4096  8月 14 17:10 www/
pengzhen@pengzhen-ubuntu:/var$ groups pengzhen
pengzhen : nobody adm cdrom sudo dip plugdev lpadmin sambashare
pengzhen@pengzhen-ubuntu:/var$ mkdir www/a
mkdir: 无法创建目录"www/a": 权限不够
pengzhen@pengzhen-ubuntu:/var$

很纳闷的是,pengzhen这个用户明明是属于nobody组的,并且www目录的用户组是nobody,
且所属组权限是7,具有可读写执行,但pengzhen这个用户还是无法在www下创建文件夹

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(2)
小葫芦

This question is very simple. The questioner only needs to look at the manpage to know where his problem lies.

man groups
man finger
man id
Take a look at the instructions for these commands to solve the problem.
I only provide solution ideas here, if you don’t understand, you can chat about it :)

大家讲道理

chown nobody:nobody www/ -R

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!