Find the answer to your Linux question:
Results 1 to 8 of 8
hi all, please help with my issue I have debian 4 on my laptop, i login as a regular user, then i try to cp a file to a folder, ...
  1. #1
    vtr
    vtr is offline
    Just Joined!
    Join Date
    Apr 2007
    Posts
    15

    Question debian sudoers

    hi all, please help with my issue
    I have debian 4 on my laptop, i login as a regular user, then i try to cp a file to a folder, but it ask for the password, so i type the root password, but the root password can't help in this case.
    what can i do to solve out this problem, please help.
    thank you.

  2. #2
    Just Joined!
    Join Date
    Apr 2007
    Posts
    13
    type su, then enter your root password. Copy necessary files, then type su username to return to your usual account.

  3. #3
    Linux Guru Vergil83's Avatar
    Join Date
    Mar 2004
    Posts
    2,408
    It could be asking for the password of the owner of that file (assuming it isn't the user you are running as).
    Brilliant Mediocrity - Making Failure Look Good

  4. #4
    Linux User
    Join Date
    Aug 2005
    Posts
    408
    Quote Originally Posted by Burble View Post
    type su, then enter your root password. Copy necessary files, then type su username to return to your usual account.
    Another question: Won't "su" after you've already switched user from your username to root just open a new process, so that when you exit, you'll have to exit from three different users (i.e., the following):

    regular user----[su]---->rootuser-----[su]----->regularuser


    I usually just use "exit" after su'ing into root, so this question never occurred to me.

  5. #5
    Linux User IsaacKuo's Avatar
    Join Date
    Feb 2005
    Location
    Baton Rouge, LA, USA
    Posts
    292
    Yes, you'll have to type in "exit" 3 times (unless you're using a graphical shell terminal and simply close the window).

    It's an odd thing to do, but I do it sometimes when I'm in some particular directory and I just want to do a couple things as the regular user real quick. Typing in "exit" at this point would return me to whatever directory I was in when I typed "su".
    Isaac Kuo, ICQ 29055726 or Yahoo mechdan

  6. #6
    vtr
    vtr is offline
    Just Joined!
    Join Date
    Apr 2007
    Posts
    15

    debian sudoers

    regular user is the the owner of this file.
    i dowloaded ipw2200 firmware to Desktop, untar the firmware.
    create new directory A, then cp the firmware to directory A, it asked for the passwd, i typed root passwd but it won't help. Then,
    type su, enter root passwd, then cp again, it asked for the passwc, i enter root passwd again, incorrect password 3 times, then time out.
    no ideal, i'll try again until i get the answer.
    any help will be appreciated.
    thank you.

  7. #7
    Linux User IsaacKuo's Avatar
    Join Date
    Feb 2005
    Location
    Baton Rouge, LA, USA
    Posts
    292
    You seem very confused, and you're not explaining yourself very well. First off, you are using the word "cp" a lot, but I doubt you're actually using the command "cp". I'm not aware of any circumstances where the command "cp" will ever ask for your password.

    What exactly are you doing to create a directory, and what exactly are you doing when you try to "cp" a file?

    Also, why exactly do you only try to use the "root password"? The title of the thread has the word "sudoers", which suggests that maybe you are using "sudo". When sudo asks for your password, it's asking for the regular user's password--not the root password. If you enter the root password, it will tell you you entered the wrong password (which you did).
    Isaac Kuo, ICQ 29055726 or Yahoo mechdan

  8. #8
    vtr
    vtr is offline
    Just Joined!
    Join Date
    Apr 2007
    Posts
    15

    debian sudoers

    Yes, you're right, i am so confusing right now. maybe i take a break then comeback later.
    thank you for your helps.

Posting Permissions

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