When switching users with Su, the user is not available at present
[root@iZ28kbs8yb3Z ~]# su - redis
This account is currently not available.
The reason is that redis users are set to disable shell login
[root@iZ28kbs8yb3Z ~]# cat /etc/passwd|grep redis
redis:x:497:498:Redis Server:/var/lib/redis:/sbin/nologin
Use root to modify passwd file and delete/SBIN/nologin
Similar Posts:
- [Solved] SSH connect error: permission denied, please try again
- nginx: [emerg] getpwnam(“nginx”) failed [How to Fix]
- [Solved] #Creating Server TCP listening socket *:6379: bind: Address already in use
- [Solved] Forbid root, handle error sudo must be owned by uid 0
- [Solved] passwd: Authentication token manipulation error
- Add Samba user prompt failed to add entry for user
- git push error: RPC failed; HTTP 403 curl 22 The requested URL returned error: 403
- Gitlab 403 Forbidden error [How to Solve]
- How to Solve ra-28000 account being locked Error
- [Solved] Hadoop runs start-dfs.sh error: attempting to operate on HDFS as root