Bash exec: 63: id: not found when users log in into jail
I'm administering a student server where students get login through Ssh into their own folder.
The students are jailed in a directory resembling a filesystem on it's own with only strictly checked commands to be executed as a security precaution. Everything works except for a minor inconvenience: when jailed students log in they first get a: Quote:
I obviously want to get rid of that annoying error message, but don't know what triggers that. The group file is present in /etc together with the passwd file. |
Find the difference by executing 'locate id' inside and outside the chroot?
|
Outside the jail, "locate id" showed a huge list with every file owned by all users (mostly accounts in the jail), while executing that command within the jail reveals that the command "locate" isn't present in the jail.
I'll make that command available in the jail and see if that solves it. *edit* nope doesn't fix the problem |
I did some searching at what "groups" actually does, it gives a list of all the groups a user is present. It might be that it doesn't like something in there. Going to check it out.
|
Quote:
Quote:
Quote:
|
"Which id" outside the jail returns /usr/bin/id
and inside the jail "which" isn't even present. So I guess that "id" is infact a command rather something strange in some configuration file, that resolves some confusion since I was looking for a wrong problem. |
Quote:
Thank you so very much, it was in fact the absence of the "id" command in the jail that returns the error. It was kind of a confusing error since I was looking for some identity error rathen than a missing command. But I'm very grateful and so will new students too who would otherwise be a little scared from the error message alway poping up. :) |
All times are GMT -5. The time now is 01:11 PM. |