Skip to main content
10 events
when toggle format what by license comment
Dec 19, 2017 at 14:53 vote accept Neil_UK
Dec 19, 2017 at 14:50 history tweeted twitter.com/StackUnix/status/943131498185666561
Dec 19, 2017 at 12:22 comment added Neil_UK @terdon to confirm, `Defaults rootpw' is present in the file. If I remove that now, will that brick anything? Will it give me single password access to my user account, sudo and su? Should I disable the root account subsequently? I don't have ssh server keys set up on this machine.
Dec 19, 2017 at 12:17 history edited Neil_UK CC BY-SA 3.0
deleted 2 characters in body
Dec 19, 2017 at 12:17 comment added terdon OK, in that case, please show us the output of sudo grep -E 'rootpw|runaspw' /etc/sudoers. If either of those is set in that file, you would want to remove them as ilkkachu mentions below. Then you can decide if you also want to deactivate the root account. And no, the command you show won't do that, see man passwd (and not password).
Dec 19, 2017 at 12:11 comment added Neil_UK @terdon both sudo ls and su only respond to the one that's set for root.
Dec 19, 2017 at 12:07 answer added ilkkachu timeline score: 6
Dec 19, 2017 at 12:05 comment added terdon First, let's find out what the current situation is. Forget the GUI for a second. Open a terminal and run: i) sudo ls and ii) su. Each of those commands should ask for a password. The sudo one should ask for your user's password, the one you use when logging in and the su one should ask for the one you set up for root. Can you confirm that this is indeed what's going on?
Dec 19, 2017 at 11:55 review First posts
Dec 19, 2017 at 12:14
Dec 19, 2017 at 11:55 history asked Neil_UK CC BY-SA 3.0