Skip to content
This repository has been archived by the owner on Aug 14, 2023. It is now read-only.

Commit

Permalink
Revert "Set useradd default shell to bash"
Browse files Browse the repository at this point in the history
This reverts commit 554cfdd.
Strange behaviour: useradd creates user without a shell which defaults
to /bin/sh.
  • Loading branch information
StefanScherer committed Mar 25, 2018
1 parent 3b67bd8 commit ee278af
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
3 changes: 0 additions & 3 deletions builder/chroot-script.sh
Expand Up @@ -178,9 +178,6 @@ proc /proc proc defaults 0 0
/dev/mmcblk0p2 / ext4 defaults,noatime 0 1
" > /etc/fstab

# Fix default shell for new users created with useradd
sed -i 's,SHELL=/bin/sh,SHELL=/bin/bash,' /etc/default/useradd

# as the Pi does not have a hardware clock we need a fake one
apt-get install -y \
--no-install-recommends \
Expand Down
Expand Up @@ -49,9 +49,3 @@
it { should be_mode 644 }
it { should be_owned_by 'pirate' }
end

describe file('/etc/default/useradd') do
it { should be_file }
it { should be_owned_by 'root' }
its(:content) { should contain /SHELL=\/bin\/bash/ }
end

0 comments on commit ee278af

Please sign in to comment.