From: ichi@ihug.co.nz
To: a a <xlsd@hotmail.com>
Cc: linux-newbie@vger.kernel.org
Subject: Re: auto login
Date: Mon, 16 Sep 2002 08:05:01 +0000 [thread overview]
Message-ID: <3D8590AD.46E320C6@ihug.co.nz> (raw)
In-Reply-To: F22LjQyKNRocEvBff6e0000a72a@hotmail.com
a a wrote:
>
> Is there a way i can automatically login as
> root when i boot up the computer?
If you look in /etc/inittab, you will probably find
(down near the bottom) a group of lines that look
something like this:
---------------------------------------------
c1:1235:respawn:/sbin/agetty 38400 tty1 linux
c2:1235:respawn:/sbin/agetty 38400 tty2 linux
c3:1235:respawn:/sbin/agetty 38400 tty3 linux
---------------------------------------------
It is the getty that prompts for the login name.
To avoid the login prompt, you can edit the line
to go directly to bash:
--------------------------------
c1:1235:respawn:/bin/bash -login
--------------------------------
I use this technique for a NFS server (no keyboard, no VDU)
that only gets turned on occasionally. It runs in a ramdisk
(using a BasicLinux foundation) and automatically mounts and
serves the target drive (read-only). Turn it on when you
need it, turn it off when you're done, no worries.
Cheers,
Steven
______________________________
http://www.volny.cz/basiclinux
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
next prev parent reply other threads:[~2002-09-16 8:05 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-15 16:19 auto login a a
2002-09-15 17:05 ` Elias Athanasopoulos
2002-09-15 18:03 ` 1stFlight
2002-09-25 18:48 ` LL Phillips
2002-09-25 19:23 ` pa3gcu
2002-09-26 8:10 ` Elias Athanasopoulos
2002-09-16 8:05 ` ichi [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-09-16 8:33 a a
2002-09-16 8:34 a a
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3D8590AD.46E320C6@ihug.co.nz \
--to=ichi@ihug.co.nz \
--cc=linux-newbie@vger.kernel.org \
--cc=xlsd@hotmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox