LinuxQuestions.org
Help answer threads with 0 replies.
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 12-17-2008, 10:42 PM   #1
windstory
Member
 
Registered: Nov 2008
Posts: 486

Rep: Reputation: 36
could not login after installing centos 5.2


I installed centos 5.2.
And invite my friend through ssh.

However he could not make login.

Also, I can't make a new user with "adduser" or "useradd".
These commands returned "unknown command".


How can I solve this problem?
 
Old 12-17-2008, 10:45 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Are you running adduser as root?

What does your friend's system say? Is sshd running (ps aux | grep sshd). Is port 22 open on your firewall, and is it forwarded to you machine?


More info please.
 
Old 12-17-2008, 10:51 PM   #3
windstory
Member
 
Registered: Nov 2008
Posts: 486

Original Poster
Rep: Reputation: 36
billymayday,

Thanks for your kind reply.

I didn't checck 'ps aux | grep sshd" and firewall.
That's why I installed firewall and selinux disabled.

For port 22, I don't havve an idea how to check port 22.

I will check 'ps aux | grep sshd" and firewall, and repost here.

For root, I changed user with "su" command.

Quote:
Originally Posted by billymayday View Post
Are you running adduser as root?

What does your friend's system say? Is sshd running (ps aux | grep sshd). Is port 22 open on your firewall, and is it forwarded to you machine?


More info please.

Last edited by windstory; 12-17-2008 at 10:59 PM.
 
Old 12-17-2008, 10:57 PM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Try "su -" instead of just "su". That should fix the environment variables (esp path).
 
Old 12-18-2008, 12:02 AM   #5
windstory
Member
 
Registered: Nov 2008
Posts: 486

Original Poster
Rep: Reputation: 36
billymayday,

"su -" worked.
However, there are another problem.

After inputting password, "access denied" comes out.

Is there another procedure?


Quote:
Originally Posted by billymayday View Post
Try "su -" instead of just "su". That should fix the environment variables (esp path).
 
Old 12-18-2008, 12:14 AM   #6
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Are you using root's password?
 
Old 12-18-2008, 12:22 AM   #7
windstory
Member
 
Registered: Nov 2008
Posts: 486

Original Poster
Rep: Reputation: 36
No.

User tester1's password for logging in through ssh with putty.


Quote:
Originally Posted by billymayday View Post
Are you using root's password?
 
Old 12-18-2008, 12:37 AM   #8
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Oh - I thought the password was to do with su -

Can you start a terminal session as your user, and try

su tester1

enter the user's password and see if that works. Then we'll know if it's just ssh or something else.
 
Old 12-18-2008, 12:50 AM   #9
windstory
Member
 
Registered: Nov 2008
Posts: 486

Original Poster
Rep: Reputation: 36
Yes, "su tester1" was worked, and password also worked on local box.


Quote:
Originally Posted by billymayday View Post
Oh - I thought the password was to do with su -

Can you start a terminal session as your user, and try

su tester1

enter the user's password and see if that works. Then we'll know if it's just ssh or something else.
 
  


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
automatic login Centos 4.4 ihopeto Red Hat 1 11-16-2008 03:58 PM
CentOS 4 KDE - Changing remote login using gdmsetup vikram8jp Linux - Newbie 1 10-19-2008 08:50 PM
CentOS 5 (none)login : prompt athreyavc Linux - Software 2 04-17-2008 07:07 AM
Black Login Screen on CentOS 5 TuanT Linux - Newbie 4 09-09-2007 12:00 PM
CentOS wont login? SBN Linux - Software 1 10-11-2006 12:37 PM

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

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