Hi
A quick and dirty way of regenerating without your changes to the system is.
0. Create a backup boot environment where you still can log in.
1. Be logged in as root.
2. backup the files "mv /etc/passwd{,.bak}" for /etc/group /etc/passwd
and /etc/shadow. use mv so the files are not present for the next step,
as pkg would try to update them otherwise as they are marked as
configuration files
3. run 'pkg fix -v' to generate new /etc/passwd /etc/group and
/etc/shadow files from the packages installed in the system image. pkg
should tell you exactly the actions it is going to take.
4. use useradd to add users again that you added manually.
Hope this helps
Greetings
Till
On 31/05/2022 12.53, hput via openindiana-discuss wrote:
Messing around beyond my capabilities I've managed to create a
situation where I cannot add a user:
useradd -m reader
UX: useradd: ERROR: Inconsistent password files. See pwconv(8).
Running `pwconv' seems not to do a thing.
I've jerked around with the files so much this morning I doubt I could really
recount all I've tried. (/etc/passwd /etc/opasswd /etc/group /etc/ogroup)
I know at one point I renamed /etc/passwd to see is pwconv would
rebuld it... no such thing.
This is oi just updated, running in a vboxvm and even though it
wouldn't be a disaster to just reinstall... I have done a fair bit of
work getting it ready before I became idiotised.
Is there some way to fix this short of reinstall?
_______________________________________________
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss
_______________________________________________
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss