- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- RH 7.1 cannot open session
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2002 06:05 AM
03-26-2002 06:05 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2002 12:50 PM
03-26-2002 12:50 PM
Re: RH 7.1 cannot open session
login_name:x:uid_number:gid_number:user_name:user_home_directory:user_shell
Depending on what program was used to create the entry, user_name is sometimes blank.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2002 12:50 PM
03-26-2002 12:50 PM
Re: RH 7.1 cannot open session
I suppose, if the user entry is messed up, su-ing to that user will yield peculiar results. Try this:
From the command line as root create a new user:
# useradd user1
#
user1 is created with no passwd, a default directory /home/user1 and shell of /bin/bash
verify this:
# grep user1 /etc/passwd
user1:x:520:520::/home/user1:/bin/bash
#
change user1's passwd
# passwd user1
Changing password for user user1
New password:
Retype new password:
passwd: all authentication tokens updated successfully
#
now su to user1
does this procedure work? If so, you may only have to remove the one user (or two that didn't get created correctly.
hth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2002 10:17 AM
03-27-2002 10:17 AM
Re: RH 7.1 cannot open session
Tried test with adduser. The result is the same. Either from the gui or console, as root I su to username and it returns with 'could not open session'. Do I have to tweak the /etc/securetty? Or how about the /etc/pam.d/su, how should it look like?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2002 10:31 AM
03-27-2002 10:31 AM
Re: RH 7.1 cannot open session
I have no name@xxxxx.username. I run whoami and it returns with "cannot find username for UID 1010.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2002 02:55 PM
03-27-2002 02:55 PM
SolutionCould you include the screen output from your su username attempt?
Some other thoughts -- are you running a stock RH 7.1 kernel (i.e. no security enhancements from third parties like LIDS) ? Do you use NIS in this environment?
Beyond root, are there ANY valid user accounts on the system? (can you su to any of these?)
Does /etc/shadow exist? (with proper permissions -- Read for root only owner root/root.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2002 07:07 AM
04-02-2002 07:07 AM
Re: RH 7.1 cannot open session
No NIS.
Cannot su to any other acct.
/etc/shadow with proper permissions, but may not be in sync with /etc/passwd, how do I resolve this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2002 06:54 PM
04-03-2002 06:54 PM
Re: RH 7.1 cannot open session
If you have, or can install webmin, use the add new user option to create a new user account. Then see if that new account behaves normally.
I've seen instances where passwd gets messed up and cannot properly encrypt a passwd, perhaps it's having other issues on your system.
Another idea -- Manually create a password entry:
/usr/sbin/vipw
user1:x:1010:1010:This is a dummy account for user1:/home/user1:/bin/bash
:x!
then edit /etc/shadow (should automatically pop up)
user1:!!:11717:0:99999:7:::
:x!
again and then test
# su - user1
Copy your screen output (clean it up if you like) and post here if there're still problems.