Jump to content

Question about my folder permissions


Paperpack
Go to solution Solved by mastrmind11,

Recommended Posts

Paperpack

Hello Emby comunity,

 

yesterday I have set up my first emby server emby-server-deb_3.5.2.0_amd64.deb on Linux Mint 18.3 (Mate).

The Setup of the system worked fine, I have left all settings as default.

 

I have added user emby to group paper

I have added user paper to group emby

 

 

But when I try to add Libraries I face this issue:

 

Folders:

I can add folder paths like this:

/

/home

/home/paper

/tmp/folder1/folder2/folderX

 

but I can not add this existing folder

/home/paper/images

(and not any other folder in /home/paper/)

 

When I try this, I receive

"The path could not be found. Please ensure the path is valid and try again."

 

Images:

I can display all images in /tmp and in subfolders (3 levels)

I can not display any images in /home/paper (although path was accepted and images are there)

 

Here the permission for /tmp:

 $ ls -l /
insgesamt 96

[...]

drwxrwxrwt  17 root root  4096 Sep 16 09:48 tmp

Here my permissions inside /tmp

$ ls -l /tmp
insgesamt 2608
-rw-rw-rw- 1 paper paper 692701 Sep 3 20:17 20151114_110026.jpg
-rw-rw-rw- 1 paper paper 765548 Sep 3 20:17 20151114_110030.jpg
-rw-rw-rw- 1 paper paper 577683 Sep 3 20:17 20151114_110312.jpg
-rw-rw-rw- 1 paper paper 592535 Sep 3 20:17 20151114_110317.jpg
prwx------ 1 emby emby 0 Sep 16 08:28 clr-debug-pipe-1115-2490-in
prwx------ 1 emby emby 0 Sep 16 08:28 clr-debug-pipe-1115-2490-out
-rw------- 1 paper paper 0 Sep 16 08:33 config-err-cNPPqI
-rw------- 1 paper paper 0 Sep 16 08:29 config-err-dzR5oO
drwxrwxr-x 3 paper paper 4096 Sep 16 09:10 folder1
drwxrwxr-x 2 paper paper 4096 Sep 16 08:49 Pepe
drwx------ 2 paper paper 4096 Sep 16 08:34 Temp-d3b02c5b-97f4-48cf-8f7d-75c8a747008a

[...]

here my persmissions for /home/paper/

$ ls -l /home
insgesamt 12
drwx------ 38 paper paper 12288 Sep 16 09:28 paper

here my permissions inside /home/paper

$ ls -l
insgesamt 12220
-rwxrwxrwx   1 paper paper 2200099 Jan 16  2015 20140901_132555_Richtone(HDR).jpg
-rwxrwxrwx   1 paper paper 3221748 Jan 16  2015 20140902_153249_Richtone(HDR).jpg
-rwxrwxrwx   1 paper paper 2430562 Jan 16  2015 20140902_153544_Richtone(HDR).jpg
-rw-rw-rw-   1 emby    emby     719601 Sep  3 20:17 20151114_110755.jpg
-rw-rw-rw-   1 emby    emby     633792 Sep  3 20:17 20151114_111726.jpg
-rw-rw-rw-   1 emby    emby     535105 Sep  3 20:17 20151114_112100.jpg
-rw-rw-rw-   1 emby    emby     628943 Sep  3 20:17 20151114_112207.jpg
-rw-rw-rw-   1 emby    emby     578878 Sep  3 20:17 20151114_112809.jpg
drwxr-xr-x  21 paper paper    4096 Aug  9 21:33 images

drwxr-xr-x   3 paper emby       4096 Sep 15 15:18 emby
drwxr-xr-x   2 paper paper    4096 Aug  9 21:41 Videos

[...]

This is the output about groups:

$ cut -d: -f1 /etc/passwd | xargs groups
root : root

[...]

paper : paper adm cdrom sudo dip plugdev lpadmin sambashare emby

emby : emby paper

I have already restarted the system.

 

How can I solve this?

Any help appreciated

 

Paper

Link to comment
Share on other sites

  • Solution
mastrmind11

First of all, that configuration is a permissioning disaster.  Your problem is that you don't give the paper or emby group access permission to access /home/paper , you only gave user access permission.  Add a group to the folder.

  • Like 1
Link to comment
Share on other sites

Paperpack

First of all, that configuration is a permissioning disaster.  Your problem is that you don't give the paper or emby group access permission to access /home/paper , you only gave user access permission.  Add a group to the folder.

Thank you, that pointed me to the right direction:

 

this

$ ls -l /home
insgesamt 12
drwx------ 38 paper paper 12288 Sep 16 09:28 paper

has to be changed:

 $ sudo chmod g+rwx /home/paper/
paper@dev30 / $ ls -l /home/
insgesamt 12
drwxrwx--- 38 paper paper 12288 Sep 16 09:28 paper

Inside /home/paper/ access for group already exists.

 

So now, it works :-)

 

Great - thank you very much

 

Paper

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