Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-23-2015, 07:28 AM   #1
Senior Member
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Rep: Reputation: 174Reputation: 174
VNCServer remote session - privileges

vnserver is installed and running on a headless Ubuntu Mate 15.04 box. My normal process is to ssh to the box an execute a script which starts the server thuly:
vncserver -kill :1
vncserver -geometry 1400x850 -depth 24
This seems to work fine and I can connect from another PC using vinagra as the viewer.

However, my account, which has adminstrator privileges on the remote box, does not seem to have its privileges in the vncserver session. For example I cannot activate a VPN from network manager and when I attempt to run software updates - which do not normally require authentication - I am prompted to authenticate. If I attempt to shutdown or restart the box from the panel icon I am asked to authenticate.

I can also connect to the box using x11vnc. The will take me to the "real" display and requires me to logon. When I do this I have my normal privileges.

Is there a way to increase the privileges granted to a vncserver session to match those of the user who initiated the session? I especially want to be able to control the VPN connections.


Old 11-24-2015, 09:03 AM   #2
Senior Member
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,173

Rep: Reputation: 1272Reputation: 1272Reputation: 1272Reputation: 1272Reputation: 1272Reputation: 1272Reputation: 1272Reputation: 1272Reputation: 1272
Take a look at xhost access controls. The standard X server enables some things for connections from localhost that have to be enabled explicitly for remote connections. Not sure how this ties in to Xvnc.
Old 11-25-2015, 08:15 PM   #3
Senior Member
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Original Poster
Rep: Reputation: 174Reputation: 174
Thanks smallpond,

I have been away from this problem for a couple of days. I did some reading on xhost but it seems to be a different environment that what I am setting up with vncserver.

I recall MANY years ago when connecting to vnc on a Red Hat system there was a way to bring up the "normal desktop." I do not recall if this had a login dialog. I think that that is the root cause of my issues. I need to logon to my vncserver session (as I do to the x11vnc session). I found some information relating to XRDC and setting configuring the REMOTE GREETER. However, it was an old post and did not translate to my Ubuntu Mate system.

I am still doing some searching and reading. I will update this thread if I find a solution (unless someone else posts one here first).



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Vncserver and Viewing Current User Session metallica1973 Linux - Networking 1 08-26-2008 07:28 PM
Starting a second session using the VNCserver swamprat SUSE / openSUSE 4 04-12-2007 09:34 PM
How do I clear a stale pts session after vncserver? mindmerge Linux - General 0 04-07-2004 12:07 AM
How to set root privileges in vncserver acidbath Linux - Newbie 6 02-19-2004 10:29 AM
VNCserver - how to configure session sokar Linux - Software 5 02-04-2004 11:43 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:57 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration