My Continuing Failed Restore Issue Saga

Karl Auer kauer at biplane.com.au
Sun Jan 22 21:46:42 UTC 2017


On Sun, 2017-01-22 at 15:20 -0600, Mike Hughes wrote:
> Now what are the commands to add a new user.

Create a new user "fred":

   sudo adduser fred

Put fred into the sudo group:

   sudo adduser fred sudo

Set fred's password:

   sudo passwd fred

But you will still have to copy the lines I mentioned in my previous
email.

> Then how will I change my password for Macmike and
> set sudo for both? 

Once you have set up fred, reboot without the LiveCD and log in as fred
to your old system.

fred will have sudo rights if you've followed my suggestions, so you
can then set Macmike's password:

   sudo passwd Macmike

Then check whether Macmike has sudo privileges:

   grep sudo /etc/group

... if you don't see "Macmike' in the result of that command, do this:

   sudo adduser Macmike sudo

Now you should be able to log out as fred and log back in as Macmike.
Double-check that Macmike has sudo privileges:

   sudo ls

If that gets you a file list, you are good to go and you can remove
fred:

   sudo deluser fred

Regards, K.

PS: It's good form to keep these conversations on the mailing list, so
that everyone benefits from the discourse. For that reason I have
replied to the list, not to you.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)
http://www.biplane.com.au/kauer
http://twitter.com/kauer389

GPG fingerprint: A52E F6B9 708B 51C4 85E6 1634 0571 ADF9 3C1C 6A3A
Old fingerprint: E00D 64ED 9C6A 8605 21E0 0ED0 EE64 2BEE CBCB C38B






More information about the ubuntu-users mailing list