-
problems with automatic login
Hi!
As maintainer of a small distibution called mulimidix i discovered a problem in the shell enviroment. I used automatic login the same way knoppix does, using /bin/bash -login in /etc/inittab. First it seemed that everything was all right but i wondered about a strange behaviour of the more-command: after one page the output stopps. At first i thought this was due to a bad compilation and so i rebuilded the whole distri. But the problem was the same. Comparing the auto-login enviroment with a normal-login enviroment i discovered,that in auto-enviroment the $HOME-variable values / , but /etc/passwd says it should be /root. searching the web i discovered some alternate ways to auto-login after bootup, but all these methods required patching programms or install some non-standard login-progs. Is there a way to emulate the "normal" shell behaviour without patching programms or install special login-progs?
i have no clue to solve this problem in an elegant way, so i ask you the knoppix community. To solve the problem would make knoppix even better than now.
i hope you have some hints about my problem.
Thanks,
Dieter Springer
-
Senior Member
registered user
Re: problems with automatic login
--I know it's not a solution to the login problem (I encountered the same thing running a passwordless login) but have you tried using 'less' instead of more?
--Also, here's a snip from my inittab that seems to get around the problem:
8:5:respawn:/usr/bin/open -f -c 8 -w -- /bin/login -f dave
--In runlevel 5, it auto-logins user "dave" on console F8 without asking for password. However, if you logout it will respawn with "-bash: no job control in this shell" message.
--Hope this helps.

Originally Posted by
Dieter Springer
Hi!
As maintainer of a small distibution called mulimidix i discovered a problem in the shell enviroment. I used automatic login the same way knoppix does, using /bin/bash -login in /etc/inittab. First it seemed that everything was all right but i wondered about a strange behaviour of the more-command: after one page the output stopps. At first i thought this was due to a bad compilation and so i rebuilded the whole distri. But the problem was the same. Comparing the auto-login enviroment with a normal-login enviroment i discovered,that in auto-enviroment the $HOME-variable values / , but /etc/passwd says it should be /root. searching the web i discovered some alternate ways to auto-login after bootup, but all these methods required patching programms or install some non-standard login-progs. Is there a way to emulate the "normal" shell behaviour without patching programms or install special login-progs?
i have no clue to solve this problem in an elegant way, so i ask you the knoppix community. To solve the problem would make knoppix even better than now.
i hope you have some hints about my problem.
Thanks,
Dieter Springer
-
Senior Member
registered user
Re: problems with automatic login
--I found this snippet in /etc/login.defs as well:
Code:
# If defined, either full pathname of a file containing device names or
# a ":" delimited list of device names. No password is required to log in
# as a non-root user on these devices.
#
#NO_PASSWORD_CONSOLE tty1:tty2:tty3:tty4:tty5:tty6

Originally Posted by
Dave_Bechtel
--I know it's not a solution to the login problem (I encountered the same thing running a passwordless login) but have you tried using 'less' instead of more?
--Also, here's a snip from my inittab that seems to get around the problem:
8:5:respawn:/usr/bin/open -f -c 8 -w -- /bin/login -f dave
--In runlevel 5, it auto-logins user "dave" on console F8 without asking for password. However, if you logout it will respawn with "-bash: no job control in this shell" message.
--Hope this helps.

Originally Posted by
Dieter Springer
Hi!
As maintainer of a small distibution called mulimidix i discovered a problem in the shell enviroment. I used automatic login the same way knoppix does, using /bin/bash -login in /etc/inittab. First it seemed that everything was all right but i wondered about a strange behaviour of the more-command: after one page the output stopps. At first i thought this was due to a bad compilation and so i rebuilded the whole distri. But the problem was the same. Comparing the auto-login enviroment with a normal-login enviroment i discovered,that in auto-enviroment the $HOME-variable values / , but /etc/passwd says it should be /root. searching the web i discovered some alternate ways to auto-login after bootup, but all these methods required patching programms or install some non-standard login-progs. Is there a way to emulate the "normal" shell behaviour without patching programms or install special login-progs?
i have no clue to solve this problem in an elegant way, so i ask you the knoppix community. To solve the problem would make knoppix even better than now.
i hope you have some hints about my problem.
Thanks,
Dieter Springer
Similar Threads
-
By JockVSJock in forum General Support
Replies: 6
Last Post: 02-01-2005, 10:58 PM
-
By Jameson in forum General Support
Replies: 2
Last Post: 01-19-2005, 05:27 AM
-
By draggin in forum General Support
Replies: 5
Last Post: 11-08-2004, 03:37 PM
-
By knoppix-noob in forum Hdd Install / Debian / Apt
Replies: 1
Last Post: 04-21-2004, 03:45 AM
-
By bendman in forum Hdd Install / Debian / Apt
Replies: 6
Last Post: 03-08-2004, 03:10 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

SAMSUNG SSD 512GB 500GB 480GB 256GB 250GB 240GB SSD 2.5 Solide State Drive 6Gbps
$40.99

ON SALE TURBOLINK EVO 4TB V-HAND SSD 2.5 SATA III Internal Solid State Drive
$199.99

Samsung 860 EVO 250GB SSD MZ-76E250 2.5" SATA III Solid State Drive -
$36.99

Western Digital Blue 3D NAND 250GB 2.5" SATA III Internal SSD - WDS250G2B0A
$29.99

256GB mSATA SSD DRIVE MIXED BRAND TESTED WORKING
$23.50

Crucial 2TB P3 Plus NVMe PCIe 4.0 M.2 Laptop Desktop Internal SSD CT2000P3PSSD8
$199.00

2 PACK 128 GB SSD M.2 2280 SATA Solid State Drive Major Brands, Samsung, LiteON
$28.00

Fikwot 512GB SATA SSD 2.5'' SSD SATA III 6Gb/s Internal Solid State Drive 560MBs
$66.00

Toshiba THNSN81Q92CSE 1920GB SATA 2.5 Solid State Drive
$199.00

Netac 2TB SSD 3D NAND 2.5'' SATA III 6GB/s Internal Solid State Drive
$190.00