Solved

Linux : access denied while login for new user created

Posted on 2014-02-06
4
798 Views
Last Modified: 2014-02-15
I have created new user using below command in Linux  from root user

#useradd -d /home/user01 -p momra01 pwd01

while login to by using this user from putty  SSH, I am getting access denied message.

please advice steps
0
Comment
Question by:mac_g
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 17

Assisted Solution

by:Sikhumbuzo Ntsada
Sikhumbuzo Ntsada earned 83 total points
ID: 39838293
The file that holds the config is "/etc/ssh/sshd_config"

I would back that up first and add the user, then restart.
0
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 84 total points
ID: 39838616
The user must set their password first by means of "passwd".
Login with a password set by root leads to a prompt requesting this action, which ssh doesn't tolerate.
0
 
LVL 13

Assisted Solution

by:Sandy
Sandy earned 83 total points
ID: 39838679
-p, --password PASSWORD
    The encrypted password, as returned by crypt(3). The default is to disable the password.

    Note: This option is not recommended because the password (or encrypted password) will be visible by users listing the processes.

TY/SA
0
 
LVL 5

Expert Comment

by:NARANTHIRAN
ID: 39849831
Have you disabled firewall in the system..
or have you enables the ssh connection in the firewall...
0

Featured Post

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Hello EE, Today we will learn how to send all your network traffic through Tor which is useful to get around censorship and being tracked all together to a certain degree. This article assumes you will be using Linux, have a minimal knowledge of …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question