Re: Getting a new shell to work for the 'toor' user
On 7/6/20 12:13 PM, Jonathan Chen wrote: On Tue, 7 Jul 2020 at 07:10, Don Wilde wrote: All, I finally got around to -- I thought :) -- completing my inclusion of bash-static as a usable shell. It works as an available shell in 'adduser', but when I tried to use it as a recovery shell (see attached .odt), I ran into a problem. My fist pass was to add /bin/stbash to the end of the toor line in master.passwd, but that didn't change it even after a reboot. You have to use vipw(8). That worked, thanks! I'd forgotten about vipw, though I'd used it before. Doug's answer would have worked too, but since vipw calls pwd_mkdb, I didn't have to figure that one out. :) I'll polish the doc and ship it to freebsd-doc@ for comments. Appreciate the help! -- Don Wilde * What is the Internet of Things but a system * * of systems including humans? * ___ freebsd-stable@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: Getting a new shell to work for the 'toor' user
On Mon, Jul 06, 2020 at 12:10:08PM -0700, Don Wilde wrote: > It works as an available shell in 'adduser', but when I tried to use it as a > recovery shell (see attached .odt), I ran into a problem. My fist pass was > to add /bin/stbash to the end of the toor line in master.passwd, but that > didn't change it even after a reboot. Did you run pwd_mkdb after you added it to master.passwd? ___ freebsd-stable@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: Getting a new shell to work for the 'toor' user
On Tue, 7 Jul 2020 at 07:10, Don Wilde wrote: > > All, > > I finally got around to -- I thought :) -- completing my inclusion of > bash-static as a usable shell. > > It works as an available shell in 'adduser', but when I tried to use it > as a recovery shell (see attached .odt), I ran into a problem. My fist > pass was to add /bin/stbash to the end of the toor line in > master.passwd, but that didn't change it even after a reboot. You have to use vipw(8). -- Jonathan Chen ___ freebsd-stable@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Getting a new shell to work for the 'toor' user
All, I finally got around to -- I thought :) -- completing my inclusion of bash-static as a usable shell. It works as an available shell in 'adduser', but when I tried to use it as a recovery shell (see attached .odt), I ran into a problem. My fist pass was to add /bin/stbash to the end of the toor line in master.passwd, but that didn't change it even after a reboot. Next, I discovered that logging in as toor and issuing: # chsh -s /bin/stbash, but that didn't work successfully because it changed my root shell to the static-linked bash as well. I quickly changed it back! Two other commands work as expected, and track the issue: 'echo $0' and 'echo $SHELL' I don't see where SHELL is set, or $0. Are these in one of the rc files? What did I miss? -- Don Wilde * What is the Internet of Things but a system * * of systems including humans? * ___ freebsd-stable@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"