Difference between revisions of "Odroid C1+ setup"

From MyLabWiki
Jump to: navigation, search
(Created page)
 
(Added debian setup info)
Line 5: Line 5:
  
  
 +
== Add new user and disable root login ==
  
 +
Add new user who can sudo:
 +
 +
  $ adduser USER
 +
  $ apt-get install sudo
 +
  $ usermod -a -G sudo USER
 +
 +
Logout and login again as USER to have permissions take effect.
 +
 +
Disable root loging through SSH:
 +
 +
  /etc/ssh/sshd_config:
 +
  PermitRootLogin no
 +
 +
Optionally, disable root login alltogether (musty have sudoer user setup):
 +
 +
  $ sudo passwd -l root
 +
 +
Re-enable root login:
 +
 +
  $ sudo passwd root
 +
 +
 +
 +
[[Category:Debian]]
 
[[Category:Odroid]]
 
[[Category:Odroid]]

Revision as of 23:26, 7 September 2015

Minimal Debian Image


Add new user and disable root login

Add new user who can sudo:

 $ adduser USER
 $ apt-get install sudo
 $ usermod -a -G sudo USER

Logout and login again as USER to have permissions take effect.

Disable root loging through SSH:

 /etc/ssh/sshd_config:
 PermitRootLogin no

Optionally, disable root login alltogether (musty have sudoer user setup):

 $ sudo passwd -l root

Re-enable root login:

 $ sudo passwd root