The crude way....
Change the shell of user to the specific command /script in /etc/passwd.
On script exit the user will be logged out.
The refined way...
Use restricted shell with only a few scripts in user path.
Regards,
Mukund Deshmukh
Beta Computronics Pvt. Ltd.
Web site - http://betacomp.com
-----Original Message-----
From: Logu <[EMAIL PROTECTED]>
To: Linux-India <[EMAIL PROTECTED]>
Date: Thursday, September 20, 2001 9:27 PM
Subject: [LIH] Customised terminal
>Hi to all,
>Which script or file is sure to excute when a particular user logs-in by
any
>means. That is a user can login in the system console or remote terminal or
>he/she can su from some other logins.
>
>I want to retrict the user to a customised screen ater logging-in, like a
>router or switch configuration screen. They should not be able to use any
>other commands except what is given in the menu.
>
>I tried .bashrc, .bash_profiles but it is not getting excuted if the user
is
>switched from one user to other using su command.
>
>I am using Red Hat linux 7.1 and 2.2.19 kernel.
>
>-Logu
>
>
>
>
>_________________________________________________________
>Do You Yahoo!?
>Get your free @yahoo.com address at http://mail.yahoo.com
>
>
>_______________________________________________
>linux-india-help mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/linux-india-help
>
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help