Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Commit

Permalink
Force login shell when running useradd
Browse files Browse the repository at this point in the history
This sets PATH to something reasonable.
  • Loading branch information
Dmitriy Kalinin and Pieter Noordhuis committed Mar 18, 2013
1 parent f698fcb commit 872968b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion warden/root/linux/skeleton/setup.sh
Expand Up @@ -90,7 +90,7 @@ else
fi

# Add vcap user if not already present
$(which chroot) mnt env -i /bin/bash <<-EOS
$(which chroot) mnt env -i /bin/bash -l <<-EOS
if ! id vcap > /dev/null 2>&1
then
useradd -mU -u $user_uid -s /bin/bash vcap
Expand Down

0 comments on commit 872968b

Please sign in to comment.