hi gentoo-user,
for a project I need to write a programm that can communicate over ssh and routes the input to com-port and vice versa. the programm has to have alittle logic for doing timemanagement (one user at a time and such). since it is required to direct all com-port comunication to ssh, I want to use openssh for that. but I don't want to allow any user to get into a shell like bash to mess with the system or do anything. a successfully logged user should only be able to use my program as shell, so that he/she has only my predefined/programmed commands to use.
is this entirely possible?
Yes.
and how?
Look for a line similar to this in your /etc/passwd that has the user's name.
agaffney:x:1000:100::/home/agaffney:/bin/bash
Change the last part (/bin/bash) to the full path of your program. Be sure to add the full path of your program to /etc/shells also.
-- Andrew Gaffney
-- [EMAIL PROTECTED] mailing list