ws, static: Report "Permission denied" when pam_acct_mgmt fails.

Fixes #915
Closes #1256
Reviewed-by: Stef Walter <stefw@redhat.com>