Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

5 views
Skip to first unread message

Travis Eddy

unread,
Jan 14, 2020, 10:50:02 PM1/14/20
to
Package: general
Severity: normal

Dear Maintainer,

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, for a reason i can't figure out. I've tried many different
commands and goolged incase the useradd commands changed ( never know with linux any more )
I haven't used debian since version 8, i've been using Cent. But this should be a standard....


-- System Information:
Debian Release: 10.2
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-6-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Russ Allbery

unread,
Jan 14, 2020, 11:00:03 PM1/14/20
to
Travis Eddy <tra...@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 (r...@debian.org) <https://www.eyrie.org/~eagle/>

Debian Bug Tracking System

unread,
Jan 15, 2020, 7:10:02 AM1/15/20
to
Your message dated Wed, 15 Jan 2020 11:59:52 +0000
with message-id <20200115115952....@layer-acht.org>
and subject line Re: Bug#948944: general: File Premissions broken, Group write access denied
has caused the Debian Bug report #948944,
regarding general: File Premissions broken, Group write access denied
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


--
948944: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=948944
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
signature.asc
0 new messages