Fedora 3 Posted July 9, 2020 Share Posted July 9, 2020 (edited) Hi Guys I would some help cause I m struggling to get over this problem with Linux Permissions. I recently Installed Ubuntu server 20.04 LTS, before Emby server was running on a Linux Mint without problems but due various reasons I moved to Ubuntu Serv. now. The main issue is when I try to add the library on Emby server, going to the path /media/serv01/DB01/VIDEOTECA , I get stuck, Emby don't show anythings after /media/serv01/ and it back to the main screen where you need to add the folder, it does the same with the network /path ,when actually that dir is shared on LAN too. if I do manually It say "could not find the path" However I think its a permissions problem so I have followed couple guide to give emby user the read permission to read that folder but seems not work anyway. I DON'T want to give write and Execute permissions to Emby user but only read would be enough for me and him I believe my mistake its somewhere about difference from folder and files SubDir ecc ecc.... you know linux ask you an Hight level of knowlodges and I dont have all of them, that why I,m asking help to someone who know more about permissions in linux and can push me on the rigth way to give read permissions to emby that what I ve done without any good result serv01@nas-01:~$ sudo chmod 770 -R /media/serv01/DB01/VIDEOTECA/ serv01@nas-01:~$ sudo chown -R serv01:emby /media/serv01/DB01/VIDEOTECA serv01@nas-01:~$ ls -l /media/serv01/DB01/VIDEOTECA/ total 44 drwxrwx--- 3 serv01 emby 4096 May 15 11:28 Cartoons drwxrwx--- 2 serv01 emby 4096 Jun 5 16:13 Documentari drwxrwx--- 3 serv01 emby 4096 Jul 3 03:21 IPTV drwxrwx--- 5 serv01 emby 20480 Jun 15 13:36 Movies drwxrwx--- 13 serv01 emby 4096 May 24 11:21 'Series TV' drwxrwx--- 2 serv01 emby 4096 May 24 11:21 'Ultimi Inseriti' drwxrwx--- 2 serv01 emby 4096 Jun 1 14:02 'Video Bambini' serv01@nas-01:~$ if I m not get it wrong 770 shoud give rwx to the owner (7) rwx to the group (7) serv01 and no permission to the others (0) then If I m not wrong (d)rwxrwx d= directory leaving my confusion above ololo, I would to get a command which give to emby all reads permissions from /media/Serv01 (where emby seem to get stuck) to the files on subs directory so /media/serv01/DB01/VIDEOTECA/Movies/file.mkvI have also just to try give the above commands from /media/serv01 which is not a good idea give that to a not admin user so serv01@nas-01:~$ sudo chmod 770 -R /media/serv01 serv01@nas-01:~$ sudo chown -R serv01:emby /media/serv01 serv01@nas-01:~$ ls -l /media/serv01 but it did't work anyway please give a slap to wake me up from this ***also have add emby user to serv01 group or at least I ve tried that the output /etc/group:adm:x:4:syslog,serv01 /etc/group:cdrom:x:24:serv01 /etc/group:sudo:x:27:serv01 /etc/group:dip:x:30:serv01 /etc/group:plugdev:x:46:serv01 /etc/group:lxd:x:116:serv01 /etc/group:serv01:x:1000:emby serv01@nas-01:~$ Edited July 9, 2020 by Fedora Link to comment Share on other sites More sharing options...
mastrmind11 717 Posted July 9, 2020 Share Posted July 9, 2020 you need to add the emby user to the emby group if you want to set it up this way. Link to comment Share on other sites More sharing options...
Fedora 3 Posted July 9, 2020 Author Share Posted July 9, 2020 I tried what you said, hopefully... added Emby on emby group, and in case added emby user on serv01 group aswell that what I ve done and it is .... but still not works once I click from emby managing panel the folder /media/serv01/ doesn't show any contents serv01@nas-01:~$ ls -l /media/ total 8 drwxr-xr-x+ 3 serv01 emby 4096 Jul 8 22:53 serv01 serv01@nas-01:~$ ls -l /media/serv01/ total 4 drwxr-xr-x 14 serv01 emby 4096 Jul 9 15:15 DB01 serv01@nas-01:~$ ls -l /media/serv01/DB01/ total 212 drwxrwx--- 2 serv01 serv01 4096 Jul 31 2019 'Android 8 ROM' drwxrwx--- 3 serv01 serv01 4096 Jul 8 01:22 Games drwxrwx--- 5 serv01 serv01 4096 Jul 3 22:59 'Linux backup' drwxr-xr-x 31 serv01 serv01 110592 Jul 9 15:04 MUSICA drwxrwx--- 2 serv01 serv01 4096 Jul 9 12:59 'Operative Sistems' drwxr-xr-x 10 serv01 emby 4096 Jul 9 15:20 VIDEOTECA drwxrwx--- 3 serv01 serv01 4096 May 5 11:36 debLinuxMINT drwxrwx--- 2 serv01 serv01 36864 May 4 18:05 'dowload telegram' drwxrwx--- 2 serv01 serv01 16384 Jul 5 06:40 lost+found drwxrwx--- 19 serv01 serv01 4096 Jul 9 14:49 software drwxrwx--- 3 serv01 serv01 20480 May 20 14:23 torrent serv01@nas-01:~$ ls -l /media/serv01/DB01/VIDEOTECA/ total 48 drwxr-xr-x 3 serv01 emby 4096 May 15 11:28 Cartoons drwxr-xr-x 2 serv01 emby 4096 Jun 5 16:13 Documentari drwxr-xr-x 3 serv01 emby 4096 Jul 3 03:21 IPTV drwxr-xr-x 5 serv01 emby 20480 Jun 15 13:36 Movies drwxr-xr-x 12 serv01 emby 4096 Jul 9 15:55 Saghe drwxr-xr-x 13 serv01 emby 4096 May 24 11:21 'Series TV' drwxr-xr-x 2 serv01 emby 4096 May 24 11:21 'Ultimi Inseriti' drwxr-xr-x 2 serv01 emby 4096 Jun 1 14:02 'Video Bambini' serv01@nas-01:~$ ls -l /media/serv01/DB01/VIDEOTECA/Documentari/ total 1874388 -rwxr-xr-- 1 serv01 emby 1919367343 Jun 5 16:12 'The Great Hack (2019).mkv' serv01@nas-01:~$ ls -l /media/serv01/DB01/VIDEOTECA/IPTV/ total 4 drwxr-xr-x 3 serv01 emby 4096 Jul 8 23:47 Dark serv01@nas-01:~$ ls -l /media/serv01/DB01/VIDEOTECA/IPTV/Dark/ total 1727156 drwxr-xr-x 2 serv01 emby 4096 Jul 8 23:48 Dark -rwxr-xr-- 1 serv01 emby 221232836 Jul 3 03:22 'Dark S01E01.mkv' -rwxr-xr-- 1 serv01 emby 150726163 Jul 3 03:23 'Dark S01E02.mkv' -rwxr-xr-- 1 serv01 emby 153188741 Jul 3 03:23 'Dark S01E03.mkv' -rwxr-xr-- 1 serv01 emby 186855906 Jul 3 03:24 'Dark S01E04.mkv' -rwxr-xr-- 1 serv01 emby 139250097 Jul 3 03:24 'Dark S01E05.mkv' -rwxr-xr-- 1 serv01 emby 147619950 Jul 3 03:25 'Dark S01E06.mkv' -rwxr-xr-- 1 serv01 emby 167763015 Jul 3 03:25 'Dark S01E07.mkv' -rwxr-xr-- 1 serv01 emby 202726937 Jul 3 03:26 'Dark S01E08.mkv' -rwxr-xr-- 1 serv01 emby 201625080 Jul 3 03:26 'Dark S01E09.mkv' -rwxr-xr-- 1 serv01 emby 197566431 Jul 3 03:27 'Dark S01E10.mkv' serv01@nas-01:~$ grep -i serv01 /etc/group adm:x:4:syslog,serv01 cdrom:x:24:serv01 sudo:x:27:serv01 dip:x:30:serv01 plugdev:x:46:serv01 lxd:x:116:serv01 serv01:x:1000:emby serv01@nas-01:~$ grep -i emby /etc/group video:x:44:emby render:x:109:emby serv01:x:1000:emby emby:x:998:emby serv01@nas-01:~$ Link to comment Share on other sites More sharing options...
sfatula 185 Posted July 9, 2020 Share Posted July 9, 2020 Generally, when you modify groups for a user in Linux, you need to logout and back in, or, reboot if it's more convenient. Yes, there are other ways, but, this is simplest. So, if you modified emby user, all processes with emby need to be stopped and logged out. Link to comment Share on other sites More sharing options...
Fedora 3 Posted July 9, 2020 Author Share Posted July 9, 2020 3 hours ago, sfatula said: Generally, when you modify groups for a user in Linux, you need to logout and back in, or, reboot if it's more convenient. Yes, there are other ways, but, this is simplest. So, if you modified emby user, all processes with emby need to be stopped and logged out. I didn't know that, however rebooting not help my problem :/ Link to comment Share on other sites More sharing options...
Q-Droid 642 Posted July 10, 2020 Share Posted July 10, 2020 Try it as the emby user to see if you can spot the problem. sudo su -s /bin/bash emby Run "id" to verify session is emby now. Navigate down your media path to test access. You have an ACL on /media/serv01 which might be part of the problem. Link to comment Share on other sites More sharing options...
Fedora 3 Posted July 10, 2020 Author Share Posted July 10, 2020 12 hours ago, Q-Droid said: Try it as the emby user to see if you can spot the problem. sudo su -s /bin/bash emby Run "id" to verify session is emby now. Navigate down your media path to test access. You have an ACL on /media/serv01 which might be part of the problem. yeah you are right it cannot access to the folders after /media/serv01/ serv01@nas-01:~$ sudo su -s /bin/bash emby [sudo] password for serv01: emby@nas-01:/home/serv01$ id uid=997(emby) gid=998(emby) groups=998(emby),44(video),109(render),1000(serv01) emby@nas-01:/home/serv01$ cd /media/serv01/DB01 bash: cd: /media/serv01/DB01: Permission denied emby@nas-01:/home/serv01$ Link to comment Share on other sites More sharing options...
Q-Droid 642 Posted July 10, 2020 Share Posted July 10, 2020 Try one at a time to see how far emby can go. cd /media cd serv01 ... Link to comment Share on other sites More sharing options...
Fedora 3 Posted July 10, 2020 Author Share Posted July 10, 2020 33 minutes ago, Q-Droid said: Try one at a time to see how far emby can go. cd /media cd serv01 ... serv01@nas-01:~$ sudo su -s /bin/bash emby emby@nas-01:/home/serv01$ cd / emby@nas-01:/$ cd /home/ emby@nas-01:/home$ cd /home/serv01/ emby@nas-01:/home/serv01$ cd /media/ emby@nas-01:/media$ ls serv01 emby@nas-01:/media$ cd /media/serv01/ bash: cd: /media/serv01/: Permission denied emby@nas-01:/media$ ls serv01 emby@nas-01:/media$ here where and it is the exactly where from browser I get stuck too ... so it must be something wrong from /media/serv01/!!!......... but if I do serv01@nas-01:~$ ls -l /media/serv01/ total 4 drwxr-xr-x 14 serv01 emby 4096 Jul 9 15:15 DB01 serv01@nas-01:~$ ls -l /media/ total 8 drwxrwxrwx 2 root root 4096 Jul 3 20:38 nomachine drwxr-xr-x+ 3 serv01 emby 4096 Jul 10 00:29 serv01 serv01@nas-01:~$ ls -l /media/serv01/DB01/ total 212 drwxrwx--- 2 serv01 serv01 4096 Jul 31 2019 'Android 8 ROM' drwxrwx--- 28 serv01 serv01 4096 Jun 17 00:36 Documenti drwxrwx--- 3 serv01 serv01 4096 Jul 8 01:22 Games drwxrwx--- 5 serv01 serv01 4096 Jul 3 22:59 'Linux backup' drwxr-xr-x 31 serv01 serv01 110592 Jul 9 15:04 MUSICA drwxrwx--- 2 serv01 serv01 4096 Jul 9 12:59 'Operative Sistems' drwxr-xr-x 10 serv01 emby 4096 Jul 10 00:49 VIDEOTECA drwxrwx--- 3 serv01 serv01 4096 May 5 11:36 debLinuxMINT drwxrwx--- 2 serv01 serv01 36864 May 4 18:05 'dowload telegram' drwxrwx--- 2 serv01 serv01 16384 Jul 5 06:40 lost+found drwxrwx--- 19 serv01 serv01 4096 Jul 9 14:49 software drwxrwx--- 3 serv01 serv01 20480 May 20 14:23 torrent serv01@nas-01:~$ it looks emby has permissions to read it Link to comment Share on other sites More sharing options...
Q-Droid 642 Posted July 10, 2020 Share Posted July 10, 2020 The emby user might not have read permissions on /media/serv01. There's an ACL on that directory and it might be blocking emby. 2 minutes ago, Fedora said: drwxr-xr-x+ 3 serv01 emby 4096 Jul 10 00:29 serv01 Run getfacl /media/serv01 Link to comment Share on other sites More sharing options...
Fedora 3 Posted July 10, 2020 Author Share Posted July 10, 2020 2 minutes ago, Q-Droid said: The emby user might not have read permissions on /media/serv01. There's an ACL on that directory and it might be blocking emby. Run getfacl /media/serv01 getfacl /media/serv01 getfacl: Removing leading '/' from absolute path names # file: media/serv01 # owner: serv01 # group: emby user::rwx user:serv01:r-x group::--- mask::r-x other::r-x Link to comment Share on other sites More sharing options...
Q-Droid 642 Posted July 10, 2020 Share Posted July 10, 2020 30 minutes ago, Fedora said: getfacl /media/serv01 getfacl: Removing leading '/' from absolute path names # file: media/serv01 # owner: serv01 # group: emby user::rwx user:serv01:r-x group::--- <---- there it is mask::r-x other::r-x See above. There are no signs of ACLs in the rest of your listings. Probably best to remove the ACL and let standard permissions take over. setfacl -b /media/serv01 1 1 Link to comment Share on other sites More sharing options...
Fedora 3 Posted July 10, 2020 Author Share Posted July 10, 2020 1 hour ago, Q-Droid said: See above. There are no signs of ACLs in the rest of your listings. Probably best to remove the ACL and let standard permissions take over. setfacl -b /media/serv01 Job done my friend serv01@nas-01:~$ getfacl /media/serv01 getfacl: Removing leading '/' from absolute path names # file: media/serv01 # owner: serv01 # group: emby user::rwx group::r-x other::r-x serv01@nas-01:~$ sudo su -s /bin/bash emby [sudo] password for serv01: emby@nas-01:/home/serv01$ cd /media/serv01/ bash: cd: /media/serv01/: Permission denied emby@nas-01:/home/serv01$ cd /media/serv01/ emby@nas-01:/media/serv01$ ls DB01 emby@nas-01:/media/serv01$ cd /media/serv01/DB01/ emby@nas-01:/media/serv01/DB01$ ls here we go thank you so much for your help, I ve made a little research about access list "getfacl" as it completely new tool/command for me and thank you to have help me to discovers a bit more of linux world's 1 Link to comment Share on other sites More sharing options...
Q-Droid 642 Posted July 10, 2020 Share Posted July 10, 2020 You're welcome. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now