You are not logged in.
Can anybody post a copy of these for arch?
Offline
https://projects.archlinux.org/svntogit … filesystem
But you don't want to do that. Look at your /etc/group- and /etc/passwd- (with dashes) — these are copies made before running {user,group}{add,mod,del}.
Offline
They're part of the filesystem package... you can extract them yourself...
Offline
They're already on your computer. You can "unzip" them from "/var/cache/pacman/pkg/filesystem-*.xz".
Alternatively you can download them from here: https://projects.archlinux.org/svntogit … filesystem
Offline
https://projects.archlinux.org/svntogit … filesystem
But you don't want to do that. Look at your /etc/group- and /etc/passwd- (with dashes) — these are copies made before running {user,group}{add,mod,del}.
I actually edited them directly due to my mistake (should have been /srv/http/etc/group for example).
Anyway thanks for your help guys.
Offline
They can also be regerated from the (g)shadow files, which would prevent your from having to 're-add' your user or any other changes you have made.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Ok I've got the files back. I added one user after installation. Should I add the user again?
Offline
They can also be regerated from the (g)shadow files, which would prevent your from having to 're-add' your user or any other changes you have made.
Sorry I missed your reply initially. How do I go about regenerating them from this file?
Offline
`man pwcongv`
EDIT: upon rechecking I'm not sure if these tools actualy work in the needed direction: they can regenerate (g)shadow from passwd/group, I was under the impression they can do the opposite conversion as well, but I'm not too sure now that I reread the man page.
Last edited by Trilby (2013-07-11 19:20:40)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
`man pwcongv`
EDIT: upon rechecking I'm not sure if these tools actualy work in the needed direction: they can regenerate (g)shadow from passwd/group, I was under the impression they can do the opposite conversion as well, but I'm not too sure now that I reread the man page.
You cannot really recreate them. shadow contains only the username and some passwordinfo, not shell, homedir and also no gids and uids.
The only way to really get to the old state is to use the backup (/etc/group- /etc/gshadow- /etc/passwd- /etc/shadow-) or extract the original files and readd all users with their userids manually.
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
Just a small tip for the future, since I have done the exact same thing as you did once. Keep your /etc in a git repo, that way you can easily revert any changes or accidentally deleted files. Just remeber to "chmod 700 .git" so that regular users on your system can't get hold of your shadow file.
Offline