[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to login automatically into Bash after booting?



On 11:04 Thu 11 Aug 2005, Mark Roach wrote:
> 
> On 8/11/2005, "phyrster" <phyrster@gmail.com> wrote:
> >Is there a way to let bash automatically login a user after booting up?
> >
> >The sarge box is just for home use and there is no remote login or other
> >remote control sort of things. For the convenience of a local user (non
> >root), how to make bash login a user automatically?
> 
> I have never actually done this, but as a tip for a starting point:
> 
> Virtual console login is handled by getty via /bin/login
> getty invocation is configured in /etc/inittab
> 
> from looking at the manpage of getty, you might be able to have it run
> /bin/bash instead of /bin/login
> 
> This would be done by editing /etc/inittab to have a line like
> 
> 1:2345:respawn:/sbin/getty -l /bin/bash -n 38400 tty1
> 
> instead of what you've already got on tty1
> 
> Please let me know if that works.

It worked. Thank you for this tip. It indeed logged in automatically as root. 

Is there a way to make it login as user instead?

regards

bxuef

--
dhammapada says:
 
  It is better to travel alone. There is no companionship with a fool. Go
  on your way alone and commit no evil, without cares like a great
  elephant in the deep forest. 330
  
  It is good to have companions when occasion arises, and it is good to be
  contented with whatever comes. Merit is good at the close of life, and
  the elimination of all suffering is good. 331
 



Reply to: