Lock failures now receive an extra message.
This commit is contained in:
@@ -1 +1,2 @@
|
||||
usermod: existing lock file /etc/passwd.lock without a PID
|
||||
usermod: cannot lock /etc/passwd; try again later.
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
usermod: existing lock file /etc/group.lock without a PID
|
||||
usermod: cannot lock /etc/group; try again later.
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
usermod: existing lock file /etc/shadow.lock without a PID
|
||||
usermod: cannot lock /etc/shadow; try again later.
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
usermod: existing lock file /etc/gshadow.lock without a PID
|
||||
usermod: cannot lock /etc/gshadow; try again later.
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
usermod: existing lock file /etc/group.lock without a PID
|
||||
usermod: cannot lock /etc/group; try again later.
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
usermod: existing lock file /etc/gshadow.lock without a PID
|
||||
usermod: cannot lock /etc/gshadow; try again later.
|
||||
|
||||
@@ -1 +1 @@
|
||||
userdel: user foo is currently logged in
|
||||
userdel: user foo is currently used by process <PID>
|
||||
|
||||
@@ -40,6 +40,7 @@ echo "======================================================================="
|
||||
cat tmp/userdel.err
|
||||
echo "======================================================================="
|
||||
echo -n "Check that there were a failure message..."
|
||||
sed -i -e "s/ [0-9]*$/ <PID>/" tmp/userdel.err
|
||||
diff -au data/userdel.err tmp/userdel.err
|
||||
echo "error message OK."
|
||||
rm -f tmp/userdel.err
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
userdel: existing lock file /etc/passwd.lock without a PID
|
||||
userdel: cannot lock /etc/passwd; try again later.
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
userdel: existing lock file /etc/group.lock without a PID
|
||||
userdel: cannot lock /etc/group; try again later.
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
userdel: existing lock file /etc/shadow.lock without a PID
|
||||
userdel: cannot lock /etc/shadow; try again later.
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
userdel: existing lock file /etc/gshadow.lock without a PID
|
||||
userdel: cannot lock /etc/gshadow; try again later.
|
||||
|
||||
Reference in New Issue
Block a user