su: This account is currently not available.

This is a wiki page. Be bold and improve it!

If you have any questions about the content on this page, don't hesitate to open a new ticket and we'll do our best to assist you.

# su apache ./script
This account is currently not available.

It's because in /etc/passwd is set as a nologin user:

apache:x:81:81:added by portage for apache:/var/www:/sbin/nologin

and /sbin/nologin returns the error message.
Simply speaking, su isn't compatible with /usr/sbin/nologin.

What you want to do, instead, is run the command under the given user using sudo:

$ sudo -u apache ./script