Just ran an update on my PI2 installation. Quite some stuff incl. a new
kernel arrived.
The problem. No ssh root login after the update anymore! I had to
restore a backup-image.
Most people login via root and will have a serious problem with this
update.
Workaround:
NOTE:
/etc/ssh/sshd_config needs to be changed right after the update and
before you reboot!!!!
Code:
--------------------
echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
--------------------
Safe solution:
Skip above workaround.
I'd recommend to add another user to the image to avoid the root
ssh-login - which is a security issue - problem in the future:
as root:
Code:
--------------------
useradd -m -g wheel -s /bin/bash archie
passwd archie
sed -i 's/^#\s*\(%wheel\s*ALL=(ALL)\s*ALL\)/\1/' /etc/sudoers
--------------------
First we add the user with home directory /home/archie and add him to
group wheel. Than we assign a password, otherwise archie can't login via
ssh.
The last command will grant root or sudo privileges to users of group
"wheel". By default only root belongs to that group.
This IMO should prevent from lockouts in the future, since you now can
also login as "archie".
When switching to root from archie via sudo you still have to give a
password. That'll make it safe.
Again. If you want to avoid root logins via ssh you just skip above
workaround.
::: ' Touch Toolbox and more' (http://soundcheck-audio.blogspot.com) :::
by soundcheck
------------------------------------------------------------------------
soundcheck's Profile: http://forums.slimdevices.com/member.php?userid=34383
View this thread: http://forums.slimdevices.com/showthread.php?t=101624
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix