Mount CIFS in AD environment but no permissions

spatte

New Member
Dec 16, 2019
5
0
1
46
Hi community,
I have an old server on my network on proxmox 5. It's a LXC (ubuntu 16). The LXC in integrated to our Active Directory (AD) domain.
On it I have a samba share and rights (owner and groups) are from domain.
From this LXC, when I go into my shared folder I see all my folders and files with myADuser:myADgroup permissions.

I have now a new LXC on ubuntu 18 (in the same domain) in another proxmox 6 server.
I mount the network share like that :
  1. I added a CIFS storage into my pve
  2. On pve, into /etc/pve/lx/4000.conf => mp0: /mnt/pve/share,mp=/mnt/pve/share0
from my new LXC, when I go into /mnt/pve/share0 I see all my folders and files but with root:root permissions.
What's happen ?
How can I have the same permissions ? I need to copy files and folders with good permissions into my new LXC !
 
Hi,

I think you need to mount your share directly from your container(wich will be also better for performance). PMX do not have any knowledge about your AD users/groups.

Good luck / Bafta !
 
Thanks for your answer.
I can't share directly from my lxc. I don't understand...
What is your method ?
 
Very strange...it works now ?!
Thanks for the link.
But I always have my permissions issue
 
Hi,

The first ideea is to check if your CT is part of AD. Also check if you can see under the mount point with ls -l the users/group names from your AD. If I remember you can also do the same check with :

wbinfo -u

Bafta/Good luck !
 
On my new CT, it's ok, when I test with wbinfo -u or wbinfo -g I have the good informations from my AD.