LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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, 01: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, 02: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, 02:21 PM   #3
mddnix
Member
 
Registered: Mar 2013
Distribution: Redhat, Ubuntu
Posts: 516

Rep: Reputation: 139Reputation: 139
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 mddnix; 07-08-2013 at 02: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 11: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 08:20 PM
User Account without a Password devUnix Linux - Server 9 01-05-2011 08:39 AM
ftp user account password.... tosszafer Linux - Security 1 10-30-2004 07:05 PM
Forgot my user account password Gilbert Linux - Newbie 1 02-23-2004 12:51 AM


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