Re: Mandatory files in /etc for single-user check for password
On Sun, Oct 20, 2013 at 10:56:34PM +, Stuart Henderson wrote: > On 2013-10-20, Jiri B wrote: > > Hi, > > > > first of all my setup is very non-standard. > > > > I'm playing with OpenBSD to have it as much as possible on > > read-only filesystem. Everything (till now) works OK but > > I have problem with single-user mode. I can't make password > > authentication working. > > > > I have following setup: > > > > * all files from /etc are in /mfs/etc > > * following files are hardlinks linking the files in /etc and /mfs/etc. > > I do this as these files are used early during boot, before /etc is > > mounted over as ramdisk with proto files being located in /mfs/etc > > > > boot.conf fstab login.conf master.passwd pwd.db rc rc.conf ttys > > See pwd_mkdb(8). I'm ashamed :) Thank you very much. jirib
Re: Mandatory files in /etc for single-user check for password
On 2013-10-20, Jiri B wrote: > Hi, > > first of all my setup is very non-standard. > > I'm playing with OpenBSD to have it as much as possible on > read-only filesystem. Everything (till now) works OK but > I have problem with single-user mode. I can't make password > authentication working. > > I have following setup: > > * all files from /etc are in /mfs/etc > * following files are hardlinks linking the files in /etc and /mfs/etc. > I do this as these files are used early during boot, before /etc is > mounted over as ramdisk with proto files being located in /mfs/etc > > boot.conf fstab login.conf master.passwd pwd.db rc rc.conf ttys See pwd_mkdb(8).
Mandatory files in /etc for single-user check for password
Hi, first of all my setup is very non-standard. I'm playing with OpenBSD to have it as much as possible on read-only filesystem. Everything (till now) works OK but I have problem with single-user mode. I can't make password authentication working. I have following setup: * all files from /etc are in /mfs/etc * following files are hardlinks linking the files in /etc and /mfs/etc. I do this as these files are used early during boot, before /etc is mounted over as ramdisk with proto files being located in /mfs/etc boot.conf fstab login.conf master.passwd pwd.db rc rc.conf ttys So normal boot works, serial console works (boot.conf), mounting filesystems works (rc, rc.conf, fstab)... But when I define in /etc/ttys 'insecure' for console, which is used during single-user, even when I type valid root's password I do not get prompt to specify shell. -%- Enter root password, or ^D to go multi-user Password: Oct 20 10:48:43 init: single-user login failed Password: -%- I have in /etc/ttys: -%- console "/usr/libexec/getty std.9600" vt220 off insecure -%- (It seems that it can be 'off'.) I know this is not standard OpenBSD setup but if anybody could help what files I'm missing for this early stage (single-user), I would appreciate. Otherwise I would hardlink all base OS conf files back to /etc... jirib