dperson / samba

Samba docker container
GNU Affero General Public License v3.0
1.52k stars 514 forks source link

Crash on Start #443

Closed anonhostpi closed 1 year ago

anonhostpi commented 1 year ago

this docker crashes on start.

Logs:

invalid permissions on directory '/var/log/samba/cores': has 0777 should be 0700
Failed to create /var/log/samba/cores for user 0 with mode 0700
Unable to setup corepath for smbd: File exists
smbd version 4.12.2 started.
Copyright Andrew Tridgell and the Samba Team 1992-2020
invalid permissions on directory '/var/cache/samba/msg.lock': has 0777 should be 0755
anonhostpi commented 1 year ago

My docker data directory was located on an NTFS drive. The problem was this:

https://askubuntu.com/questions/11840/how-do-i-use-chmod-on-an-ntfs-or-fat32-partition

added the permissions mount option in Ubuntu Gnome Disk Utility, chmod -R 755 my entire Docker data directory, and rebooted host.

I am now good to go. Sharing so others can see.

EDIT (WARNING): adding the permissions mount option supposedly works with Windows, but can cause some very funky behavior. Best practice is to keep linux NTFS drives and windows NTFS drives on their prospective system.