What I have is a non GUI environment. I have written a menu script for running simple diagnostics on my server(i.e. Ping, TraceRoute, IFConfig, NetConfig). What I am trying to create is a user that when they log in it will automatically run this menu script and if they try to break it(Ctrl+C) it will automatically log them out of the system. I have other scripts and files on this server that I do not want them to be able to get into. I have seen similar post but not exactly what I am looking for ... Please help a newb out
So here are my questions?:
1) How do I make the Script auto run?
(someone suggested pointing that users shell to the script instead of /bin/bash... but then they can't do anything... did I misunderstand them?)
2) How do I make it log them out if they try to break the script?
3) How do I lock them out of the rest of the system, but still allow them to run the commands above including manually changing the IP address of the server if necessary?
I know this is alot, but any help would be great... Thanks in advance!!