Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #230383

Re: Is this possible with DAC or ACL?

From Reco <recoverym4n@enotuniq.net>
Newsgroups linux.debian.user
Subject Re: Is this possible with DAC or ACL?
Date 2021-01-06 16:40 +0100
Message-ID <Buj4M-2Gm-65@gated-at.bofh.it> (permalink)
References <Buj4L-2Gm-33@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


	Hi.

On Wed, Jan 06, 2021 at 04:32:02PM +0100, Yvan Masson wrote:
> Let's say I have a directory `/dir`. Is it possible to allow a user to
> do whatever he wants inside this directory, but not to delete `/dir`?

To delete a directory a user must have an appropriate permissions to a
higher-level directory.

Taking your example literally:

root@x:/# mkdir /dir
root@x:/# chown user /dir
root@x:/# su - user
user@x:~$ rmdir /dir
rmdir: failed to remove '/dir': Permission denied

Why it behaves so? Because this:

# ls -lad /
drwxr-xr-x 23 root root 4096 Jan  6 15:33 /

Reco

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Is this possible with DAC or ACL? Yvan Masson <yvan@masson-informatique.fr> - 2021-01-06 16:40 +0100
  Re: Is this possible with DAC or ACL? Reco <recoverym4n@enotuniq.net> - 2021-01-06 16:40 +0100
  Re: Is this possible with DAC or ACL? David Wright <deblis@lionunicorn.co.uk> - 2021-01-06 17:30 +0100
  Re: Is this possible with DAC or ACL? Greg Wooledge <wooledg@eeg.ccf.org> - 2021-01-06 19:40 +0100
    Re: Is this possible with DAC or ACL? Yvan Masson <yvan@masson-informatique.fr> - 2021-01-07 13:00 +0100

csiph-web