You are here

[Solved] su: /bin/bash: Permission denied

Error message

Deprecated function: Optional parameter $input declared before required parameter $form_state is implicitly treated as a required parameter in include_once() (line 1439 of /usr/share/nginx/html/blog.headup.ws/htdocs/includes/bootstrap.inc).

New user created as:

groupadd mygroup
useradd -s /bin/bash -g myuser -m -k /dev/null myuser

When trying to log in:

[root@vserver~]# su - myuser
su: /bin/bash: Permission denied

Solution:

[root@vserver~]# chmod 755 /bin
[root@vserver~]# su - myuser
[myuser@vserver~]$