Skip to content

Commit

Permalink
machinekit: allow root user have passwd: root
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
  • Loading branch information
RobertCNelson committed Apr 21, 2015
1 parent deb2660 commit c22052b
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions target/chroot/machinekit-wheezy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,6 @@ setup_desktop () {

#echo "CAPE=cape-bone-proto" >> /etc/default/capemgr

#root password is blank, so remove useless application as it requires a password.
if [ -f /usr/share/applications/gksu.desktop ] ; then
rm -f /usr/share/applications/gksu.desktop || true
fi

#lxterminal doesnt reference .profile by default, so call via loginshell and start bash
if [ -f /usr/bin/lxterminal ] ; then
if [ -f /usr/share/applications/lxterminal.desktop ] ; then
Expand Down Expand Up @@ -492,12 +487,8 @@ other_source_links () {
}

unsecure_root () {
root_password=$(cat /etc/shadow | grep root | awk -F ':' '{print $2}')
sed -i -e 's:'$root_password'::g' /etc/shadow

if [ -f /etc/ssh/sshd_config ] ; then
#Make ssh root@beaglebone work..
sed -i -e 's:PermitEmptyPasswords no:PermitEmptyPasswords yes:g' /etc/ssh/sshd_config
sed -i -e 's:UsePAM yes:UsePAM no:g' /etc/ssh/sshd_config
fi

Expand Down

0 comments on commit c22052b

Please sign in to comment.