Forum archive
Domain Controller and File Server | ACLs
Hello,
I am working on migrating from Windows servers to Linux servers. So far, I have a domain controller and a file server configured via Turnkey. They both seem to be working properly, except I cannot manage to bind the file server to the domain controller. When attempting to join, I receive the following error:
cannot join as standalone machine
I am looking to create a few shares and have them be managed via ACLs, so they are accessible via some Windows 10 machines.
Both systems are containers on Proxmox and are v17.1. I verified the DC user to bind with, the firewalls and samba configuration, but have not been able to figure out what I am doing wrong.
Can someone point me in the direction of some good documentation for completing this procedure?
The default Fileserver config is as a standalone legacy Samba set up (aka Samba3 style config). I.e. not intended as a domain member.
The old way of doing things was for each Samba user to be mapped to a Linux user account. So by default Windows/SMB permissions are mapped relatively directly to Linux permissions (Windows file permissions are more granular than default Linux ones, but good enough).
The new way things are done is that all Samba users are managed under a single Linux "samba" user. ACLs (Access Control Lists) are used to differentiate between individual Windows/Samba users.
So the first thing I'd recommend is ensuring that your Fileserver is running on a filesystem that supports extended ACLs. IIRC on Proxmox, assuming a default filesystem that supports ACLs they are auto configured for LXC containers. Here is the Arch wiki ACL page which may be useful? (Note TurnKey is based on Debian - not Arch - but Arch wiki is awesome and generally relevant).
Assuming that is correctly set up, be sure to grant samba:samba ownership to the relevant directories.
TBH, I haven't tested any of this, I'm just working from memory and/or info I've read and/or google results. I do hope to make this much easier in the future (i.e. join a Fileserve directly to an existing domain and adjust as required) but I'm not sure when I'll have time to test this out a bit more. As such, please do share any info you find, especially if/wehn you get it working!
Hopefully that provides some value!?