Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm currently using CentOS 6 on a VPS (openVZ).

I just created a user stunnel_user and group stunnel_grp to run stunnel on some nobody:nogroup.

I changed the shell of the stunnel_user to /sbin/nologin to make it safe.

But after changing the users's shell, whenever I try to run the command as stunnel_user (in root!) using:

runuser -l stunnel_user -c stunnel
sudo -u stunnel_user -c stunnel

or editing the stunnel.conf file to have:


I get:

"this account is currently not available"

(also, I tried using su --shell=/bin/bash --session-command="stunnel" stunnel_user, but this exits immediately)

Does anyone know what the problem is?

share|improve this question

Sounds like that account is locked, /var/log/secure may hold answers. If reading through PAM configs isn't your idea of fun, a easy fix to try is just to set a password on the account.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.