[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#948944: general: File Premissions broken, Group write access denied



Travis Eddy <travis@smartwareit.com> writes:

> Looks like something is broken with the file premissions.. Quick test to
> replicate the problem

> Install Debian
> Create 2 users
> Create a folder /test
> add user1 to user2's group
> usermod -a -G user2 user1
> make the Test folder writeable by that group
> as root chown user2:user2 /test
>  chmod 2775 /test

> As user1 try to write in /test

> user1:/test$ mkdir test2

> you'll get a premission denied error,

usermod doesn't change an open session.  I suspect user1 was logged on
before you ran the usermod command and you're trying the mkdir from that
open session.  Try newgrp user2 in user1's session after the usermod, or
log out and log back in to refresh your supplemental groups.

(This has always been Debian's, and indeed UNIX's, behavior so far as I
know.)

-- 
Russ Allbery (rra@debian.org)              <https://www.eyrie.org/~eagle/>


Reply to: