How to limit user access to their Home but still be able to run commands on CentOS
Well, I am running a server and I want to allow more people on it, but security is my number one priority, I have already (almost) made root folders 100% for root only and I also want all other parts to have that.
I have tried that, but it gives a lot errors and also on httpd. I have tried multiple combinations but they all fail. Is there any way how? |
What exactly you tried to set the permission for other users? It would be good if you give more information what you have to achieve.
|
Quote:
Please answer blue_print's question so that we can help you create a proper solution for your goals. |
Quote:
Quote:
I run scripts there as root and other users do not need access there, I have given it all 700 access so only the root user can access it. So how to allow all users to execute all files but not allow them to read .conf files and config.php files and all sorta files like those. |
The solution
What you REALLY want is to have your account and the root account normal, and have all other USER accounts in chroot mode.
How you implement that depends upon how users access this machine. OpenSSH has, in recent versions, a configuration that allows you to effectively chroot users using only the power of OpenSSH. The more general solution is to actually set up a chroot jail, as this is effective even if their access is console or other non-ssh access applications. How acceptable these solutions are to you may depend upon why users need to access this box in the first place, and what they should be able to do on the box. |
All times are GMT -5. The time now is 06:25 AM. |