Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
Hello. I am trying to type in a command, but get the following error message: Sorry, user alexander is not allowed to execute '/usr/bin/apt-get install sane sane-utils libsane-extras' as root ...
  1. #1
    Banned
    Join Date
    Oct 2007
    Posts
    219

    Root/local host conflict/problems

    Hello.

    I am trying to type in a command, but get the following error message:


    Sorry, user alexander is not allowed to execute '/usr/bin/apt-get install sane sane-utils libsane-extras' as root on localhost.localdomain.

    Please help. Thanks.

    Alexander

    Edit:

    Can anybody help me with setting up my scanner this way???:

    Scanner hp scanjet 3970 sur linux ubuntu 7.04 - Frinix.com

    I seem to have problems with the commands, etc.

    Thank you.

  2. #2
    Just Joined! Runn3r.cze's Avatar
    Join Date
    Jul 2007
    Location
    czech republic
    Posts
    93
    which dstro do you use and what is the command you're trying to run...
    for example in ubuntu is sudo for running commands as root but not everyone user can use it, but only members of group admin

  3. #3
    Banned
    Join Date
    Oct 2007
    Posts
    219

    Thumbs up

    Quote Originally Posted by Runn3r.cze View Post
    which dstro do you use and what is the command you're trying to run...
    for example in ubuntu is sudo for running commands as root but not everyone user can use it, but only members of group admin
    Hello.
    OS is "SimplyMEPIS 6.5".

    Commands, are all commands with "sudo" at the beginning.

    Sudo, does not work positive, only "su" does.

  4. #4
    Trusted Penguin elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    2,298
    You need to execute apt-get install as root.

    first
    su
    Enter your root password
    try your command again
    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.

  5. #5
    Banned
    Join Date
    Oct 2007
    Posts
    219
    Quote Originally Posted by elija View Post
    You need to execute apt-get install as root.

    first
    su
    Enter your root password
    try your command again
    Hello.
    How? do I cexecute apt-get install as root?

    This is the command I want to give into the "Run Command"-window:
    sudo apt-get install sane sane-utils libsane-extras

    And then I get the message:
    Sorry, user alexander is not allowed to execute '/usr/bin/apt-get install sane sane-utils libsane-extras' as root on localhost.localdomain.

    So I need very precice instructions: every little step, and I need all the words of the command, the complete command line.

    And where, and how can I change the rights. And do those settings stay, or do I have to give the root permission in every time I type in "sudo"?

    ...Complicated stuff...

    Thank you.

  6. #6
    Trusted Penguin elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    2,298
    If you are using mepis, that doesn't use sudo. Not by default anyway.
    You have to explicitly switch to be the super user.

    1. Open a terminal
    2. Type su and press enter
    3. Enter the root password. You would have entered this at installation
    4. Type apt-get install sane sane-utils libsane-extras and press enter

    It should install

    sudo is a way of temporarily gaining root access that some distros use by default.
    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.

  7. #7
    Banned
    Join Date
    Oct 2007
    Posts
    219
    Hi elija.

    Enter where? the root password?

    "root password" apt-get install sane sane-utils libsane-extras

    gives me the message: Could not run the specified command.

  8. #8
    Trusted Penguin elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    2,298
    Step 1. Type su. Press enter.
    su is the "super user" command. It will give you root privileges. You will need
    to enter the root password to prove that you are allowed.

    Step 2. Type apt-get install sane sane-utils libsane-extras and press enter.
    This should install the requested packages.
    Last edited by elija; 11-11-2007 at 02:45 PM. Reason: apt - not pt
    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.

  9. #9
    Banned
    Join Date
    Oct 2007
    Posts
    219
    Aha, ok, I think I understand. Thank you very much.

    So, if it works with "su", without getting a errormessage, it should be fine?

    If I give in "su" as command, like:

    su apt-get install sane sane-utils libsane-extras

    I don't get a error message, and I don't get asked for my root password.

    I just thought, it maybe had to be "sudo", but if only "su" does it as well, it is ok for me.

  10. #10
    Trusted Penguin elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    2,298
    su is one command and apt-get is a second command.
    Use su and then apt-get
    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.

Page 1 of 2 1 2 LastLast

Posting Permissions

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