Re: [Vserver] ACL on guest

From: Herbert Poetzl <herbert_at_13thfloor.at>
Date: Fri 02 Feb 2007 - 22:20:24 GMT
Message-ID: <20070202222024.GC25807@MAIL.13thfloor.at>

On Fri, Feb 02, 2007 at 01:58:27PM +0100, Jean-Michel Caricand wrote:
> Hi,
>
> I want to know if it's possible to have acl on a guest. Show
> my configuration :
>
> lifcsys3:~# cat /etc/mtab
> /dev/hda3 / ext3 rw,errors=remount-ro 0 0
> proc /proc proc rw 0 0
> sysfs /sys sysfs rw 0 0
> devpts /dev/pts devpts rw,gid=5,mode=620 0 0
> tmpfs /dev/shm tmpfs rw 0 0
> /dev/hda2 /boot ext3 rw 0 0
> /dev/mapper/host-usr /usr ext3 rw 0 0
> /dev/mapper/host-var /var ext3 rw 0 0
> /dev/mapper/host-lifc--svnlmd /var/lib/vservers/lifc-svnlmd
> ext3 rw,acl 0 0
> /dev/mapper/host-lifc--webmail /var/lib/vservers/lifc-webmail
> ext3 rw 0 0
> /dev/mapper/host-lifc--glpi /var/lib/vservers/lifc-glpi ext3
> rw 0 0
> /dev/mapper/host-lifc--darkvador
> /var/lib/vservers/lifc-darkvador ext3 rw 0 0
> /mnt/wesson-home /var/lib/vservers/lifc-svnlmd/home none
> rw,bind 0 0
> usbfs /proc/bus/usb usbfs rw 0 0
> 172.20.128.107:/home /mnt/wesson-home nfs
> rw,addr=172.20.128.107 0 0
> lifcsys3:~#
>
> The line works fine :
> # setfacl -m u:smmsp:rwx /var/lib/vservers/lifc-svnlmd/tmp/toto
> # lifcsys3:~# getfacl /var/lib/vservers/lifc-svnlmd/tmp/toto
> getfacl: Removing leading '/' from absolute path names
> # file: var/lib/vservers/lifc-svnlmd/tmp/toto
> # owner: root
> # group: root
> user::rw-
> user:root:rwx
> user:smmsp:rwx
> group::r--
> mask::rwx
> other::r--
>
> lifcsys3:~#
>
> When I test setfacl on my guest :
>
> lifc-svnlmd:/tmp# setfacl -m u:root:rwx /tmp/toto
> setfacl: /tmp/toto: Opération non supportée

pleas do
  export LC_ALL=C LANG=C

> lifc-svnlmd:/tmp#
>
> Strange. acl is supported on my guest. When I show the content
> of /etc/mtab, I see :
>
> lifc-svnlmd:/tmp# cat /etc/mtab
> /dev/hdv1 / ufs defaults 0 0
> none /proc proc 0 0
> none /tmp tmpfs size=16m,mode=1777 0 0
> none /dev/pts devpts gid=5,mode=620 0 0
> lifc-svnlmd:/tmp#
>
> Why this behavior ? Is it normal ?

what behaviour?
/etc/mtab contains what was written there, if you
want to get information about mounts, check with
/proc/mounts ...

HTH,
Herbert

> Thank.
>
> Jean-Michel Caricand
> mail : jean-michel.caricand@laposte.net
>
>
> Envoyez vos cartes de voeux depuis www.laposte.net
> Elles seront ensuite distribuées par le facteur : pratique et malin !
>
> _______________________________________________
> Vserver mailing list
> Vserver@list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Fri Feb 2 22:49:38 2007

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Fri 02 Feb 2007 - 22:49:43 GMT by hypermail 2.1.8