Skip to content

Commit

Permalink
Fix nologin_ignored test for accounts_umask_interactive_users
Browse files Browse the repository at this point in the history
  • Loading branch information
mpurg committed Feb 15, 2024
1 parent bbe71eb commit 89951fa
Showing 1 changed file with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#!/bin/bash

USER="cac_user"
useradd -m -s /sbin/nologin $USER
echo "umask 022" >> /home/$USER/.bashrc
for shell in "/sbin/nologin" \
"/usr/sbin/nologin" \
"/bin/false" \
"/usr/bin/false"; do

user=cac_user${shell//\//_}
useradd -m -s $shell $user

echo "umask 022" >> /home/$user/.bashrc
done

0 comments on commit 89951fa

Please sign in to comment.