I wanted to add a new user for my media devices which only has access to /mnt/ and not the root folders.
So I created a new user etc.
/etc/passwd: kodi:x:1000:1000:kodi:/mnt:/bin/ash /etc/group: kodi:x:1000: /etc/shadow: kodi:x:16666:0:99999:7::: passwd kodi
The credentials do work and I can connect via SFTP. Using WinSCP I am directed to the mnt folder.
But when I use KODI and do not specify the home folder, KODI starts in root. To my understanding, the user "kodi" should be limited to within /mnt/.
Did I miss something?