Doryforos Posted October 16, 2003 Share Posted October 16, 2003 Hello,Something I just discovered:RedHat 9.0 installs, by default, different .bashrc files for root, than those of the other users:root's .bashrc contains the following aliases: alias rm='rm -i' alias cp='cp -i' alias mv='mv -i' This means that delete, copy and move operations, will NOT by default delete, or overwrite any already existing files, without first asking for your explicit permission ("-i" stands for "interactive").This is not the case, however, for simple users (why, RedHat?). <_<If you want to practise safe hex , edit your (and any of your system's already created user's) ~/.bashrc, to include the above lines (read root's for their specific place in the file), AND /etc/skel/.bashrc, so that any newly created user's .bashrc will have those potentially catastrophic commands de-fanged. Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.