Starting x11vnc as a non-root user
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I'm using a customized Linux distribution generated via buildroot. I use x11vnc
for remote access, always logging in with root
. But now, I need to enable an user without root privileges to start x11vnc
, even though the X server was started by root
.
In my research, I came across numerous methods for doing so, but all of them using resources our customized distribution doesn't currently have, such as xauth
or xhost
.
Is there any simple way to enable x11vnc
for non-root users?
linux permissions x11vnc
add a comment |Â
up vote
0
down vote
favorite
I'm using a customized Linux distribution generated via buildroot. I use x11vnc
for remote access, always logging in with root
. But now, I need to enable an user without root privileges to start x11vnc
, even though the X server was started by root
.
In my research, I came across numerous methods for doing so, but all of them using resources our customized distribution doesn't currently have, such as xauth
or xhost
.
Is there any simple way to enable x11vnc
for non-root users?
linux permissions x11vnc
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm using a customized Linux distribution generated via buildroot. I use x11vnc
for remote access, always logging in with root
. But now, I need to enable an user without root privileges to start x11vnc
, even though the X server was started by root
.
In my research, I came across numerous methods for doing so, but all of them using resources our customized distribution doesn't currently have, such as xauth
or xhost
.
Is there any simple way to enable x11vnc
for non-root users?
linux permissions x11vnc
I'm using a customized Linux distribution generated via buildroot. I use x11vnc
for remote access, always logging in with root
. But now, I need to enable an user without root privileges to start x11vnc
, even though the X server was started by root
.
In my research, I came across numerous methods for doing so, but all of them using resources our customized distribution doesn't currently have, such as xauth
or xhost
.
Is there any simple way to enable x11vnc
for non-root users?
linux permissions x11vnc
asked Jun 21 at 13:08
amorimph
165
165
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
accepted
I found a way for a non-root user to start x11vnc
without having to install or configure anything else. It's perhaps not the cleanest way to do it, but it works.
I created a script that runs during startup:
#!/bin/sh
cd /home/amorimph/
while true; do
if [ -e startVNC ]
then
x11vnc -display :0
rm startVNC
fi
done
It checks the user's directory for the existence of the 'startVNC' file. Then, when I log in as this non-root user, a touch startVNC
starts x11vnc
and the file is removed after the process exits.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
I found a way for a non-root user to start x11vnc
without having to install or configure anything else. It's perhaps not the cleanest way to do it, but it works.
I created a script that runs during startup:
#!/bin/sh
cd /home/amorimph/
while true; do
if [ -e startVNC ]
then
x11vnc -display :0
rm startVNC
fi
done
It checks the user's directory for the existence of the 'startVNC' file. Then, when I log in as this non-root user, a touch startVNC
starts x11vnc
and the file is removed after the process exits.
add a comment |Â
up vote
0
down vote
accepted
I found a way for a non-root user to start x11vnc
without having to install or configure anything else. It's perhaps not the cleanest way to do it, but it works.
I created a script that runs during startup:
#!/bin/sh
cd /home/amorimph/
while true; do
if [ -e startVNC ]
then
x11vnc -display :0
rm startVNC
fi
done
It checks the user's directory for the existence of the 'startVNC' file. Then, when I log in as this non-root user, a touch startVNC
starts x11vnc
and the file is removed after the process exits.
add a comment |Â
up vote
0
down vote
accepted
up vote
0
down vote
accepted
I found a way for a non-root user to start x11vnc
without having to install or configure anything else. It's perhaps not the cleanest way to do it, but it works.
I created a script that runs during startup:
#!/bin/sh
cd /home/amorimph/
while true; do
if [ -e startVNC ]
then
x11vnc -display :0
rm startVNC
fi
done
It checks the user's directory for the existence of the 'startVNC' file. Then, when I log in as this non-root user, a touch startVNC
starts x11vnc
and the file is removed after the process exits.
I found a way for a non-root user to start x11vnc
without having to install or configure anything else. It's perhaps not the cleanest way to do it, but it works.
I created a script that runs during startup:
#!/bin/sh
cd /home/amorimph/
while true; do
if [ -e startVNC ]
then
x11vnc -display :0
rm startVNC
fi
done
It checks the user's directory for the existence of the 'startVNC' file. Then, when I log in as this non-root user, a touch startVNC
starts x11vnc
and the file is removed after the process exits.
answered Jun 21 at 17:12
amorimph
165
165
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f451102%2fstarting-x11vnc-as-a-non-root-user%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password