Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #241300
| From | Stanislav Vlasov <stanislav.v.v@gmail.com> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: dead lock |
| Date | 2021-10-14 16:30 +0200 |
| Message-ID | <D89U6-3Rx-5@gated-at.bofh.it> (permalink) |
| References | <D88v0-2T1-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
2021-10-14 17:54 GMT+05:00, Pierre Frenkiel <pierre.frenkiel@gmail.com>: > hi > After a Debian install on my amd64 laptop, I'm faced to what looks like > a beautiful dead lock: > I wanted to set a root account, but that was refused because I'm not > in /etc/sudoers, and to put me in this file, I need root privilege! > I suppose that there is a solution, but I couldn't find it. > Any idea? My standard actions in such situations (unknown root password + no sudo rights): A) boot from livecd, mount root partition into /mnt, chroot /mnt, passwd, umount /mnt, reboot from hdd. or B) at boot add line to kernel parameters: init=/bin/sh after boot at prompt: mount / -o remount,rw passwd # change root password sync; sync mount / -o remount,ro and reboot (may be via reset button or power switch) -- Stanislav
Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread
dead lock Pierre Frenkiel <pierre.frenkiel@gmail.com> - 2021-10-14 15:00 +0200
Re: dead lock Greg Wooledge <greg@wooledge.org> - 2021-10-14 15:20 +0200
Re: dead lock Keith Bainbridge <keithrbaugroups@gmail.com> - 2021-10-16 06:10 +0200
Re: dead lock Greg Wooledge <greg@wooledge.org> - 2021-10-16 15:40 +0200
Re: dead lock Keith Bainbridge <keithrbaugroups@gmail.com> - 2021-10-17 09:00 +0200
Re: dead lock Peter Ehlert <pb21a@sdi-baja.com> - 2021-10-14 15:40 +0200
security of debian default sudoers file (was: dead lock) Gregor Zattler <telegraph@gmx.net> - 2021-10-17 11:50 +0200
Re: security of debian default sudoers file (was: dead lock) Keith Bainbridge <keithrbaugroups@gmail.com> - 2021-10-17 12:20 +0200
Re: dead lock Stanislav Vlasov <stanislav.v.v@gmail.com> - 2021-10-14 16:30 +0200
csiph-web