I checked /etc/passwd : root:*: . . .:/bin/ksh In /root ; dont have .ksh ; need to make that?
On Thu, Jul 9, 2026 at 11:47 PM Steve Rikli <[email protected]> wrote: > > On Thu, Jul 09, 2026 at 10:44:04PM -0400, Todd Gruhn wrote: > > So, I start NetBSD or su to root, I > > need to do ' . ./.ksh'. > > > > Why cant I get /bin/ksh when I login? > > > > I found /etc/shrc. Does this have something > > to do with this? Make a /etc/kshrc ? > > Are you saying you want to login or su as root and you want the shell > to automatically be ksh? > > Before making any changes, you can check your system's root user shell > by looking at root's line in /etc/passwd . > > $ grep ^root: /etc/passwd > root:*:0:0:Charlie &:/root:/bin/sh > > If you really want to change this, one method is running the NetBSD > 'sysinst' command as root, navigate to "Config menu", then "Root shell", > and select the shell you prefer. > > There's no need to create /etc/kshrc to use ksh as a login shell, or > to run it manually from the commandline. > > E.g. if you want to temporarily switch shells from the commandline, you > should be able to simply type '/bin/ksh'.
