今天碰到一个很奇怪的问题, |
---|
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下创建文件夹
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