Difference between revisions of "AddingUsers:RPi"

From SingletonMillerWiki
Jump to: navigation, search
Line 1: Line 1:
[[Category:RaspberryPi]]
+
[[Category:RaspberryPi]] {{REVISIONUSER}}
  
 
== Create a new user ==
 
== Create a new user ==

Revision as of 04:30, 4 June 2012

Martin

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.