Register for the iXsystems Community to get an ad-free experience and exclusive discounts in our eBay Store.

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

Status
Not open for further replies.

ere109

FreeNAS Experienced
Joined
Aug 22, 2017
Messages
151
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

Newbie
Joined
Sep 28, 2017
Messages
65
  • 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

FreeNAS Experienced
Joined
Aug 1, 2014
Messages
256
  • 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
 
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 can't 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,106
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