Register for the iXsystems Community to get an ad-free experience and exclusive discounts in our eBay Store.
Western Digital Drives - The Preferred Drives of FreeNAS and TrueNAS CORE

[How-To] Giving Plugins Write Permissions to Your Data

Status
Not open for further replies.

ere109

Member
Joined
Aug 22, 2017
Messages
157
I wonder if things have changed with the plugins manager in 11.2. I'm going to do some playing around with the jail "owner".
 

Charlie86

Member
Joined
Sep 28, 2017
Messages
68
  • Add a user in the FreeNAS WebUI with a matching UID as the plugin's default user.
Hi, where can I find plugins default user?
 

Snow

Senior Member
Joined
Aug 1, 2014
Messages
265
  • Add a user in the FreeNAS WebUI with a matching UID as the plugin's default user.
Hi, where can I find plugins default user?
'ps aux', Should show what programs are running and by what user. I would then figure out how to find the UID from the username. You could also use google

Plugins create their own user/group. Here are some of them that I've seen:

1.TransmissionBT: transmission
2.Plex: plex
3.Sabnzbd: _sabnzbd
4.Couchpotato: media
5.Sickbeard: _sickbeard
6.Sickrage:sickrage
 

Thanatos07

Newbie
Joined
Jul 14, 2019
Messages
1
Kinda old topic but those who have this problem. I was able to resolve it like this:
1. Installed plug-in and stopped
2. Add mount points to jail
3. entered shell through jail
4. followed step 2 but instead of /var/db/PLUGIN which i cant seem to find is used /var/run/transmission (idk but it worked)
  • In the jail, add a user with a matching UID as the owner of the data dataset/folders.
    • Code:
      pw useradd -n USER -u UID -d /nonexistent -s /usr/sbin/nologin
  • In the jail, change the user the plugin runs as, and change ownership of the data-directory.
    • Code:
      service PLUGIN onestop
      chown -R USER:GROUP /var/db/PLUGIN
      sysrc 'PLUGIN_user=USER'
      service PLUGIN start
 

Ericloewe

Not-very-passive-but-aggressive
Moderator
Joined
Feb 15, 2014
Messages
16,713
This thread goes back to the Warden days. Let's minimize confusion by not throwing iocage in here.
 
Status
Not open for further replies.
Top