[Freeipa-users] Default shell for new users
Martin Kosek
mkosek at redhat.com
Mon Oct 14 19:19:31 UTC 2013
Adding freeipa-users list back to CC.
Note that the default shell applies only for new users. To modify shell for a
current user, use
# ipa user-mod <user> --shell=/bin/bash
Martin
On 10/14/2013 01:55 PM, Михаил А wrote:
> [root at pk529ipa01 ~]# ipa config-show
...
> Default shell: /bin/bash
...
>
>
> but in new session
> -sh-4.2$ echo $SHELL
> /bin/sh
> -sh-4.2$
>
>
>
>
> 2013/10/14 Martin Kosek <mkosek at redhat.com <mailto:mkosek at redhat.com>>
>
> Then you probably have /bin/bash already set. Use
>
> # ipa config-show
>
> to verify.
>
> Martin
>
> On 10/14/2013 01:46 PM, Михаил А wrote:
> > ipa config-mod --defaultshell=/bin/bash
> > ipa: ERROR: no modifications to be performed
> >
> >
> >
> > 2013/10/14 Martin Kosek <mkosek at redhat.com <mailto:mkosek at redhat.com>>
> >
> >> On 10/14/2013 11:46 AM, Mateusz Marzantowicz wrote:
> >>> Is there any particular reason why /bin/sh is default shell for new
> >>> domain users and not /bin/bash is? I know that /bin/sh is symlink to
> >>> /bin/bash on Fedora but local user accounts are created with /bin/bash
> >>> as default shell.
> >>>
> >>> Is it related to other supported UNIX-like systems that might not
> >>> include bash or there is some other reason for such default vaule?
> >>
> >> This is exactly the reason. /bin/sh is just the most common denominator
> >> when
> >> talking about shells on various client systems.
> >>
> >> But feel free to change the default to /bin/bash if you like:
> >>
> >> $ kinit admin
> >> $ ipa config-mod --defaultshell=/bin/bash
> >>
> >> HTH,
> >> Martin
> >>
> >> _______________________________________________
> >> Freeipa-users mailing list
> >> Freeipa-users at redhat.com <mailto:Freeipa-users at redhat.com>
> >> https://www.redhat.com/mailman/listinfo/freeipa-users
> >>
> >
>
>
More information about the Freeipa-users
mailing list