Thursday, December 12, 2019

Linux OS user is facing issue "This account is currently not available"


Linux OS User issue:


Fix for any OS user facing below issue:

[root@stand ~]# su - tomcat
This account is currently not available.

[root@stand ~]# cat /etc/passwd | grep tomcat
tomcat:x:91:91:Apache Tomcat:/usr/share/tomcat6:/sbin/nologin

Above /sbin/nologin is issue , it means no shell assigned to user:
Check the shell using below command.

[root@stand ~]# cat /etc/shells
/bin/sh
/bin/bash
/sbin/nologin
/bin/tcsh
/bin/csh
/bin/dash
/bin/zsh
/bin/mksh
/bin/ksh

[root@stand ~]# chsh -s /bin/bash tomcat
Changing shell for tomcat.
Shell changed.

[root@stand ~]# su - tomcat
-bash-4.1$


Thanks,

No comments:

Post a Comment