Jump to content

[Solved] Unable to delete contents "Directory not empty" (samba)


Recommended Posts

Posted (edited)

I have changed my server's OS and, after reinstalling eveything from scratch (Emby inclusive) I found the following error when trying to delete contents:

Screenshot_1.png.5b6e5aa27ce4267fe2c263329f2e567e.png

After testing with all sorts of permissions in my Ubuntu server I thought that maybe the problem was in the samba configuration, as I was copying the files from Windows and... bingo!

I share in case someone else has the same problem, as I searched the forum and found nothing about this specific scenario.

I was using the following entry in my /etc/samba/smb.conf file:

[Films]
path = /mnt/TEMP/Films/
valid users = geekom, emby
read only = no

The problem got solved after adding this

force directory mode = 0775
force create mode = 0775

So my final configuration is this:

[Films]
path = /mnt/TEMP/Films/
valid users = geekom, emby
read only = no
force directory mode = 0775
force create mode = 0775

As I only store media files in that mouting point, I do not believe that setting 775 permissions will be a security problem.

Hopefully, this information will be of use for other users in my situation.

Merry Christmas!

Edited by rcutanda
  • Thanks 1
Posted

HI, thanks for following up with the solution !

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...