about summary refs log tree commit diff stats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/makeuser2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/makeuser b/bin/makeuser
index 73b0fd4..e4dc069 100755
--- a/bin/makeuser
+++ b/bin/makeuser
@@ -19,7 +19,7 @@ usage() {
 
 [[ $(id -u) != 0 ]] && error_exit "you must be the superuser to run this script."
 
-USERLIST=$(ls /home)
+USERLIST=$(</etc/passwd cut -d ":" -f1)
 if [[ $USERLIST == *$1* ]]; then
     error_exit "User already exists!"
 fi