You are not logged in.
I am trying to run
login (to login as a different user) within a shell already logged in.
However,
I got the following error message.
No utmp entry. You must exec "login" from the lowest level "sh"
How to fix this , or any work around?
Offline
This may help: http://linux.about.com/library/cmd/blcmdl1_login.htm
"If the user is not root, and if /etc/nologin exists, the contents of this file are printed to the screen, and the login is terminated. This is typically used to prevent logins when the system is being taken down. "
flack 2.0.6: menu-driven BASH script to easily tag FLAC files (AUR)
knock-once 1.2: BASH script to easily create/send one-time sequences for knockd (forum/AUR)
Offline
This may help: http://linux.about.com/library/cmd/blcmdl1_login.htm
"If the user is not root, and if /etc/nologin exists, the contents of this file are printed to the screen, and the login is terminated. This is typically used to prevent logins when the system is being taken down. "
I am trying to login as a different user (not root, su works), and I don't have /etc/nologin
Offline
If I understand you correctly, '#su' IS your friend. Try out '#su <username>'
Offline
If I understand you correctly, '#su' IS your friend. Try out '#su <username>'
You saved my day. I have been using linux for a couple of years and I never read 'su' manpage.
I always thought 'su' stands for SuperUser, instead of 'SubstituteUser'.
Just ask out of my curiosity, why does 'su' work but 'login' doesn't?
Is this related settings in /etc/pam.d ?
Offline
Glad I could help:) Login wont work because a session within the session isn't allowed. Check out man login
Offline