On 11/12/10 5:46 PM, Srija wrote: > Hi , > > It will be really appreciated and helpful if anybody can give me some > solution for the below mentioned process: > > I have developed a rule in our linux environment for TMOUT variable. > > I set it as readonly variable so that nobody can change it. The variable > is set in /etc/profile > > The problem is, if an user login , as himself , he can't change TMOUT > parameter until he changes the shell. If the user changes the shell , it > can be modified. > > I need a solution, to protect the TMOUT parameter not to be modified .
Another option would be to compile your own shell where TMOUT can only be defined in the /etc/profile.d files and users cannot change it. Something similar to a restricted shell might be ideal, but adding TMOUT to the list of variables you restrict from being changed. http://www.faqs.org/docs/bashman/bashref_75.html /Brian/ _______________________________________________ rhelv5-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/rhelv5-list
