You are not logged in.
Pages: 1
x
Last edited by Heresyte (2025-03-03 06:54:02)
Offline
have u tried the su command?
Offline
su with -c should do the trick
example: su nyx -c vncserver
Offline
You can also put it in your .bashrc, so it will be executed every time you log in. For example, I have it set to mount my external disc if it's plugged but not mounted:
if [[ -r /dev/disk/by-label/disco-externo && `mount | grep disco-externo | wc -l` -eq 0 ]]
then
sudo mount /dev/disk/by-label/disco-externo /mnt/disco-externo
fi
If you put the sudo away you can start any command as a regular user under certain circumstances.
Offline
x
Last edited by Heresyte (2025-03-03 06:51:33)
Offline
There shouldnt be any security issues or atleast i cant think of any ^^
su -c seems to be simpler than using sudo but no idea if theres any differences besides that.. most likely not.
Offline
Pages: 1