Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #183602
| From | RavenLX <ravenlx@sitesplace.net> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: How to gain control over the system? |
| Date | 2017-07-12 14:40 +0200 |
| Message-ID | <u2p5U-8f8-17@gated-at.bofh.it> (permalink) |
| References | <u165l-7NM-35@gated-at.bofh.it> <u1r06-3WX-7@gated-at.bofh.it> <u1t1T-591-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 07/09/2017 06:11 PM, Kaj Persson wrote: > Hi Jimmy, > Well, I did not follow your suggestion exactly, but as people has said, > the root account is already and always there, even it has not been > assigned a password. So, against my real whish, not to activate the root > account, I gave the command sudo passwd root, and entered a password. > And now I suppose I have burned my ships and have no way back... [Snip] To remove the root password so root can't log in again: sudo passwd -l root It'll report that the root password expiry has changed: from man passwd: -l, --lock Lock the password of the named account. This option disables a password by changing it to a value which matches no possible encrypted value (it adds a ´!´ at the beginning of the password). Note that this does not disable the account. The user may still be able to login using another authentication token (e.g. an SSH key). To disable the account, administrators should use usermod --expiredate 1 (this set the account's expire date to Jan 2, 1970). Users with a locked password are not allowed to change their password. [end of man entry] Now, nobody can log in as root. But, root account is still there if you need it. To get it back and give it a password: sudo passwd -u root sudo passwd root (Then type in a secure password for root.)
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How to gain control over the system? Kaj Persson <70147persson@telia.com> - 2017-07-09 00:10 +0200
Re: How to gain control over the system? Oflameo <oflameo2@gmail.com> - 2017-07-09 00:30 +0200
Re: How to gain control over the system? Fungi4All <fungilife@protonmail.com> - 2017-07-09 01:00 +0200
Re: How to gain control over the system? Anders Andersson <pipatron@gmail.com> - 2017-07-09 11:30 +0200
Re: How to gain control over the system? Dejan Jocic <jodejka@gmail.com> - 2017-07-09 12:00 +0200
Re: How to gain control over the system? davidson@freevolt.org - 2017-07-09 01:30 +0200
Re: How to gain control over the system? Fungi4All <fungilife@protonmail.com> - 2017-07-09 12:10 +0200
Re: How to gain control over the system? Richard Owlett <rowlett@cloud85.net> - 2017-07-09 13:50 +0200
Re: How to gain control over the system? Kaj Persson <70147persson@telia.com> - 2017-07-09 15:10 +0200
Re: How to gain control over the system? [a security-side-note] Eike Lantzsch <zp6cge@gmx.net> - 2017-07-09 16:00 +0200
Re: How to gain control over the system? [a security-side-note] Dejan Jocic <jodejka@gmail.com> - 2017-07-09 16:20 +0200
Re: How to gain control over the system? Fungi4All <fungilife@protonmail.com> - 2017-07-09 19:00 +0200
Re: How to gain control over the system? Kaj Persson <70147persson@telia.com> - 2017-07-09 19:10 +0200
Re: How to gain control over the system? Kaj Persson <70147persson@telia.com> - 2017-07-09 23:40 +0200
Re: How to gain control over the system? Felix Miata <mrmazda@earthlink.net> - 2017-07-10 01:40 +0200
Re: How to gain control over the system? Kaj Persson <70147persson@telia.com> - 2017-07-11 22:40 +0200
Re: How to gain control over the system? David Wright <deblis@lionunicorn.co.uk> - 2017-07-11 23:00 +0200
Re: How to gain control over the system? Greg Wooledge <wooledg@eeg.ccf.org> - 2017-07-11 23:10 +0200
Re: How to gain control over the system? Felix Miata <mrmazda@earthlink.net> - 2017-07-12 03:50 +0200
Re: How to gain control over the system? Greg Wooledge <wooledg@eeg.ccf.org> - 2017-07-12 14:30 +0200
Re: How to gain control over the system? Kaj Persson <kape_fin@algonet.se> - 2017-07-13 12:30 +0200
Re: How to gain control over the system? <tomas@tuxteam.de> - 2017-07-13 13:20 +0200
Re: How to gain control over the system? Fungi4All <fungilife@protonmail.com> - 2017-07-13 14:20 +0200
Re: How to gain control over the system? <tomas@tuxteam.de> - 2017-07-13 15:20 +0200
Re: How to gain control over the system? tomas@tuxteam.de - 2017-07-13 15:20 +0200
Re: How to gain control over the system? David Wright <deblis@lionunicorn.co.uk> - 2017-07-13 16:30 +0200
Re: How to gain control over the system? Jimmy Johnson <field.engineer@gmail.com> - 2017-07-09 22:30 +0200
Re: How to gain control over the system? Kaj Persson <kape_fin@algonet.se> - 2017-07-10 00:40 +0200
Re: How to gain control over the system? Jimmy Johnson <field.engineer@gmail.com> - 2017-07-10 00:50 +0200
Re: How to gain control over the system? Joel Rees <joel.rees@gmail.com> - 2017-07-10 03:10 +0200
Re: How to gain control over the system? Dejan Jocic <jodejka@gmail.com> - 2017-07-10 10:00 +0200
Re: How to gain control over the system? RavenLX <ravenlx@sitesplace.net> - 2017-07-12 14:40 +0200
Re: How to gain control over the system? <tomas@tuxteam.de> - 2017-07-12 15:30 +0200
Re: How to gain control over the system? RavenLX <ravenlx@sitesplace.net> - 2017-07-16 15:50 +0200
Re: How to gain control over the system? <tomas@tuxteam.de> - 2017-07-16 16:50 +0200
csiph-web