Add user permission for /media/myDrive directory

1

I'm using RaspberryPi and Raspbian distribution. Additionally I have installed Kodi and set it up to auto start.

I have problems with setting permission to /media/myDrive directory.

It's because od Kodi automount. It mounts drives automatically, and I cannot disable/edit it (or there is a way?)

Here's my /proc/mounts entry for my drive:

/dev/sda1 /media/External fuseblk rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096 0 0

I would like to add permissions for user

uid=1001(rtorrent) gid=1001(rtorrent) groups=1001(rtorrent),1000(pi)

to access this /media/External

How can I do this?

P.S. ls -la entry for this drive looks like:

drwx------   1 pi   pi    8192 Oct 18 13:49 External

Tomasz

Posted 2015-10-18T13:34:11.793

Reputation: 109

No answers