Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-08-2013, 12:57 PM   #1
LQ Newbie
Registered: Aug 2011
Posts: 1

Rep: Reputation: Disabled
User account with no password

First Post (be easy)
I have several linux guests on an ESXi server. I am using UPS monitoring on a physical windows box and would like to be able to shutdown the linux guests from a batch file on the windows box. I found a way that should do it using putty/ssh and private keys but I haven't found a way to create a user on the linux guests without a password, hence the putty session hangs asking for a password. None of the linux guests have outside internet access from the firewall and are all on an internal vlan.

Anyone have any ideas?
Old 07-08-2013, 01:10 PM   #2
Senior Member
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Rep: Reputation: 127Reputation: 127
But if you use private keys no password should be needed.
* Can you login on a Linux via putty without password?
If not, you haven't got the configuration for using keypairs right.
If you can, there's something wrong in your script.

One other possibility: your user on Linux-box is not allowed to shutdown the system. Normally only root can do that.
May I guess that you are trying to script a sudo-command? Something like 'ssh user@server "sudo poweroff"' ?
Old 07-08-2013, 01:21 PM   #3
Registered: Mar 2013
Distribution: Redhat, Ubuntu
Posts: 525

Rep: Reputation: 141Reputation: 141
To create a user without password, follow the steps. (Note here i'm using username dummy)
  1. Become root

  2. Create user account
    useradd dummy

  3. Unlock user account password
    passwd -uf dummy

  4. Done. now you can login as user dummy without password
    su - dummy

Last edited by mddnix; 07-08-2013 at 01:26 PM.


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
Password-Less User Account devUnix Linux - Security 7 10-23-2012 10:50 AM
I cant log in to my Linux Mint user account using my user name and password itstraining Linux - Newbie 11 04-26-2012 07:20 PM
User Account without a Password devUnix Linux - Server 9 01-05-2011 07:39 AM
ftp user account password.... tosszafer Linux - Security 1 10-30-2004 06:05 PM
Forgot my user account password Gilbert Linux - Newbie 1 02-22-2004 11:51 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:44 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration