Am Montag, 8. Oktober 2007 schrieb ext Thufir: > I seem to have the permissions wrong in fstab. On boot I do have an icon > on the desktop for the LVM volume, which can be browsed as root, but not > as a user. > > I want read/write permissions to the LVM volume as user "thufir" (or any > user, really). Can this be done?
Yes. Mount it, (recursivly) change the group of the top level directory and give group write permissions, then add all users which should have full access to that group (they need to logout/login to change their group membership information). You could also add ACL entries to it for more fine grained control (i.e. allow full access for user "thufir", but only read access for "janedoe"). See man pages of chmod, chgrp, setfacl, getfacl. For ACLs to work make sure the filesystem module in question is compiled with proper ACL support (i.e. CONFIG_EXT3_FS_POSIX_ACL=y). > arrakis ~ # cat /etc/fstab > /dev/VolGroup00/LogVol00 /mnt/VolGroup00/LogVol00 ext3 > users,rw 0 0 This just means that normal users can _mount_ the volume. Access is granted based on filesystem permissions. > arrakis ~ # > arrakis ~ # su thufir > [EMAIL PROTECTED] /root $ cd > [EMAIL PROTECTED] ~ $ > [EMAIL PROTECTED] ~ $ ll /mnt/VolGroup00/LogVol00/home/thufir/ > ls: cannot open directory /mnt/VolGroup00/LogVol00/home/thufir/: > Permission denied What are the permissions of /mnt/VolGroup00/LogVol00/home/thufir (as root: ll -d /mnt/VolGroup00/LogVol00/home/thufir)? Bye... Dirk -- Dirk Heinrichs | Tel: +49 (0)162 234 3408 Configuration Manager | Fax: +49 (0)211 47068 111 Capgemini Deutschland | Mail: [EMAIL PROTECTED] Wanheimerstraße 68 | Web: http://www.capgemini.com D-40468 Düsseldorf | ICQ#: 110037733 GPG Public Key C2E467BB | Keyserver: www.keyserver.net
signature.asc
Description: This is a digitally signed message part.