Sponsored Content
Full Discussion: deboucha28
Top Forums UNIX for Dummies Questions & Answers deboucha28 Post 25355 by RTM on Monday 29th of July 2002 11:21:10 AM
Old 07-29-2002
If you are booting off of cdrom, then / is the last place you want to be. You are mounting the 'problem' disk as a different filesystem. You will want to edit the shadow file in /a/etc, not /etc. Attempting to vi /etc/shadow will do nothing since
1. it's not the one you need
2. a cdrom is read-only.

Do this:
ok boot cdrom -s
Once you are booted with a # prompt -
# mount /dev/dsk/c0t0d0s0 /a
(If c0t0d0s0 is your boot device - if not, change to the appropriate disk)
#cd /a/etc
#TERM=vt100; export TERM
#vi shadow
In the shadow file, remove the second field in the root entry (should be the top one). The fields will be separated by :.

Save the file and then check that it worked by
# head /a/etc/shadow
You should see something like this -


# umount /a
# init 0
ok boot -s
This will boot single user off your disk - it will either send you straight to a # prompt or ask for a password. If it asks for a password, hit return. If you get the # prompt, you did it.

If not, then you didn't
1. follow the steps.
2. edit the correct file or you don't use a shadow file
3. didn't mount the true boot device to /a when booted from cdrom.
SYSTEMD-TTY-ASK-PASSWORD-AGENT(1)			  systemd-tty-ask-password-agent			 SYSTEMD-TTY-ASK-PASSWORD-AGENT(1)

systemd-tty-ask-password-agent - List or process pending systemd password requests SYNOPSIS
systemd-tty-ask-password-agent [OPTIONS...] [VARIABLE=VALUE...] DESCRIPTION
systemd-tty-ask-password-agent is a password agent that handles password requests of the system, for example for hard disk encryption passwords or SSL certificate passwords that need to be queried at boot-time or during runtime. systemd-tty-ask-password-agent implements the Password Agents Specification[1], and is one of many possible response agents which answer to queries formulated with systemd-ask-password(1). OPTIONS
The following options are understood: --list Lists all currently pending system password requests. --query Process all currently pending system password requests by querying the user on the calling TTY. --watch Continuously process password requests. --wall Forward password requests to wall(1) instead of querying the user on the calling TTY. --plymouth Ask question with plymouth(8) instead of querying the user on the calling TTY. --console Ask question on /dev/console instead of querying the user on the calling TTY. -h, --help Print a short help text and exit. --version Print a short version string and exit. EXIT STATUS
On success, 0 is returned, a non-zero failure code otherwise. SEE ALSO
systemd(1), systemctl(1), systemd-ask-password-console.service(8), wall(1), plymouth(8) NOTES
1. Password Agents Specification https://www.freedesktop.org/wiki/Software/systemd/PasswordAgents systemd 237 SYSTEMD-TTY-ASK-PASSWORD-AGENT(1)

Featured Tech Videos

All times are GMT -4. The time now is 04:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy