Results 1 to 4 of 4
1. how can i enable warnings when attempting to delete files with rm?
2. how can i disable all the password prompts that pop up after i login(similar to user ...
- 09-18-2008 #1Just Joined!
- Join Date
- Sep 2008
- Location
- SC
- Posts
- 48
need some basic info
1. how can i enable warnings when attempting to delete files with rm?
2. how can i disable all the password prompts that pop up after i login(similar to user account control in vista)?
- 09-18-2008 #2
1) Use the option -i when using rm. (Example: rm -i somefile). This gives a prompt before any removal.
2) While you can set-up your box to use no passwords, or not to prompt, I would advise against this, as password verification is one of the main points of security in the Linux world. To disable this feature would make your box all the more vulnerable to someone doing damage without your knowledge.Jay
New users, read this first.
New Member FAQ
Registered Linux User #463940
I do not respond to Private Messages asking for Linux help. Please, keep it on the public boards.
- 09-18-2008 #3
2. Are you talking about the box that pops up when you do an administrsative task?
I would recommend against disabling this as it is a very powerful security measure. You will find that it pops up less often than the Vista one.If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)
My new blog. It's probably not as good as I think it is.
- 09-18-2008 #4
You may want to create a bash alias file - so that every time you use rm, the computer interprets that as rm -i.
On one of my boxes, I have a file with the following:
Save that file as .bashrc in your home directory. You may also need to create a file called .bash_profile which points to it - the .bash_profile file just needs to say source ~/.bashrc.Code:alias rm="rm -i" alias cp="cp -i" alias mv="mv -i"
Hope that helps
Giles"Our greatest fear is not that we are powerless. Our greatest fear is Microsoft"
Registered linux user #391027


Reply With Quote
