LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 03-26-2012, 02:29 PM   #1
reinecke53
LQ Newbie
 
Registered: Mar 2012
Posts: 4

Rep: Reputation: Disabled
I added a new user to the Linux server and can't logon as the user


Hi,
My name is Sue and I am an absolutely newbie to Linux but I have worked for years on Unix.

I have root access to my Linux server and added a new user. However, when I try to log onto the server, using Putty, I get an access denied message. I am sure I am missing a piece, but I don't know what the piece is. Can someone help me?

Thanks.
 
Old 03-26-2012, 02:30 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Can you SSH into the server as any user?

If every user is being denied, perhaps you need to check your permissions in the sshd server, or maybe even just start the sshd server if it isn't running already.
 
Old 03-26-2012, 02:35 PM   #3
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Hi Sue,

Welcome to LQ!!!

Which linux distribution are you using? Did you check the logs? Are you able to login to this machine via Putty using root account? Did you set the password for newly created user using passwd <username> command?
 
Old 03-26-2012, 03:13 PM   #4
reinecke53
LQ Newbie
 
Registered: Mar 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks for the quick response. I am using SuSE11 SP2. The vendor will not let me login as root, I have to sudo to root. I don't know where the logs are to check but I can certainly do that if someone tells me where they are.

I did setup the password for the new user. When I am logged into the server as myself, I can su to the new user, and put in the password, but I can't log into the server with the new password.

Sue
 
Old 03-26-2012, 03:18 PM   #5
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Try to login as that user using Putty and once you get the error message login with your user account and paste the output of the following command:

Code:
tail /var/log/messages
How did you create the user by editing /etc/passwd file or by running useradd command?

Also paste the output of:

Code:
cat /etc/passwd | grep <username>
Where <username> will be the user who is unable to ssh via putty.
 
Old 03-26-2012, 03:38 PM   #6
reinecke53
LQ Newbie
 
Registered: Mar 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
There was nothing in the /var/log/messages file. It has not been written to since March 7.

Here is the output of the cat statement:

ingres:x1005:100::/home/ingres:/bin/bash

Thanks again for your assistance.
 
Old 03-26-2012, 03:42 PM   #7
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
Hi,

Isn't something like AllowUsers defined in /etc/ssh/sshd_config ? (examples)
Check if this allows only your username to login through SSH.

Last edited by lithos; 03-26-2012 at 03:44 PM.
 
Old 03-26-2012, 03:42 PM   #8
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
here happened a double post (don't know how or why, I was clicking Edit)

Last edited by lithos; 03-26-2012 at 03:45 PM.
 
Old 03-26-2012, 03:53 PM   #9
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

You're welcome.

lithos is right. As you said that once you are logged in with your user account you are able to su - <username> then it appears that something has been setup in sshd_config file.

As you said that you are running SLES11 SP2. Did you contact SuSE / Novell and informed them about this?
 
Old 03-27-2012, 01:56 PM   #10
reinecke53
LQ Newbie
 
Registered: Mar 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks to everyone for your assistance. I added the user to sshusers and that did the trick.

Sue
 
Old 03-27-2012, 03:16 PM   #11
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
That's great.

So, if you feel it's solved, can you mark the thread as solved (look at my signature how).


Regards
 
1 members found this post helpful.
  


Reply



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
Forgot Logon User & Password to get on Linux Laptop Letere Linux - Newbie 10 04-17-2007 07:31 AM
New Linux user added to the crowd Matrim7744 LinuxQuestions.org Member Intro 1 03-02-2007 11:41 AM
How to automatically add smb user when unix user added Winanjaya Linux - Newbie 3 01-07-2007 11:17 AM
NIS prob: added user to server, but can't login to client BrianK Linux - General 3 10-06-2004 04:29 PM

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

All times are GMT -5. The time now is 10:24 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