Sabnzbd jail - Sabnzbd plugin won't start after UID change (was: "How to change UID for "media"?)

Chip Sprague

Dabbler
Joined
Aug 21, 2016
Messages
21
I'm bringing an old box back to life. Updated to 11 fine. All my shares are fine. Transmission is fine. I can see, for some odd reason, that I had changed the UID/GID in the Sabnzbd jail. It can't write back to the same directories as Transmission. How can I move that user back to 816:816?

EDIT:
That's done. Now the plugin won't start.

Code:
root@sabnzbd_1:/ # id media													
uid=816(media) gid=816(media) groups=816(media)  


Code:
root@sabnzbd_1:/ # service sabnzbd stop										 
sabnzbd not running? (check /var/run/sabnzbd/sabnzbd.pid).					 
root@sabnzbd_1:/ # service sabnzbd start										
Starting sabnzbd.															   
																			   
Fatal error:																	
  "/var/db/sabnzbd/sabnzbd.ini" is not a valid configuration file<br>Error messa
ge: [Errno 13] Permission denied: '/var/db/sabnzbd/sabnzbd.ini'				 
Specify a correct file or delete this file.									 
/usr/local/etc/rc.d/sabnzbd: WARNING: failed to start sabnzbd 
 
Last edited:

Chip Sprague

Dabbler
Joined
Aug 21, 2016
Messages
21
Thanks. Now the plugin won't start. :confused:

How to change UID for those who find this later:

chpass USERNAME

You're in VI
cursor around to the UID
"i" to insert
delete to remove old charachters
ESC then colon then w then q then ! ----> [:wq!]
enter
 

garm

Wizard
Joined
Aug 19, 2017
Messages
1,556
Or use pw(8)

pw usermod [username] -u [uid] or pw groupmod [groupname] -g [gid]

Negates the risk of making a typo that breaks your machine.
 

Chip Sprague

Dabbler
Joined
Aug 21, 2016
Messages
21
I did a
Code:
chown -R media /var/db/sabnzbd


That gives me
root@sabnzbd_1:/ # service sabnzbd start
Starting sabnzbd.
/usr/local/etc/rc.d/sabnzbd: WARNING: failed to start sabnzbd
 

preedy

Dabbler
Joined
Dec 28, 2019
Messages
15
Help like this is never help. It is done so much though out this community. Throwing a page of commands at a person is similar to handed a loaded gun to NOOB and saying now CLEAN IT.
 
Top