LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-08-2013, 12:57 PM   #1
jackpod
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
pingu
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
Madhu Desai
Member
 
Registered: Mar 2013
Distribution: Rocky, Fedora, Ubuntu
Posts: 541

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

  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 Madhu Desai; 07-08-2013 at 01:26 PM.
 
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:17 PM.

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