- How to set a VNC password?
- 2 Answers 2
- Enable VNC Password Authentication
- Environment
- Situation
- Resolution
- Additional Information
- Disclaimer
- Thread: vnc4server: No password configured for VNC Auth
- vnc4server: No password configured for VNC Auth
- Re: vnc4server: No password configured for VNC Auth
- Re: vnc4server: No password configured for VNC Auth
- Re: vnc4server: No password configured for VNC Auth
- Tags for this Thread
- Bookmarks
- Posting Permissions
How to set a VNC password?
Can anyone say me how to set a VNC password in Ubuntu? Such that if anyone access my machine through VNC it should prompt for a password.
2 Answers 2
You can set a password when you open Remote Desktop.
Or with vncpasswd you can also set the password for the vnc-server.
So if someone want to connect to you, he has to enter the password.
Which vnc server do you use? Start Options: vnc4server: Command to start: vncserver . Then run vncpasswd . tightvncserver: Command to start: tightvncserver . Then run vncpasswd . Gnome build in vino-server: Command to start: vino-preferences And Activate: «Allow other users to view your desktop» and set a password.
In my case, I forgot the password to the VNC server. For my situation, the final target was TightVNC running on Ubuntu 18.04 which I needed to reach from my mac.
You first kill the existing VNC sessions with
Use something like this to find out if you’ve killed all sessions. Usually, the vncserver is running on port 5901:
sudo netstat -peanut | grep "vncserver"
If there is something, repeat the kill command with the appropriate vncserver -kill :2 or whatever listing. If nothing, then you can remove the default original password setting with:
And you’ll be prompted again for a new password. The daemon should run on port 5901, which you can query with the netstat command above.
Enable VNC Password Authentication
This document (7004096) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Linux Enterprise Desktop 11 (SLED 11)
SUSE Linux Enterprise Server 11 (SLES 11)
SUSE Linux Enterprise Server 10
SUSE Linux Enterprise Desktop 10
Situation
Remote access has been enabled in YaST under Network Devices —> Remote Administration (VNC). When connecting from a VNC viewer a session login is brought up with no VNC login required.
Resolution
Step 1
On the remote system open a terminal window and «su» to become the root user (if not already logged in as root) then enter the command:
Enter the passwords as prompted. The first one for full remote access and the second for read-only access. This will create and store the passwords in the file «/root/.vnc/passwd».
Step 2
Open YaST and select Network Services—>Network Services (xinetd). Scroll down the list to the «vnc1» selection and click on it then click on the «Edit» button.
Change the «User:» selection to «root» (the default setting is «nobody»).
Add the following text to the end of the «Server Arguments» line. Be sure to include a space between the last entry and this new argument:
-rfbauth /root/.vnc/passwd
Connect from the VNC viewer and you should now be asked for the vnc password prior to viewing the session login.
Additional Information
You will notice that multiple VNC sessions can be enabled in xinetd. The VNC password can be enabled on all of them by changing the user setting to root and adding the same server argument.
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented «AS IS» WITHOUT WARRANTY OF ANY KIND.
- Document ID:7004096
- Creation Date: 04-Aug-2009
- Modified Date:03-Mar-2020
-
- SUSE Linux Enterprise Desktop
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com
Thread: vnc4server: No password configured for VNC Auth
First Cup of Ubuntu
vnc4server: No password configured for VNC Auth
I want to use my Ubuntu Server 14.04.1 LTS as a VNC server. I installed lightdm and vnc4server. On the client, I installed xvnc4viewer. Whenever I try to connect to the server, after I typed in my password, I get:
Here is my /etc/lightdm/lightdm.conf:
[SeatDefaults]
autologin-user=
user-seesion=ubuntu
greeter-session=unity-greeter
allow-guest=false
[XDMCPServer]
enabled=true
port=177
[VNCServer]
enabled=true
command=/usr/bin/Xvnc4 -SecurityTypes None -rfbauth /etc/vncpasswd
listen-address=192.168.178.23
port=5900
width=1280
height=1024
depth=24192.168.178.23 being the IP adress of my server.
To set the VNC password, I ran sudo vncpasswd /etc/vncpasswd. I had to run it as sudo to get write access.
What can I do to make it work?
A minha p�tria � a l�ngua portuguesa
Join Date Nov 2012 Location Halloween Town Beans 10,649 —> Beans Hidden! Distro Xubuntu Development Release
Re: vnc4server: No password configured for VNC Auth
First Cup of Ubuntu
Re: vnc4server: No password configured for VNC Auth
First Cup of Ubuntu
Re: vnc4server: No password configured for VNC Auth
- Site Areas
- Settings
- Private Messages
- Subscriptions
- Who’s Online
- Search Forums
- Forums Home
- Forums
- The Ubuntu Forum Community
- Ubuntu Official Flavours Support
- New to Ubuntu
- General Help
- Installation & Upgrades
- Hardware
- Desktop Environments
- Networking & Wireless
- Multimedia Software
- Ubuntu Specialised Support
- Ubuntu Development Version
- Security
- Virtualisation
- Ubuntu Servers, Cloud and Juju
- Server Platforms
- Ubuntu Cloud and Juju
- Gaming & Leisure
- Emulators
- Wine
- Development & Programming
- Packaging and Compiling Programs
- Development CD/DVD Image Testing
- Ubuntu Application Development
- Ubuntu Dev Link Forum
- Programming Talk
- Repositories & Backports
- Ubuntu Backports
- Bug Reports / Support
- Ubuntu Backports
- System76 Support
- Apple Hardware Users
- Ubuntu Community Discussions
- Ubuntu, Linux and OS Chat
- Recurring Discussions
- Full Circle Magazine
- The Cafe
- Cafe Games
- Market
- Mobile Technology Discussions (CLOSED)
- Announcements & News
- Weekly Newsletter
- Membership Applications
- The Fridge Discussions
- Forum Council Agenda
- Forum Feedback & Help
- Request a LoCo forum
- Resolution Centre
- Ubuntu, Linux and OS Chat
- Other Discussion and Support
- Other OS Support and Projects
- Other Operating Systems
- Ubuntu/Debian BASED
- Debian
- MINT
- Arch and derivatives
- Fedora/RedHat and derivatives
- Mandriva/Mageia
- Slackware and derivatives
- openSUSE and SUSE Linux Enterprise
- Mac OSX
- PCLinuxOS
- Gentoo and derivatives
- Windows
- BSD
- Any Other OS
- Other Operating Systems
- Assistive Technology & Accessibility
- Art & Design
- Education & Science
- Documentation and Community Wiki Discussions
- Tutorials
- Outdated Tutorials & Tips
- Ubuntu Women
- Ubuntu LoCo Team Forums
- Americas LoCo Teams
- Argentina Team
- Software
- Hardware
- Comunidad
- Arizona Team — US
- Arkansas Team — US
- Brazil Team
- California Team — US
- Canada Team
- Centroamerica Team
- Chile Team
- Comunidad
- Hardware
- Software
- Instalaci�n y Actualizaci�n
- Colombia Team — Colombia
- Georgia Team — US
- Illinois Team
- Indiana — US
- Kentucky Team — US
- Maine Team — US
- Minnesota Team — US
- Mississippi Team — US
- Nebraska Team — US
- New Mexico Team — US
- New York — US
- North Carolina Team — US
- Ohio Team — US
- Oklahoma Team — US
- Oregon Team — US
- Pennsylvania Team — US
- Peru Team
- Texas Team — US
- Uruguay Team
- Utah Team — US
- Virginia Team — US
- West Virginia Team — US
- Argentina Team
- Asia and Oceania LoCo Teams
- Australia Team
- Bangladesh Team
- Hong Kong Team
- Myanmar Team
- Philippine Team
- Singapore Team
- Europe, Middle East, and African (EMEA) LoCo Teams
- Albania Team
- Catalan Team
- Portugal Team
- Egypt Team
- Georgia Team
- Ireland Team — Ireland
- Kenyan Team — Kenya
- Kurdish Team — Kurdistan
- Lebanon Team
- Morocco Team
- Saudi Arabia Team
- Sudan Team
- Tunisia Team
- Other Forums & Teams
- LoCo Archive
- Afghanistan Team
- Alabama Team — US
- Alaska Team — US
- Algerian Team
- Andhra Pradesh Team — India
- Austria Team
- Bangalore Team
- Bolivia Team
- Cameroon Team
- Colorado Team — US
- Connecticut Team
- Costa Rica Team
- Delhi Team
- Ecuador Team
- El Salvador Team
- Florida Team — US
- Galician LoCo Team
- Greek team
- Hawaii Team — US
- Honduras Team
- Idaho Team — US
- Iowa Team — US
- Jordan Team
- Kansas Team — US
- Libya Team
- Louisiana Team — US
- Maryland Team — US
- Massachusetts Team
- Michigan Team — US
- Missouri Team — US
- Montana Team — US
- Namibia Team
- Nevada Team — US
- New Hampshire Team — US
- New Jersey Team — US
- Northeastern Team — US
- Panama Team
- Paraguay Team
- Qatar Team
- Quebec Team
- Rhode Island Team — US
- Senegal Team
- South Carolina Team — US
- South Dakota Team — US
- Switzerland Team
- Tamil Team — India
- Tennessee Team — US
- Trinidad & Tobago Team
- Uganda Team
- United Kingdom Team
- US LoCo Teams
- Venezuela Team
- Wales Team
- Washington DC Team — US
- Washington State Team — US
- Wisconsin Team
- Yemen Team
- Za Team — South Africa
- Zimbabwe Team
- Americas LoCo Teams
- Other OS Support and Projects
- Ubuntu Official Flavours Support
Tags for this Thread
Bookmarks
Bookmarks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
vBulletin �2000 — 2023, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical � Canonical Ltd. Tango Icons � Tango Desktop Project.
User contributions on this site are licensed under the Creative Commons Attribution Share Alike 4.0 International License. For details and our forum data attribution, retention and privacy policy, see here