Search Results

Search: Posts Made By: shiek.kaleem
6,161
Posted By Corona688
As long as you're OK with them re-enabling it,...
As long as you're OK with them re-enabling it, you can put this in root's ~/.profile or ~/.bashrc or whatever equivalent they use.

alias rm=false
set -f

But this will probably seriously...
6,161
Posted By achenle
If the users have root access, you really can't...
If the users have root access, you really can't stop them from doing anything.

Requiring everyone to have root access is a bad design. Do you have a bug tracking system? Enter a bug about how...
6,161
Posted By zaxxon
In this case you could think about some...
In this case you could think about some workarounds:
You could rename the binary for rm so that only you know it's name, though all places (scripts, cronjobs, etc.) where it is being called will...
6,161
Posted By Subbeh
In addition to what zaxxon said, you could rename...
In addition to what zaxxon said, you could rename the rm binary and create an alias instead that handles the command and sets custom limitations to it in a script pointing to the renamed binary.
...
6,161
Posted By Corona688
You are in a bad situation. You cannot prevent...
You are in a bad situation. You cannot prevent root from being root.

Why does your application need root? Cannot it be encapsulated somehow?

An alias can help, but that will only work...
6,161
Posted By zaxxon
Split the environment. Have the code changes...
Split the environment. Have the code changes happen on a development server and implement some kind of checkin/transfer to bring the code to the production server.
6,161
Posted By jim mcnamara
What everyone is saying: 1. when your...
What everyone is saying:

1. when your system permissions are correct, and the average user is not logged in as root, things will be fine.

2. You cannot anticipate every command that could...
6,161
Posted By Corona688
What about rm -rf ../* when you're one dir up...
What about rm -rf ../* when you're one dir up from root? What about /bin/rm -rf ../* ? What about cd / ; rm -r * ? There are thousands of possible permutations.
6,161
Posted By gacanepa
I assume you're concerned over this so that...
I assume you're concerned over this so that people can't mess up your system. Actually I don't believe it's possible to do what you want for 2 reasons:
1) rm -rf *: this command deletes all files /...
Forum: Red Hat 04-26-2013
2,712
Posted By bitlord
The program could most likely be setup not to not...
The program could most likely be setup not to not email you. The email is to warn you about what the program is about to do. It would be bad if the program is changing things in the middle of a...
Forum: Red Hat 04-25-2013
2,712
Posted By bitlord
I would setup a program like monit, or conary....
I would setup a program like monit, or conary. Basically these are programs that will set file permissions or setting back to what they are where. If your core files are changed from the baseline,...
90,311
Posted By Neo
User Guide: Posting in the Emergency Forum
Emergency UNIX and Linux Support !! Help Me! Forum (Request Urgent Help) (https://www.unix.com/emergency-unix-linux-support-help-me/)

README FIRST: How to Request Emergency or Urgent Help:


...
Showing results 1 to 12 of 12

 
All times are GMT -4. The time now is 03:53 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy