This account is currently not available occurs when a linux user switches over.

Source: Internet
Author: User

In linux today, the system prompts "This account is currently not available", indicating that the user is invalid. Later, I checked it online and found that the user's shell is forbidden to log on, you only need to enable shell logon.

Solution:
For example, I encountered a problem when I was using su apache.
Use vi to view apache account information
# Cat/etc/passwd | grep apache
Find itsShellYes"/Sbin/nologin", You need to change"/Bin/bash"
# Vipw/etc/passwd
Save and exit after modification.

In this case, su apache can easily be used.

Command record:

Login as: root

Root@10.0.0.10's password:

[Root @ apache-2 ~] # Vi/etc/passwd

[Root @ apache-2 ~] # Chown-R apache: apache/var/www/BeeEye/

[Root @ apache-2 ~] # Vi/usr/local/apache/conf/httpd. conf

[Root @ apache-2 ~] #/Usr/local/apache/bin/apachectl stop

[Root @ apache-2 ~] #/Usr/local/apache/bin/apachectl start

[Root @ apache-2 ~] # Reboot

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.