* Howto change the default shell in yocto?
@ 2016-03-04 13:55 Oliver Graute
2016-03-04 14:57 ` Christopher Larson
0 siblings, 1 reply; 5+ messages in thread
From: Oliver Graute @ 2016-03-04 13:55 UTC (permalink / raw)
To: yocto
Hello,
how can I change the default shell on the yocto target from bash to
another shell like dash?
is there a variable for local.conf? or do I need to adapt my passwd for
every user?
Best Regards,
Oliver
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Howto change the default shell in yocto?
2016-03-04 13:55 Howto change the default shell in yocto? Oliver Graute
@ 2016-03-04 14:57 ` Christopher Larson
2016-03-05 11:48 ` Oliver Graute
0 siblings, 1 reply; 5+ messages in thread
From: Christopher Larson @ 2016-03-04 14:57 UTC (permalink / raw)
To: yocto
[-- Attachment #1: Type: text/plain, Size: 616 bytes --]
The default *system* shell (/bin/sh) or the default shell for users, or for
root? Folks often conflate them, but they're not the same.
On Fri, Mar 4, 2016 at 7:01 AM Oliver Graute <oliver.graute@gmail.com>
wrote:
> Hello,
>
> how can I change the default shell on the yocto target from bash to
> another shell like dash?
>
> is there a variable for local.conf? or do I need to adapt my passwd for
> every user?
>
> Best Regards,
>
> Oliver
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
[-- Attachment #2: Type: text/html, Size: 1045 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Howto change the default shell in yocto?
2016-03-04 14:57 ` Christopher Larson
@ 2016-03-05 11:48 ` Oliver Graute
2016-03-05 19:26 ` Burton, Ross
0 siblings, 1 reply; 5+ messages in thread
From: Oliver Graute @ 2016-03-05 11:48 UTC (permalink / raw)
To: yocto
On 04/03/16, Christopher Larson wrote:
> The default *system* shell (/bin/sh) or the default shell for users, or for
> root? Folks often conflate them, but they're not the same.
first the default *system* shell (/bin/sh) is this possible? or does this affect
to much of the yoco system itself, if I change /bin/sh to /bin/dash?
the alternative for me is to just change the default shell for normal
users and the root user. I assume its done via /etc/passwd. But how I adapt
these the yocto way?
Best regards,
Oliver
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Howto change the default shell in yocto?
2016-03-05 11:48 ` Oliver Graute
@ 2016-03-05 19:26 ` Burton, Ross
2016-03-07 10:51 ` Oliver Graute
0 siblings, 1 reply; 5+ messages in thread
From: Burton, Ross @ 2016-03-05 19:26 UTC (permalink / raw)
To: yocto@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 514 bytes --]
On 5 March 2016 at 11:48, Oliver Graute <oliver.graute@gmail.com> wrote:
> first the default *system* shell (/bin/sh) is this possible? or does this
> affect
> to much of the yoco system itself, if I change /bin/sh to /bin/dash?
>
bash is only the default shell (ie symlink from /bin/sh) if you install it,
so if you don't want bash to be sh then one option is to not install bash.
If you do want to keep bash installed but change the sh link, then that is
managed with update-alternatives.
Ross
[-- Attachment #2: Type: text/html, Size: 987 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Howto change the default shell in yocto?
2016-03-05 19:26 ` Burton, Ross
@ 2016-03-07 10:51 ` Oliver Graute
0 siblings, 0 replies; 5+ messages in thread
From: Oliver Graute @ 2016-03-07 10:51 UTC (permalink / raw)
To: yocto
On 05/03/16, Burton, Ross wrote:
> On 5 March 2016 at 11:48, Oliver Graute <oliver.graute@gmail.com> wrote:
>
> > first the default *system* shell (/bin/sh) is this possible? or does this
> > affect
> > to much of the yoco system itself, if I change /bin/sh to /bin/dash?
> >
>
> bash is only the default shell (ie symlink from /bin/sh) if you install it,
> so if you don't want bash to be sh then one option is to not install bash.
>
> If you do want to keep bash installed but change the sh link, then that is
> managed with update-alternatives.
>
ok thx, if I do
update-alternatives --install /bin/sh sh /bin/dash 100
on the target it works.
Best Regards,
Oliver
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-03-07 12:45 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-04 13:55 Howto change the default shell in yocto? Oliver Graute
2016-03-04 14:57 ` Christopher Larson
2016-03-05 11:48 ` Oliver Graute
2016-03-05 19:26 ` Burton, Ross
2016-03-07 10:51 ` Oliver Graute
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.