search

Home  >  Q&A  >  body text

ubuntu下用户组权限问题

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

高洛峰高洛峰2891 days ago481

reply all(2)I'll reply

  • 高洛峰

    高洛峰2017-04-22 08:57:46

    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 :)

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-22 08:57:46

    chown nobody:nobody www/ -R

    reply
    0
  • Cancelreply