07-29-2013
Quote:
Originally Posted by
blackrageous
Why not just move the rm command and redefine it as a script then you can issue "please verify your command". Of course you will want to be careful, since now rm expects input in the case you're trying to exercise care. Anything that is scripted should run the old version of rm.
Such a fundamental modification would affect every user on the system, including startup scripts, shutdown scripts, and cronjobs, none of which have a controlling terminal with which to prompt and read a response.
I strongly suggest against even considering this suggestion.
Regards,
Alister
Last edited by alister; 07-29-2013 at 03:04 PM..
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have tried few examples in the internet but all of them are different and none worked. I need to check if a file exists in a directory if it does not then exit . here is what I have for now
$filename ="/usr/local/net/var/lib/directoryservice/sync.disable"
if ;
then
echo "The file exists"... (2 Replies)
Discussion started by: m_kk
2 Replies
2. Linux
I am using Cent OS 5.1. It has a command "yum" to install or update new packeges from a mirror or repository.
i am doing installation and configuration of Sun directory server and opensso. i have made a shell script to install and configure both. but now the need is to create a Cent OS packege,... (1 Reply)
Discussion started by: toanilsharma1
1 Replies
3. Red Hat
Hi,
Trying to install web logic 9.2 on Cent OS in the Graphical mode.
After accepting the license agreement the "Complete" installation is selected.The path for installing the components is mentioned and when clicked on "Next" it hangs and is not proceeding further.
Any suggestion or... (0 Replies)
Discussion started by: rajp_8007
0 Replies
4. Shell Programming and Scripting
Hi All,
I have bash script, so what is sintax script in bash for Enable and Disable Tab Key. Thanks for your help.:(
Thanks,
Rico (1 Reply)
Discussion started by: carnegiex
1 Replies
5. Linux
Hi,
Trying to install Interwoven Teamsite in CentOs 5.4. Found issue in the first step while installing the uvfs .
# gmake
/usr/bin/gcc -g -O3 -Wall -I. -c -o uvfs_signal.o uvfs_signal.cc
gcc: error trying to exec 'cc1plus': execvp: No such file or directory
gmake: *** Error 1
#
... (2 Replies)
Discussion started by: rajarshiroy77
2 Replies
6. Red Hat
Hi all Expertise,
I have following issue to solve,
SSL / TLS Renegotiation DoS (low) 222.225.12.13
Ease of Exploitation Moderate
Port 443/tcp
Family Miscellaneous
Following is the problem description:------------------
Description The remote service encrypts traffic using TLS / SSL and... (2 Replies)
Discussion started by: manalisharmabe
2 Replies
7. Red Hat
Hello,
I am integration AD authentication to Cent OS 6 servers. I am running to this error when I tried to join with AD server.
error message :
# net ads join -U 504783
Host is not configured as a member server.
Invalid configuration. Exiting....
Failed to join domain: This... (0 Replies)
Discussion started by: bobby320
0 Replies
8. Red Hat
Hi
I am trying to find all the ssl certs installed/located on cent os Host ,
Please help . (1 Reply)
Discussion started by: smartguyz2012
1 Replies
9. Linux
Hi ,
I have cent os 6.5 and am trying to make few routes permanent for bond:
i have added two routes using below two commands :
/sbin/route add -net 10.0.0.0 netmask 255.0.0.0 gw 10.59.160.128
/sbin/route add -net 0.0.0.0 netmask 0.0.0.0 gw 49.44.52.90
post which route command output is... (5 Replies)
Discussion started by: omkar.jadhav
5 Replies
LEARN ABOUT DEBIAN
systemd-rc-local-generator
SYSTEMD-RC-LOCAL-GENERATOR(8) systemd-rc-local-generator SYSTEMD-RC-LOCAL-GENERATOR(8)
NAME
systemd-rc-local-generator - Compatibility generator for starting /etc/rc.local and /usr/sbin/halt.local during boot and shutdown
SYNOPSIS
/lib/systemd/system-generators/systemd-rc-local-generator
DESCRIPTION
systemd-rc-local-generator is a generator that checks whether /etc/rc.local exists and is executable, and if it is pulls the
rc-local.service unit into the boot process. This unit is responsible for running this script during late boot. Note that the script will
be run with slightly different semantics than the original System V version, which was run "last" in the boot process, which is a concept
that does not translate to systemd. The script is run after network.target, but in parallel with most other regular system services.
systemd-rc-local-generator also checks whether /usr/sbin/halt.local exists and is executable, and if it is pulls the halt-local.service
unit into the shutdown process. This unit is responsible for running this script during later shutdown.
Support for both /etc/rc.local and /usr/sbin/halt.local is provided for compatibility with specific System V systems only. However, it is
strongly recommended to avoid making use of these scripts today, and instead provide proper unit files with appropriate dependencies for
any scripts to run during the boot or shutdown processes.
systemd-rc-local-generator implements systemd.generator(7).
SEE ALSO
systemd(1), systemctl(1)
systemd 237 SYSTEMD-RC-LOCAL-GENERATOR(8)