Questions tagged [su]
su is a utility to run a shell or other command as another user (root by default).
549 questions
3 votes
1 answer
491 views
Confused about root shell $PATH
So I'm running a Devuan (but for these purposes it could be Debian as well as most other distros, I guess...) and somehow, when I enter the root shell in a graphical terminal via su, the PATH variable ...
0 votes
1 answer
92 views
RUNUSER && SU: pass env and run app, permissions trouble
I'm new to working with OS and unix, I'm trying to create separate users for an application, nginx, etc... and in order to run the process on their behalf. I'm currently debugging the following ways ...
0 votes
2 answers
243 views
su -l not working, loginctl shows a different user
I want to switch to a different user, but loginctl shows that the previous user session is being used I start as the user ubuntu. $ loginctl session-status | head -n1 2 - ubuntu (1000) sudo su -l ...
5 votes
1 answer
248 views
environment variable with su - and systemd-run su -
If the environment variable DISPLAY is set and I do /bin/su - root from a user shell in an X terminal, then a login shell for root is setup and the DISPLAY environment variable is still present. If I ...
1 vote
0 answers
87 views
Processes launched from "su -" are not closed when killing terminal
I have a question regarding the processes launched via a SSH session, after having performed a su - user. My question applies to RHEL 8, but might as well to other O/S. The SSH connection is initiated ...
-2 votes
2 answers
728 views
runuser: execute commands without use of quotation marks?
Overview I'm attempting to execute commands as a different user without using quotation marks as well as making sure the executed command isn't inheriting environment from the parent shell. runuser ...
0 votes
2 answers
137 views
My user account is no longer a su, and I don't know the root password. What are my options?
In Kubuntu 23.10, while updating my account photo in the System Settings > Users GUI, I must have accidentally changed my account type from Administrator to Standard, as I'm no longer a su. I guess ...
0 votes
1 answer
2k views
Starting QEMU as another user
I'm currently trying to intercept/block specific requests from the guest in QEMU. According to this question, it seems that the easiest way to do so is to run QEMU as a different user, so that I can ...