I have a tiny shell in C which does nothing but print “Hello, im a shell\n”.
Everytime I try to login johndoe the default way i get Login failed, and using sudo su johndoe gives me exactly mctrl: Permission denied.
Am i missing something simple? What does bash have which i dont =( ?
Update1: I forgot to specify the absolute path naming the shell. however the error still occours.
Updatate2[solved]: No links are allowed for shells, and should be in /bin/ or some other directory with respect!
PS: The shell will be given users to control their minecraft servres in a simple way through ssh, or give adminstration password to get into bash.
The first thing that I would check would be file and directory permissions. Does
johndoehave access to the shell executable (and all its parent directories), and is the “execute” permission set correctly?If you change
johndoe‘s shell tobash, are you able to log in asjohndoeand manually execute your custom shell?