Difference between revisions of "AddingUsers:RPi"

From SingletonMillerWiki
Jump to: navigation, search
Line 39: Line 39:
 
at the same time comment out <code> pi</code>'s super powers. Change
 
at the same time comment out <code> pi</code>'s super powers. Change
  
:: <code> pi ALL=(ALL) ALL</code>
+
:: <code> pi ALL=(ALL) ALL</code>
 
  to  
 
  to  
:: <code> #pi ALL=(ALL) ALL</code>.
+
:: <code> #pi ALL=(ALL) ALL</code>.
  
 
Save the file, press <code>Ctrl-K,X</code> which should result in
 
Save the file, press <code>Ctrl-K,X</code> which should result in

Revision as of 14:56, 3 June 2012

Resources

Create a new user

The following notes assume you've setup you RPi and are logged in with an existing user who has sudo powers.

sudo adduser <newusername>

Here <newusername> means select you own username for example. jack.

Follow the on screen instructions to enter and confirm the users password, the additional information may be left blank by just hitting the return key.

Test the new user

Logout of the current user

logout

At the prompt login using <newusername> and the password.

Super user powers

The new user does not have super user powers. sudo powers can be authorised only by an existing sudo user.

Logout, and back in as pi.

sudo visudo

Gives a CLI editor view of the sudoer configuration file using Joe's own Editor.

Add following Line under the "root ALL=(ALL) ALL" Line:

<newusername> ALL=(ALL) ALL

at the same time comment out pi's super powers. Change

pi ALL=(ALL) ALL
to 
#pi ALL=(ALL) ALL.

Save the file, press Ctrl-K,X which should result in

File /etc/sudoers.tmp saved

One the next reboot <newusername> will have and pi will no longer have sudo powers.