Thanks to all of you who responded.
There were 3 good suggestions:
1) /bin/false
2) using this program as shell:
--------------------------------------------------------
#include <unistd.h>
/* false_shell.c */
/* print a message and kicks the user out */
void main (void) {
printf("\n\nYou do not have access to this machine.\n\n");
sleep (5); /* let them read message for 5 seconds */
return; /* exit program */
}
--------------------------------------------------------
3)using an utility called tcp wrappers.
for the 1 & 2 i have to execute: mkpasswd /etc/passwd
my original message was:
> From: Hicham JAOUHARI [SMTP:h.jaouhari_at_digitem.net.ma]
> Sent: Wednesday, May 12, 1999 3:47 AM
> To: tru64-unix-managers_at_ornl.gov
> Subject: Howto to grant access to some users?
>
> Hi managers,
> i'd like to grant telnet and rlogin access to just 4 users
in my
> tru64 machine (4.0d), what i did is delete shell to the others
users
> from passwd.
> but when i try: users without shell can access to my
machine!!!!,
> have i forgot something or there are others way to proceed?
>
> thanks.
>
> Regards,
> Hicham JAOUHARI
Received on Wed May 12 1999 - 19:18:35 NZST