- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Problem with Single User Mode
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
Discussions
Discussions
Discussions
Forums
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
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
тАО06-02-2004 03:05 AM
тАО06-02-2004 03:05 AM
I have problem with Single User Mode. Every time I switch to SUM, my prompt freezes and display this message:
logname: could not get login name
I have also notice the same situation, when I try to execute .profile (in / directory) in SUM.
Can somebody help?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2004 06:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2004 06:23 AM
тАО06-02-2004 06:23 AM
Re: Problem with Single User Mode
I addition to above.
What is your login shell for root. (/sbin/sh)
/usr is not mounted in SUM.
Regards,
Gideon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2004 06:25 AM
тАО06-02-2004 06:25 AM
Re: Problem with Single User Mode
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2004 06:26 AM
тАО06-02-2004 06:26 AM
Re: Problem with Single User Mode
/etc/utmp
/var/adm/wtmp
/var/adm/btmp
logname could give an error if any of these files are either corrupt or unavailable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2004 06:28 AM
тАО06-02-2004 06:28 AM
Re: Problem with Single User Mode
Also look out for the TERM variable.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2004 06:30 AM
тАО06-02-2004 06:30 AM
Re: Problem with Single User Mode
For other OS look at the Equiv section in the patch description of PHCO_19701
[PHCO_18424/PACHRDME/English] :
1. tsm(1) fails with "permission denied" message
while opening ttys. This is due to an incorrect
verification method used for the master-slave
tty pair. The previous fix used "/dev/ptym/clone"
instead of master pty and the corresponding changes
were not made in the verfication process.
2. logname(1) fails with "could not get login name"
message on tsm sessions. This is due to incorrect
utmp entries being written to the /etc/utmp file
by tsm(1).
Resolution :
1. During the verification process, check whether
the clone device is used instead of the master
pty.
2. Write only the base name of the tty to the
/etc/utmp file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2004 07:01 AM
тАО06-02-2004 07:01 AM
Re: Problem with Single User Mode
.profile is in attach.
It is HP-UX 11.11
root shell is /sbin/sh.
To me thease files: /etc/utmp, /var/adm/wtmp/ and /var/adm/btmp look just fine. I have edited them with fwtmp, and it shows no errors.
PHCO_19701 doesn't have equivalent for HP-UX 11.11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2004 07:06 AM
тАО06-02-2004 07:06 AM
Re: Problem with Single User Mode
I think this is the problem.
if grep -q $(logname) /etc/user_su
then
echo "You cannot direct logint. Please, use su!!!"
exit
fi
Regards,
Gideon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2004 07:23 AM
тАО06-02-2004 07:23 AM
Re: Problem with Single User Mode
I think your problem is logname command erroring out either due to missing some info. on /etc/utmp on SUM or you might be missing a patch.
When you fwtmp the /etc/utmp in SUM, do you see the your terminal name you are logged on?
I am sure it would be correct on multi-user mode, but not sure how it looks like in SUM though.