LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 03-16-2004, 09:14 PM   #1
bigcc
LQ Newbie
 
Registered: Mar 2004
Posts: 3

Rep: Reputation: 0
could not open session


I am using RH9. I couldn't switch to other user, when I did "su", the error are as follows,

--- [root@server root]# su - user1
--- could not open session

I tried login throught console
--- id: user1
--- passwd:
then, errors are as follows,
--- id: cannot find name for user ID 1001
--- [I have no name!@server user1]$

Please advise any mistake I made.
 
Old 03-17-2004, 02:12 AM   #2
kingka
Member
 
Registered: Aug 2003
Location: mechelen (belgium)
Distribution: debian gnu/linux (sid)
Posts: 99

Rep: Reputation: 15
can you login as root?
try login as root and then do

passwd <username>

enter a new password and see if your account works again, beware that everything is case-sensitive

good luck!
 
Old 03-17-2004, 02:44 AM   #3
bigcc
LQ Newbie
 
Registered: Mar 2004
Posts: 3

Original Poster
Rep: Reputation: 0
yes, I have problem when switching from root and switch to other users. Plus, I can't switch user evern I change the users' password.
 
Old 03-17-2004, 02:49 AM   #4
kingka
Member
 
Registered: Aug 2003
Location: mechelen (belgium)
Distribution: debian gnu/linux (sid)
Posts: 99

Rep: Reputation: 15
maybe I misunderstood...
is it only the su command that does not work?
or is it completely impossible to log-in with your normal account?

when you are logged in as a normal user, can you then switch to root with su?

Last edited by kingka; 03-17-2004 at 02:51 AM.
 
Old 03-17-2004, 03:40 AM   #5
bigcc
LQ Newbie
 
Registered: Mar 2004
Posts: 3

Original Poster
Rep: Reputation: 0
I can't "su" from root to other user , even I use normal login, I will get such error and a strange prompt:

--- id: cannot find name for user ID 1001
--- [I have no name!@server user1]$

Although I can switch to root, I am not sure if any services or commands can be executed under that environment.
 
Old 03-17-2004, 05:41 AM   #6
AutOPSY
Member
 
Registered: Mar 2004
Location: US
Distribution: Redhat 9 - Linux 2.6.3
Posts: 836

Rep: Reputation: 31
yove seriously got a fucked up install.

check your sudoers file and permissions on the /etc/passwd file.
 
Old 03-17-2004, 10:56 AM   #7
kingka
Member
 
Registered: Aug 2003
Location: mechelen (belgium)
Distribution: debian gnu/linux (sid)
Posts: 99

Rep: Reputation: 15
no you shouldn't use root as a normal user,

have you checked the suggestions autopsy made?
maybe you should try make a new user... if that could solve the problem

anywayz... have you been messing with the passwd file? did something with the shadow-password suite or so?
 
Old 04-15-2004, 08:40 AM   #8
abin
LQ Newbie
 
Registered: Apr 2004
Posts: 1

Rep: Reputation: 0
try like this

[root@StudyServer root]# ls -al /etc/passwd /etc/group
-rw------- 1 root root 606 Apr 15 20:24 /etc/group
-rw-r--r-- 1 root root 1557 Apr 15 20:24 /etc/passwd
[root@StudyServer root]# chmod +r /etc/passwd
[root@StudyServer root]# ls -al /etc/passwd /etc/group
-rw-r--r-- 1 root root 606 Apr 15 20:24 /etc/group
-rw-r--r-- 1 root root 1557 Apr 15 20:24 /etc/passwd
[root@StudyServer root]# su abin
[abin@StudyServer root]$
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't Open My X Session T-u-N-i-X Linux - Software 4 08-02-2005 04:31 PM
Cannot open X session spid Linux - General 4 01-28-2004 03:14 PM
could not open session Frankie Linux - Newbie 1 12-01-2003 10:47 AM
How to open several Session X bart59 Linux - General 13 05-23-2003 01:45 PM
could not open session czech Linux - General 0 08-29-2002 07:49 PM


All times are GMT -5. The time now is 10:49 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration