Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Hello, I'm new at linux, and I'm trying to run a SSH-tunneling server for MySQL tunneling. When someone connects to my shell the user can do nothing, just see the information on my shell produced from a bash script. The problem is that I dont know how to 'freeze' the Terminal. Thank you.
sorry I'd be surprised if anyone can help you here without more information. Please tell us exactly what you are doing and what the problem is.
- What ssh command are you running for the tunnel?
- What do you mean by "someone conneects to my shell"?
- What do you mean by "'freeze' the Terminal"? (and is the captialization of "Terminal" supposed to signify something?)
- What is this bash script you refer to?
Theres is no command for the tunnel, its being produced by ssh,
When someone login into terminal witb his own credential
When someone connect into terminal, he can just ser my bash script displaying some Information, cant interact or press ctrl c for exitig the script
I refer to my own bash script located at profile.d
Forget about the tunnel thing, the point is: I want deny any user interaction with terminal.
Excellent, now you've stated what your problem is. There are a number of different ways to restrict user access to the system. Putting custom scripts in /etc/profile.d is probably not the best approach. I don't have any solutions off the top of my head (although it is trivial to stop ssh logins or _all_ logins for specific users), but putting the following into your favourite search engine should yield results