topic title: no_password_console
Posts: 43
nt351
Joined: 22 Dec 2009
#1
Now that NO_PASSWORD_CONSOLE
is"no more handled by shadow," what may we do to log me in without asking for password ?
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#2
What did you do to get that message?
Posts: 43
nt351
Joined: 22 Dec 2009
#3
I tried to accomplish logging in without having to type in password. I was told I should change the no_password_console line in login.defs. Opened up login.defs and saw this unhappy news:--
################# OBSOLETED #######################
# #
# These options are no more handled by shadow. #
# #
# Shadow utilities will display a warning if they #
# still appear. #
# #
###################################################

# CLOSE_SESSIONS
# LOGIN_STRING
# NO_PASSWORD_CONSOLE
# QMAIL_DIR
Did it anyway. It wouldn't log me in, gave me a warning, as promised, and asked for password.
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#4
You have to edit the /etc/slim.conf

At bottom:
auto_login yes
# default user, leave blank or remove this line
# for avoid pre-loading the username.
default_user yourusername
Posts: 43
nt351
Joined: 22 Dec 2009
#5
__{{emoticon}}__
That would have been the first idea, but, as we have discussed it in startX thread, slim is not here anymore, has been eliminated.
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#6

========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://forums.debian.net/viewtopic.php?f=16&t=29333&hilit=autologin+startx"
linktext was:"http://forums.debian.net/viewtopic.php? ... gin+startx"
====================================
" onclick="window.open(this.href);return false

should be of use.
Posts: 43
nt351
Joined: 22 Dec 2009
#7
You are still up, at this hour, answering questions ?!
This (from that link) is not exactly the same as no_password_console
edit the getty section of /etc/inittab
comment out
#1:2345:respawn:/sbin/getty 38400 tty1
below it add
1:2345:respawn:/bin/login -f YOUR_USER_NAME tty1 </dev/tty1 >/dev/tty1 2>&1
Logs me in without having to type in userName or passWord, but won't let me exit (and login as root)
-----
edit Jan 11:--
Finally arrived at the solution which should have thought of right at the beginning: simply replaced login and su with an older version; now NO_PASSWORD_CONSOLE tty1:vc/1 does what it used to, and no one complains; temporarily also replaced passwd with an older version and changed user password to single digit.