- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: paranoid mode invoked
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2004 10:37 PM
тАО03-16-2004 10:37 PM
Think of a command, the damage it could cause if it was invoked on the wrong server, the argument was wrong or you simply wanted to warn/request confirmation from the operator that they were about to do something that could possibly be destructive
ie
replace rm with rm -i in .profile
Regards
Steve
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2004 10:45 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2004 11:03 PM
тАО03-16-2004 11:03 PM
Re: paranoid mode invoked
newfs, either overwriting an existing filesystem, or a database raw log could have near catastrophic results
The old faves of rm -r, chown/chmod -R
dd (the potential to splatter your disks in 1 easy step) if your happen to point the "of=" option at a disk device
shutdown/halt/reboot/init 0
a "find -exec" executed from the wrong location with the rm command etc.
vipw/chsh/passwd -s (and related commands). Could lead to corruption in your password file.
I'll stop now, as I've scared myself.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2004 11:13 PM
тАО03-16-2004 11:13 PM
Re: paranoid mode invoked
How about this "kill -9 1 1234" instead of "kill -9 11234". Just that little space is going to cause some problems. I think you can only solve that one at the kernel level.
"crontab -r" instead of "crontab -e" (they are next to each other on a us keyboard) Solved by never using either of them. Edit the crontab file and "kill -1
How about accidently changing "init:3:initdefault:" to ""init:6:initdefault:" in /etc/inittab. Could be very annoying.
This one could run and run but they aren't too pleasant to think about.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2004 11:38 PM
тАО03-16-2004 11:38 PM
Re: paranoid mode invoked
I just talked to a customer who accidently pasted a 'll /etc' listing to a root shell. Guess, what happened if you look at the '>' characters involved.
Best regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2004 11:47 PM
тАО03-16-2004 11:47 PM
Re: paranoid mode invoked
"Have you forgotten the root passwd again !"
passwd root
Assign a new passwd & then close the connection without logging back in and checking the passwd change was as expected.
Solution:Procedural or get someone who has half a brain cell.
__________
"Oops I have no passwd file !"
cp /dev/null /etc/passwd & then logout.
Solution:make sure the file has the correct permissions otherwise fire the idiot who ran this command"
__________
"Oops there goes by system !"
rm -R /etc
Solution:alias the rm with rm -i in the profile or get those ignite recovery tapes out.
Keith
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2004 12:33 AM
тАО03-17-2004 12:33 AM
Re: paranoid mode invoked
I know someone who thought he was on his workstation and did a /etc/shutdown -hy now before leaving for the night. Unfortunalty he was logged into the main file server leaving a lot of people unable to work. Outcome he collected a P45, for those not from the uk he was dismissed from his post. Solution aways type hostname before shutdown or reboot. So simple and so effective.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2004 12:42 AM
тАО03-17-2004 12:42 AM
Re: paranoid mode invoked
dd
newfs
chmod -R
rm -rf
mv
pvcreate -f
rmboot
mediainit
adb
I would start by making root's prompt contain the name of the machine as well as the current and parent directories:
export PS1=$(hostname)--'${PWD##${PWD%/*/*}/} # '
And on incredibly important systems, always run destructive commands with another admin looking over your shoulder. Even then, run an Ignite/UX backup *before* the destructive command is issued.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2004 01:49 AM
тАО03-17-2004 01:49 AM
Re: paranoid mode invoked
*** DON'T TRY IT! ***
cd /home/dave
chown dave *
chown dave *.*
chown dave .*
It works in that it follows .. to / and recursively changes the all files on the server to be owned by dave.
Boy was I a popular guy!
next time
cd /home
chown -R dave dave
If you do it, pray you have a backup tape and claim that you are new to unix and are still learning. A long time ago now, but it still haunts me. I kept my job!
Regards,
Dave.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2004 12:49 AM
тАО03-18-2004 12:49 AM
Re: paranoid mode invoked
PS1=`whoami`:`hostname`\>:
as the last line in the profile.
That advice, along with alot of others, was given to me by a great CE from HP out of Boston, Bob Zanelli.
RD
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2004 02:20 AM
тАО03-18-2004 02:20 AM
Re: paranoid mode invoked
lvextend. Oops, made that 8 Gb too big.
lvreduce. Oops that 40GB lvol is now 8Gb.
Never let anyone use lvm commands on production DB servers if they are even remotely sleepy or not operating 100%. The last thing you want to hear coming back from lunch is 'Hey, how do you recover from a bad lvreduce? Do you think anyone will notice?'
The response, incidentally, was 'let me hear you say "Do you want fries with that?" because your next career is going to hinge on how well you say that!'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2004 02:25 AM
тАО03-18-2004 02:25 AM
Re: paranoid mode invoked
Another one that I've seen be a problem is when you have two machines in a serviceguard cluster and there is a disk on a shared bus which is used privately by one of the nodes.
The other node sees this disk as "available" and occassionally, an admin on machine B will use the "available" disk that is actually in use by machine A.
This is "bad" :-)
Oz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2004 08:44 AM
тАО03-26-2004 08:44 AM
Re: paranoid mode invoked
Marlou
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2004 10:45 AM
тАО03-26-2004 10:45 AM
Re: paranoid mode invoked
He wrote a script that collected IO data in a continuous loop (Mistake #1: developing in the production environment). He forgot to put in a test condition to stop it at some point. He ran it in the background, decided he didn't like it, then deleted it and its data file (Mistake #2: he forgot to kill -9). He went home at the end of the day. A few hours later I got a call from the help desk saying the system was running out of disk space. I immediately blamed the Data Warehouse team (they had OLD files that they never cleaned up), and got them out of bed. The system continued to run out of space, but I couldn't find any files that were increasing in size. Every time it hit 95%, the help desk would again log a trouble ticket, and after the third time they got my boss out of bed. I would ask the DW team to delete some more files. They would, and the percentage used would then go down, but then slowly back up again.
I finally compiled & installed lsof to find out WTH had happened. His script was still running, still collecting data. But without a data file to write it to, it was filling up the filesystem without filling up the filesystem. lsof gave me the PID. When the process was thoroughly dead, the utilization dropped down to 25%.
The other admin was in the boss's office for a while the next day, with the door closed........I did not say A WORD, for there but for the Grace of $DEITY go I.
(later on, I did go, but for an entirely different reason--and there was much rejoicing)
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2004 11:24 AM
тАО03-26-2004 11:24 AM
Re: paranoid mode invoked
killall is also a nice command.
greetings,
Michael