Jump to content

Backup plugin permission issues


nevolex
Go to solution Solved by nevolex,

Recommended Posts

Hi and happy new year everyone, 

 

I have Emby Installed on Ubuntu Server (as a VM), the media folder is a smb share mounted to the VM , Emby I believe (not 100% sure), has access to it ?

 

I also installed Backup plugin but it cannot save logs because it has no access to the directory for some reason

 

Folder: Emby_Backup - I created for it

Emby Backup - it tried to create by itself, but the folder doesn't exist

 

to the path '/mnt/MyMedia/Emby_Backup/Emby Backup - 2019-12-31 00.10.0 - Auto' is denied.
at System.IO.FileSystem.CreateDirectory(String fullPath)
at System.IO.Directory.CreateDirectory(String path)
at Emby.Server.Implementations.IO.ManagedFileSystem.CreateDirectory(String path)
at MBBackup.ServerEntryPoint.ExecuteBackup(BackupProfile settings, CancellationToken cancellationToken, IProgress`1 progress, Boolean isAuto)
at MBBackup.Entities.ScheduledBackupTask.Execute(CancellationToken cancellationToken, IProgress`1 progress)
at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker.ExecuteInternal(TaskOptions options)
 
Thank you
Edited by nevolex
Link to comment
Share on other sites

nevolex

I think I was wrong. "emby" user group doesn't have full access to  the folders, just "read and execute"?

 

drwxr-xr-x 2 root root    0 Dec 30 20:53  Emby_Backup

 

 

I am not very good with Linux permissions, is this how to fix it?

 

sudo chgrp -R emby /mnt/MyMedia/Emby_Backup
sudo chmod -R g+w /mnt/MyMedia/Emby_Backup
 
 
Thank you
Link to comment
Share on other sites

nevolex

Hi, 

 

Thank you for the link, but I am still a bit confused
 

my fstab is currently has 1 option:

 

//10.0.0.2/MyMedia /mnt/MyMedia cifs credentials=/var/credentials 0 0
 
Shell I just add this as the 2nd one ? :
//10.0.0.2/MyMedia /mnt/MyMedia  rw,uid=emby,gid=emby
Link to comment
Share on other sites

  • Solution
nevolex

Hi Luke,

 

I got it working, finally:

 

sudo mount -t cifs -o credentials=/var/credentials,uid=emby,gid=emby //10.0.0.2/MyMedia /mnt

 

 

 

and for the fstab

 

//10.0.0.2/MyMedia /mnt/MyMedia cifs uid=emby,gid=emby,credentials=/var/credentials 0 0

 

 

Thank you

Edited by nevolex
  • Like 1
Link to comment
Share on other sites

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...