Strog
March 28th, 2005, 16:13
From Theo de Raadt on misc@:

"CVSROOT: /cvs
Module name: src
Changes by: deraadt@cvs.openbsd.org 2005/03/27 23:55:11

Modified files:
etc : master.passwd

Log message:
change root login shell to ksh as promised; ok many"

Strog
March 28th, 2005, 16:15
I know most people say "NEVER change root shell" but I do change mine to ksh since it's in /bin anyway. The only time I ever login as root anyway is until I get my user setup with sudo. :wink:

frisco
March 28th, 2005, 16:48
I know most people say "NEVER change root shell" but I do change mine to ksh since it's in /bin anyway. The only time I ever login as root anyway is until I get my user setup with sudo. :wink:

After you've installed but before you've rebooted, run `/mnt/usr/sbin/chroot /mnt` and make any changes/additions you need to, like adding your user, editing /etc files, and the like.

Kernel_Killer
March 28th, 2005, 17:16
heh, and all this time I've been changing to to tcsh.....

cod3fr3ak
March 29th, 2005, 17:13
So is setting it to /bin/sh a bad thing?

cod3fr3ak
March 29th, 2005, 17:14
I like strog set it after I install and only use it to set SUDO, but frisco's given me a better way. Thanks.

bsdjunkie
March 30th, 2005, 10:13
So is setting it to /bin/sh a bad thing?

In OpenBSD sh == ksh so its no different.

Unregistered
April 5th, 2005, 08:59
sh == ksh

True...

$ ls -1i sh ksh rksh
41256 ksh
41256 rksh
41256 sh

They're hardlinks. All three directory entries point to the same inode.

so its no different

Not quite...

The name the shell is invoked by determines its behavior.

tronik
April 7th, 2005, 00:19
dunno...ksh was maybe a bad move *groan* ;) csh/tcsh =) mmm...

cod3fr3ak
April 8th, 2005, 10:18
thanks bsdjunkie and guest. I looked at the inodes and figured it out. learn something new everyday