Date: Thu, 28 Dec 1995 08:29:23 -0700 From: "Mark G. M. O'Lear" <Mark.Olear@Colorado.EDU> To: Maksim Stolyarov <mns@td.lpi.ac.ru> Cc: questions@freebsd.org Subject: Re: Help! Problem with root shell :( Message-ID: <30E2B7D3.BA9@Colorado.EDU> References: <AGXCbume18@td.lpi.ac.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
Type 'cat /etc/fstab'
you will see something like:
/dev/wd0s3b none swap sw 0 0
/dev/wd0a / ufs rw 1 1
/dev/wd0s2e /usr ufs rw 1 1
proc /proc procfs rw 0 0
find the line with the / in the second column
(/dev/wd0a / ufs rw 1 1
in this example)
type 'mount /dev/wd0a /'
(or whatever the first two columns of your line says)
this will re-mount the / partition as rw.
Now you can do whatever you want to do with rw access.
Mark O'Lear
Mark.Olear@Colorado.EDU
Maksim Stolyarov wrote:
> Accidentally I've changed root shell to *non-existent* one.
> vipw honestly warned about it. I stupidly missed the event.
> Evidently I can not login neither as root nor as su now.
> I rebooted the box into single mode (boot -s) in oder to
> correct my mistake with vipw. BUT
>
> In single mode / is mounted in my system as readonly! And
> I can do nothing with ``writable tools'' like vipw.
>
> Ideas? What should I change for mounting / as RW in single mode?
>
> Please send mail to mns@lpi.ac.ru because I can not even
> start my home uucp to get mails (including FBSD ones) from
> my Institute :(
>
> Specifics: FreeBSD 2.1 (great System, really)
>
> Thank you in advance, best wishes,
>
> Maksim.
> ---
> Maksim N. Stolyarov -> mns@lpi.ac.ru <-
> Department of Theoretical Physics,
> Lebedev Physical Institute, RAS
> Leninskii 53, 117924, Moscow, Russia
> fax: +7(95)135-8533, tel: +7(95)132-6024
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?30E2B7D3.BA9>
