user login without passwd
Building blfs I,m setting up the user for blfs, is it possible for the user to login without the use of a password if so how?
|
Assuming that you are setting up a DE, it's possible, but as for how really depends on which DM you are building (gdm, kdm, lxdm, slim etc)
|
So it,s not possible until I get a desktop, I only have the tty at the moment
|
Hi,
Code:
################################################################################ Tried it and it works (doesn't feel good though.....) Hope this helps. |
You can also make an 'autologin' program, like :
autologin.c Code:
#include <unistd.h> compile as: gcc -o autologin autologin.c, copy it in /usr/sbin The program agetty has the following options : man agetty Code:
-l login_program 1:2345:respawn:/sbin/agetty tty1 9600 with: 1:2345:respawn:/sbin/agetty -n -l /usr/sbin/autologin tty1 9600 This way no need to modify /etc/passwd This will auto login in username account without password after booting the OS |
Although you said it dosn't feel good is this not how Ubuntu suse etc let you set it up. If a user has no password will that affect if he wanted to have root privilages (sudo). I was also looking at no login as root but using the sudo option, I know it gives it a "commercial feel". I am only looking at the options at the moment
|
Hi,
Quote:
I assume that if you set up sudo so that no password is needed it will work, not sure about an empty password (you can always try ;) ). Quote:
|
I did the autologin config like above in the computer of my old dad :p
Security wise, it requires physical access to use his computer without password, and at limited user privileges, it is good enough to me |
I did like the idea of the auto login. I presume that I can still give the user a password and auto login so as to setup sudo
|
Quote:
.bash_profile Code:
if [[ -z $DISPLAY && $(tty) = /dev/tty1 ]]; then |
Thks for the help I will try this when I get there. I,ll leave it unsolved for now might need some more help.
|
Thks that worked a treat thks for the help. Hope this Thread helps others
|
All times are GMT -5. The time now is 03:12 AM. |