Find the answer to your Linux question:
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 ...
  1. #1
    Just 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)?

  2. #2
    Trusted Penguin jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    4,071
    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.

  3. #3
    Trusted Penguin elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    2,298
    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.

  4. #4
    Linux User Giles's Avatar
    Join Date
    May 2005
    Location
    Gloucestershire and Cambridge, UK
    Posts
    283
    Quote Originally Posted by foxcar View Post
    1. how can i enable warnings when attempting to delete files with rm?
    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:
    Code:
    alias rm="rm -i"
    alias cp="cp -i"
    alias mv="mv -i"
    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.

    Hope that helps
    Giles
    "Our greatest fear is not that we are powerless. Our greatest fear is Microsoft"
    Registered linux user #391027

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...