Questions tagged [systemd-run]
The systemd-run tag has no summary.
16 questions
2
votes
2
answers
163
views
Run firefox as a different user in Kubuntu
I want to run Firefox as different users (Kubuntu 24.04). I've created extra users, then I do
$ xhost +SI:localuser:NEW_USER
$ sudo -u NEW_USER firefox
I get this error message:
/user.slice/user-1000....
0
votes
1
answer
129
views
How to use systemd-run to isolate the rest of the system from a rogue program triggering the oom killer
I'm wanting to use cgroups and systemd-run to insulate the rest of my system from rogue programs that wake the OOM killer.
In particular, clangd is hogging all my memory and then some, and then ...
1
vote
0
answers
157
views
Using systemd-run --uid
I am trying to run commands from a root shell as other users. I am trying to remove sudo from it:
systemd-run --user --pty --same-dir --wait --service-type=exec sudo -u ubuntu make
I tried:
systemd-...
1
vote
1
answer
391
views
How to list units with specific properties?
I use systemd-run --user a lot to run things. I want to be able to list only those transient units, but there seems to be no option to systemctl --user list-units to do it. I also cannot list the ...
1
vote
0
answers
390
views
Can systemd-run create temporary cgroups for temporary commands with resource limits?
I'd like to limit the resource consumption of temporary commands with cgroup created by systemd-run, similar to what cgcreate does instead, but I'm not sure if that makes sense?
I'd like to make sure ...
3
votes
1
answer
1k
views
using systemd-run to replace 'at' commands
What is the best way of using systemd-run in place of a simple
sudo -u xxx at -f backupJ-447.cmd 03:10
Our org has gone systemd mad and no longer installs 'at', 'batch' and cron is depricated on our ...
5
votes
1
answer
1k
views
What does "?" means in ls -l output? [duplicate]
I saw a few files/dir are inaccessible even to the root user:
find: ‘/run/user/1000/gvfs’: Permission denied.
So I went a level deeper and ran ls -l; below is the output.
/run/user/125# ll
ls: cannot ...
4
votes
1
answer
6k
views
Running systemd service synchronously / in foreground
I would like to replace my Xsession with my custom program (kiosk-like setup), previously I was just setting STARTUP variable in my .xsessionrc file like:
STARTUP='/path/to/my/program'
Now I want to ...