# Help getting Plexamp Headless to run under different user

**URL:** <https://forums.plex.tv/t/help-getting-plexamp-headless-to-run-under-different-user/824033>\
**Category:** Plex Labs\
**Tags:** plexamp\
**Created:** [December 24, 2022, 1:51pm UTC](https://forums.plex.tv/t/help-getting-plexamp-headless-to-run-under-different-user/824033 "2022-12-24T13:51:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pbenzschawel](https://avatars.discourse-cdn.com/v4/letter/p/439d5e/32.png) [@pbenzschawel](https://forums.plex.tv/u/pbenzschawel)\
**Post date:** [December 24, 2022, 1:51pm UTC](https://forums.plex.tv/t/help-getting-plexamp-headless-to-run-under-different-user/824033/1 "2022-12-24T13:51:31Z")

</div>

As the subject says, I’m trying to get plexamp headless running with a different user, specifically hoping to get it to run with the user plex. which is already installed since PMS is running on the same machine.

I can get it to run with my user account by modifying the systemd, but if I run it as plex it doesn’t work. Currently running on ubuntu server 22.04.1 headless.

plexamp.service  
[Unit]  
Description=Plexamp  
After=network-online.target  
Requires=network-online.target

[Service]  
Type=simple  
User=plex  
WorkingDirectory=/opt/plexamp  
ExecStart=/usr/bin/node /opt/plexamp/js/index.js  
Restart=on-failure

[Install]  
WantedBy=multi-user.target

again, everything runs fine if I try and run it with my user account.

Let me know if I can provide any further details.

UPDATE:  
Never fails, as soon as I post something I figure it out, I needed to do the initial setup as the plex user to claim the token.

sudo runuser -u plex node js/index.js

Once that was done, everything worked fine!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [March 24, 2023, 1:51pm UTC](https://forums.plex.tv/t/help-getting-plexamp-headless-to-run-under-different-user/824033/2 "2023-03-24T13:51:55Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
