permission mounted share permission partition to my lxc container

cyqpann

Member
Nov 18, 2021
37
0
11
45
Hello,

Probably some stupid command line i need to add or edit, but i don't know what to do. I,m really lost with this.

on my promox host, i created 3 partitions with my harddrive.

i mount them with this command

/dev/disk/by-id/ata-ST3000DM001-1ER166_Z500GTK3-part2 /var/vmail ext4 defaults 0 2

i did into my 101.conf this : mp0: /var/vmail,mp=/var/vmail

then into my lxc container, /var/vmail is the partition created on my host

i installed my mail server, but i need vmail:vmail to be assigned to /var/vmail but when i check the group, there no group associated with this to fix permission problem, i need vmail:vmail user to be assigned to this /var/vmail with the permission chmod 755

chmod 0755 /var this seem to work but chmod 0755 /var/vmail

i've got this error message chmod: changing permissions of '/var/vmail': Operation not permitted

Can you help me with the a proper way to assign permission to my mounted partition. i look into the internet and i can'T seem to find what i'm looking for or either i don't know what to research.

thanks a lot for your help.
 

Attachments

  • fstab.png
    fstab.png
    74.7 KB · Views: 12
  • mounted partition.png
    mounted partition.png
    72.3 KB · Views: 11
  • permission.png
    permission.png
    7.2 KB · Views: 11