NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Linux v
« Previous 1 … 28 29 30 31 32 … 34 Next »
Nextpvr system user

 
  • 0 Vote(s) - 0 Average
Nextpvr system user
VCR58
Offline

Posting Freak

Marion Iowa, USA
Posts: 1,845
Threads: 177
Joined: Aug 2016
#1
2019-12-06, 12:50 PM
After getting Debian 10 installed with KDE Plasma desktop, I successfully installed Nextpvr and got it running of a PC. 

After logging of the PC out I found there were two users on the login screen! One user was me and the other was Nextpvr. I couldn't actually log in to the Nextpvr account as every password I used failed. My login works fine. I attached a screen grab of the User account manager showing the two users.  I could delete the nextpvr user account but I don't know if that will mess up Nextpvr. If I select "delete" it asks if I want to delete all the files associated with the account, so I didn't.

I know I didn't create a user named "Nextpvr" so I guess it was created during the Nextpvr install. Is there anything I can do to get rid of the Nextpvr user on the linux login screen?


Attached Files Thumbnail(s)
   
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,945
Threads: 956
Joined: May 2006
#2
2019-12-06, 01:46 PM
Yes that account is created with reduced rights and with access to tuner devices for the service and is needed with nextpvr-helper defaults. It also protects you if you run the web server remotely and the server gets hacked.

I never noticed this before because I run my NextPVR box headless. There are lots of solutions if you do a web search and response vary by distro, theme and desktop manager you are using.

One that seems to be most portable is to copy

/var/lib/AccountsService/users/Rex to /var/lib/AccountsService/users/nextpvr (if it doesn't exist) and change this setting to true
SystemAccount=true

I read that sometimes just removing the line also works. YMMV.

Note you can login on to the account from a shell with a sudo password

sudo -u nextpvr bash

Martin
VCR58
Offline

Posting Freak

Marion Iowa, USA
Posts: 1,845
Threads: 177
Joined: Aug 2016
#3
2019-12-06, 05:31 PM
Thanks Martin. I'm glad I didn't delete the nextpvr account Smile I'll give those this a try and post back what works.
VCR58
Offline

Posting Freak

Marion Iowa, USA
Posts: 1,845
Threads: 177
Joined: Aug 2016
#4
2019-12-07, 02:11 AM
(2019-12-06, 01:46 PM)mvallevand Wrote: ...  There are lots of solutions if you do a web search  and response vary by distro, theme and desktop manager you are using.
There was no file listed in "/var/lib/AccountsService/users" and creating a file to set the user to "SystemAccount=true" per instructions on the web didn't work.

The solution that did work was to change the nextpvr user id. 

id -u nextpvr  returned 1001

According to the web searches I read, any id < 1000 is considered not human (system). So, I used this command to find all users with id's 1000 or lower.
Code:
sudo awk -F: '($3 <= 1000) {printf "%s:%s\n",$1,$3}' /etc/passwd

Then chose an id that was not being used and modified nextpvr id using "sudo usermod -u 998 nextpvr"  (found out nextpvr-server needs to be stopped before doing this).

After a reboot the login screen only showed my user account.  Nextpvr seems to be ok with this change.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,945
Threads: 956
Joined: May 2006
#5
2019-12-07, 02:13 AM
Yes I read that one too, glad you got it going.

Martin
VCR58
Offline

Posting Freak

Marion Iowa, USA
Posts: 1,845
Threads: 177
Joined: Aug 2016
#6
2019-12-07, 02:25 AM
I was wondering, how does Nextpvr get a user id assigned to it? Is it possible to control a range of id numbers with the nextpvr-helper.deb like less than 1000?
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,945
Threads: 956
Joined: May 2006
#7
2019-12-07, 02:30 AM
I use useradd and updated the installer to use the -r option after your first post which should define it as system from the beginning.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  NextPVR can't open RAI (Italian main TV channels) links f2fg 17 3,300 2025-03-29, 10:15 AM
Last Post: alice_anto
  Guide data issue using NextPVR in a Proxmox LXC njc 10 1,046 2025-03-23, 01:40 PM
Last Post: njc
  NextPVR oddly limited to 7 tuners DaVinylSmith 4 541 2025-02-12, 02:49 PM
Last Post: DaVinylSmith
  NextPVR webserver not starting, prevents client from starting homemaisonbaile 28 1,562 2025-02-04, 05:23 PM
Last Post: mvallevand
  NextPVR 7 looses recordings after post processing ballfam 15 968 2024-12-20, 03:23 AM
Last Post: ballfam
  Colossus 2 and nextpvr Iriman 53 5,001 2024-12-16, 02:32 AM
Last Post: ehfortin
  NextPVR user1232 1 333 2024-11-09, 11:21 AM
Last Post: mvallevand
  How does NextPVR separate TV from VOD ? FrankBKK 8 916 2024-10-30, 06:17 AM
Last Post: sub
  NextPVR i.mjh.nz [Failed: Recording interrupted] Nzbaxterman 6 776 2024-10-29, 11:44 PM
Last Post: sub
  NextPVR server on LibreElec jcjefferies 45 4,235 2024-09-16, 04:38 PM
Last Post: mvallevand

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode