* [Buildroot] avoiding the need to enter password
@ 2012-08-04 9:48 Kevin Wilson
2012-08-04 11:05 ` Thomas Petazzoni
0 siblings, 1 reply; 4+ messages in thread
From: Kevin Wilson @ 2012-08-04 9:48 UTC (permalink / raw)
To: buildroot
Hi,
When booting to Buildroot (which I had built from tree) I get the message:
Welcome to Buildroot
buildroot login:
Is there a way to disable the need to enter password so that it will boot
automatically instead that I will have each time enter the default
password (which is "root")?
rgs
Kevin
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] avoiding the need to enter password
2012-08-04 9:48 [Buildroot] avoiding the need to enter password Kevin Wilson
@ 2012-08-04 11:05 ` Thomas Petazzoni
2012-08-04 13:55 ` Kevin Wilson
0 siblings, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2012-08-04 11:05 UTC (permalink / raw)
To: buildroot
Le Sat, 4 Aug 2012 12:48:19 +0300,
Kevin Wilson <wkevils@gmail.com> a ?crit :
> When booting to Buildroot (which I had built from tree) I get the
> message: Welcome to Buildroot
> buildroot login:
>
> Is there a way to disable the need to enter password so that it will
> boot automatically instead that I will have each time enter the
> default password (which is "root")?
The default password is not "root". The default password is empty.
You can change /etc/inittab so that instead of starting /sbin/getty it
starts /bin/sh. But obviously, doing so that anyone connecting to your
system with a serial port has direct root access.
But generally, this isn't needed: you just start whatever application
you need through /etc/init.d/ scripts, and those applications get
started regardless of whether you logged into the system or not.
Best regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] avoiding the need to enter password
2012-08-04 11:05 ` Thomas Petazzoni
@ 2012-08-04 13:55 ` Kevin Wilson
2012-08-04 15:42 ` Thomas Petazzoni
0 siblings, 1 reply; 4+ messages in thread
From: Kevin Wilson @ 2012-08-04 13:55 UTC (permalink / raw)
To: buildroot
Thanks.
> doing so that anyone connecting to your
> system with a serial port has direct root access.
This is ok.
I tried it replacing /bin.sh instead of the
/sbin/getty line in /etc/inittab and indeed it boots into prompt
without need to enter password.
Is there a way to enforce it running the /etc/profile in boot
in such a case ?
(It seems to me that /etc/profile is not executed)
On Sat, Aug 4, 2012 at 2:05 PM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> Le Sat, 4 Aug 2012 12:48:19 +0300,
> Kevin Wilson <wkevils@gmail.com> a ?crit :
>
>> When booting to Buildroot (which I had built from tree) I get the
>> message: Welcome to Buildroot
>> buildroot login:
>>
>> Is there a way to disable the need to enter password so that it will
>> boot automatically instead that I will have each time enter the
>> default password (which is "root")?
>
> The default password is not "root". The default password is empty.
>
> You can change /etc/inittab so that instead of starting /sbin/getty it
> starts /bin/sh. But obviously, doing so that anyone connecting to your
> system with a serial port has direct root access.
>
> But generally, this isn't needed: you just start whatever application
> you need through /etc/init.d/ scripts, and those applications get
> started regardless of whether you logged into the system or not.
>
> Best regards,
>
> Thomas
> --
> Thomas Petazzoni, Free Electrons
> Kernel, drivers, real-time and embedded Linux
> development, consulting, training and support.
> http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] avoiding the need to enter password
2012-08-04 13:55 ` Kevin Wilson
@ 2012-08-04 15:42 ` Thomas Petazzoni
0 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2012-08-04 15:42 UTC (permalink / raw)
To: buildroot
Le Sat, 4 Aug 2012 16:55:08 +0300,
Kevin Wilson <wkevils@gmail.com> a ?crit :
> I tried it replacing /bin.sh instead of the
> /sbin/getty line in /etc/inittab and indeed it boots into prompt
> without need to enter password.
> Is there a way to enforce it running the /etc/profile in boot
> in such a case ?
> (It seems to me that /etc/profile is not executed)
Try:
ttyS0::respawn:-/bin/sh
(i.e add a '-' in front of the /bin/sh command. It will make your shell
a login shell, which I think should tell the shell to
read /etc/profile).
Best regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-08-04 15:42 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-04 9:48 [Buildroot] avoiding the need to enter password Kevin Wilson
2012-08-04 11:05 ` Thomas Petazzoni
2012-08-04 13:55 ` Kevin Wilson
2012-08-04 15:42 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox