public inbox for gentoo-user-de@lists.gentoo.org
 help / color / mirror / Atom feed
From: Dirk Heinrichs <ext-dirk.heinrichs@nokia.com>
To: gentoo-user-de@lists.gentoo.org
Subject: Re: [gentoo-user-de] Dateirechte
Date: Wed, 7 Sep 2005 15:08:52 +0200	[thread overview]
Message-ID: <200509071508.54411.ext-dirk.heinrichs@nokia.com> (raw)
In-Reply-To: <1126097696.10530.6.camel@heron.homelinux.net>

[-- Attachment #1: Type: text/plain, Size: 1421 bytes --]

Am Mittwoch, 7. September 2005 14:54 schrieb ext Daniel Rindt:
> Hallo,
>
> folgendes Problem, es gibt ein Verzeichnis, darin sind auch wiederum
> Verzeichnisse verschachtelt. Wenn ich als Systembenutzer eine Datei
> anlege wird dies mit umask=0022 getan. Ich möchte aber das z.B. an
> anderer Benutzer ebenso auf diesen Verzeichnissen Dateien anlegen kann
> diese auch modifizieren kann.

Das Stichwort lautet: ACL (Access Control Lists). Z.B.:

=> ll
insgesamt 26K
drwxrwxr-x+ 9 root root    312  7. Sep 15:02 build/
drwxrwxr-x+ 9 root portage 27K  7. Sep 05:47 distfiles/

Du siehst das kleine "+" hinter den Rechten. Das bedeuted, das diese 
Verzeichnisse ACL Einträge haben.

=> getfacl distfiles/
# file: distfiles
# owner: root
# group: portage
user::rwx
user:dheinric:rwx
group::rwx
mask::rwx
other::r-x

Der User "dheinric" hat alle Rechte auf dem Verzeichnis (das kann auch eine 
Gruppe sein).

Voraussetzung:

1) Posix ACL Support im Kernel für das benutzte Filesystem.
2) Beim mounten (bzw. in fstab) Option "acl" angeben.

HTH...

	Dirk
-- 
Dirk Heinrichs          | Tel:  +49 (0)162 234 3408
Configuration Manager   | Fax:  +49 (0)211 47068 111
Capgemini Deutschland   | Mail: dirk.heinrichs@capgemini.com
Hambornerstraße 55      | Web:  http://www.capgemini.com
D-40472 Düsseldorf      | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net

[-- Attachment #2: Type: application/pgp-signature, Size: 190 bytes --]

  reply	other threads:[~2005-09-07 13:11 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-07 12:54 [gentoo-user-de] Dateirechte Daniel Rindt
2005-09-07 13:08 ` Dirk Heinrichs [this message]
2005-09-07 13:14   ` Daniel Rindt
2005-09-07 13:28     ` Roman Dornhegge
2005-09-07 13:47       ` Daniel Rindt
2005-09-07 14:32         ` Roman Dornhegge
2005-09-07 13:32     ` Dirk Heinrichs
2005-09-07 13:46       ` Daniel Rindt
2005-09-07 13:55         ` Dirk Heinrichs
2005-09-07 13:18   ` Daniel Faber
2005-09-07 13:34     ` Dirk Heinrichs

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200509071508.54411.ext-dirk.heinrichs@nokia.com \
    --to=ext-dirk.heinrichs@nokia.com \
    --cc=gentoo-user-de@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox