1 |
Am Montag, 8. Oktober 2007 schrieb ext Thufir: |
2 |
> I seem to have the permissions wrong in fstab. On boot I do have an icon |
3 |
> on the desktop for the LVM volume, which can be browsed as root, but not |
4 |
> as a user. |
5 |
> |
6 |
> I want read/write permissions to the LVM volume as user "thufir" (or any |
7 |
> user, really). Can this be done? |
8 |
|
9 |
Yes. Mount it, (recursivly) change the group of the top level directory and |
10 |
give group write permissions, then add all users which should have full |
11 |
access to that group (they need to logout/login to change their group |
12 |
membership information). |
13 |
|
14 |
You could also add ACL entries to it for more fine grained control (i.e. |
15 |
allow full access for user "thufir", but only read access for "janedoe"). |
16 |
|
17 |
See man pages of chmod, chgrp, setfacl, getfacl. For ACLs to work make sure |
18 |
the filesystem module in question is compiled with proper ACL support (i.e. |
19 |
CONFIG_EXT3_FS_POSIX_ACL=y). |
20 |
|
21 |
> arrakis ~ # cat /etc/fstab |
22 |
> /dev/VolGroup00/LogVol00 /mnt/VolGroup00/LogVol00 ext3 |
23 |
> users,rw 0 0 |
24 |
|
25 |
This just means that normal users can _mount_ the volume. Access is granted |
26 |
based on filesystem permissions. |
27 |
|
28 |
> arrakis ~ # |
29 |
> arrakis ~ # su thufir |
30 |
> thufir@arrakis /root $ cd |
31 |
> thufir@arrakis ~ $ |
32 |
> thufir@arrakis ~ $ ll /mnt/VolGroup00/LogVol00/home/thufir/ |
33 |
> ls: cannot open directory /mnt/VolGroup00/LogVol00/home/thufir/: |
34 |
> Permission denied |
35 |
|
36 |
What are the permissions of /mnt/VolGroup00/LogVol00/home/thufir (as root: |
37 |
ll -d /mnt/VolGroup00/LogVol00/home/thufir)? |
38 |
|
39 |
Bye... |
40 |
|
41 |
Dirk |
42 |
-- |
43 |
Dirk Heinrichs | Tel: +49 (0)162 234 3408 |
44 |
Configuration Manager | Fax: +49 (0)211 47068 111 |
45 |
Capgemini Deutschland | Mail: dirk.heinrichs@×××××××××.com |
46 |
Wanheimerstraße 68 | Web: http://www.capgemini.com |
47 |
D-40468 Düsseldorf | ICQ#: 110037733 |
48 |
GPG Public Key C2E467BB | Keyserver: www.keyserver.net |