Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #230389
| From | Greg Wooledge <wooledg@eeg.ccf.org> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: Is this possible with DAC or ACL? |
| Date | 2021-01-06 19:40 +0100 |
| Message-ID | <BulSV-4nC-7@gated-at.bofh.it> (permalink) |
| References | <Buj4L-2Gm-33@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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`? Yes. Simply change the owner of /dir to theuser, but make sure the parent of /dir (which is / or root because of course you did not give a POOR EXAMPLE which has a different number of slashes than the actual directory!!) is owned by root, and isn't writable by "group" or "other". Since / should already be owned by root, there's nothing required there, but you can verify its ownership and permissions with ls -ld /
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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