Results 1 to 10 of 10

Thread: Run as root

Hybrid View

  1. #1
    Junior Member
    Join Date
    Oct 2005
    Posts
    6

    Run as root

    Hello,

    I'm a Windows expert but new to Linux and just installed Knoppix to my HD (debian). For my USB Modem, I needed a driver, and I found and installed one correctly.

    The problem is: The driver start program has to be run as root. So this is what I do:

    1) at the login screen, I go to the console mode (since I cannot login as root, is this normal? on Win I can do this )
    2) then I start the program (well it's not exactly a driver but a helping program that others have created, still beta etc)
    3) everything works well
    4) then I go back to the login screen and login
    5) then Knoppix hangs by "initializing drivers" or something, but this is probably due to the beta status of the driver

    When I run the program from my account, there are insufficient permissions for nice.

    My question:
    How to run a program as root without logging out etc etc?
    or
    Can I run the program from my account by setting permissions, and ho
    w?

    (well you see... I think in Windows!)

    BTW the driver is http://eciadsl.flashtux.org/.
    But I think my question belongs here since it is mainly about starting a program as root, and thus a Linux related question.

  2. #2
    Senior Member registered user
    Join Date
    Feb 2005
    Location
    Saint Louis, MO, USA
    Posts
    376

    Re: Run as root

    Welcome to Knoppix.net

    What version of Knoppix are you using?
    Quote Originally Posted by RubenK
    My question:
    How to run a program as root without logging out etc etc?
    or
    Can I run the program from my account by setting permissions, and how?
    To run a program as root use sudo.

    Have you tried asking in the ECIADSL forums: http://eciadsl.sourceforge.net/scripts/forum/

    Regards,
    - Robert
    http://www.cwelug.org

  3. #3
    Member registered user
    Join Date
    Sep 2004
    Posts
    51
    and to use sudo you have to edit /etc/sudoers
    and add a line like this to the end:
    yourusernamehere ALL=NOPASSWD: ALL

    So login as root to the console (Knoppix doesn't let you Root login to the GUI)
    then run visudo and add the line for your user name, save and exit and logout!

  4. #4
    Senior Member registered user
    Join Date
    Feb 2005
    Location
    Saint Louis, MO, USA
    Posts
    376
    Quote Originally Posted by atrick-pay
    and to use sudo you have to edit /etc/sudoers
    and add a line like this to the end:
    yourusernamehere ALL=NOPASSWD: ALL
    This is Knoppix. That should already be there. Or no?

    Regards,
    - Robert
    http://www.cwelug.org

  5. #5
    Member registered user
    Join Date
    Sep 2004
    Posts
    51
    All the versions of knoppix I've installed to HD have NOT had any entry,
    other then root in the sudoers file. (that was the first major thing I had to learn how to do!)

  6. #6
    Senior Member registered user
    Join Date
    Feb 2005
    Location
    Saint Louis, MO, USA
    Posts
    376
    Quote Originally Posted by atrick-pay
    All the versions of knoppix I've installed to HD have NOT had any entry,
    other then root in the sudoers file. (that was the first major thing I had to learn how to do!)
    Interesting. Did not know that. But then I have only installed Knoppix to the HD once, didn't like it, and removed it. There are better distros for Linux installs.

    Out of curiosity, if you install to the HD how are the Virtual Consoles? Do you have to login or are they already open with a root shell? If you boot with the CD, the Virtual Consoles are already open with a root shell.

    Regards,
    - Robert
    http://www.cwelug.org

  7. #7
    Junior Member
    Join Date
    Oct 2005
    Posts
    6
    Thank you for the replies... interesting discussion btw about the "sudo" thing

    Is there a reason why root + GUI is not allowed in Knoppix?

    Unfortunately, I can't test the sudo solution right now because I'm not at home, but I'll test it ASAP.

    And I think that the question belongs to here, since it is merely about OS commands.

    Thank you!

  8. #8
    Member registered user
    Join Date
    Sep 2004
    Posts
    51
    Running as Root is discouraged for the same reasons running as a limited user on a Win box is incouraged,
    Basicly, You can't screw up anything that can't be fixed and neither can any program or even a virus you run
    and since it is so easy to run sudo anytime you need to (once it is setup) it is good to play it safe.

    After all this is still all a "beta" project! Kind of .....

    rwcitek: after you install, the other Virtual Consoles are just waiting for you to login.
    I know others have been happier with other distros but I tryied most of them I could
    and gave up three years ago, then tryied them all again about a year ago, Knoppix was the only
    thing I could get up and running haven't looked back since!

  9. #9
    Junior Member
    Join Date
    Oct 2005
    Posts
    6
    yes it's right, user can't do "sudo" by default...
    "...this incident will be reported..."

    damn, unix takes thing seriously

  10. #10
    Senior Member registered user
    Join Date
    Feb 2005
    Location
    Saint Louis, MO, USA
    Posts
    376
    Quote Originally Posted by RubenK
    yes it's right, user can't do "sudo" by default...
    "...this incident will be reported..."

    damn, unix takes thing seriously
    Just to clarify, that is only true with HD installs. If you are running from the LiveCD, the Knoppix user is indeed setup by default to sudo.

    Regards,
    - Robert
    http://www.cwelug.org

Similar Threads

  1. Root!
    By daemax in forum The Lounge
    Replies: 1
    Last Post: 06-26-2004, 02:05 AM
  2. root on USB
    By Alexxx in forum Customising & Remastering
    Replies: 0
    Last Post: 02-27-2004, 03:31 PM
  3. Becoming root
    By rbeabout in forum Hdd Install / Debian / Apt
    Replies: 10
    Last Post: 07-16-2003, 05:15 PM
  4. Only root can log in...?
    By gnosys in forum Hdd Install / Debian / Apt
    Replies: 9
    Last Post: 03-21-2003, 07:13 AM
  5. df -a has no (root) / ??
    By KnoDeb in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 01-06-2003, 09:47 PM

Posting Permissions

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


Yealink T48S VoIP/SIP Phone, 2 x Gigabit Ports PoE 7

Yealink T48S VoIP/SIP Phone, 2 x Gigabit Ports PoE 7" Color SIP-T48S | TESTED

$34.95



Cisco IP Phone CP-8821 No Battery C2-F3 picture

Cisco IP Phone CP-8821 No Battery C2-F3

$185.00



SIM Bank 32 SIM Card Slots Ethernet SIM Server for GoIP picture

SIM Bank 32 SIM Card Slots Ethernet SIM Server for GoIP

$400.00



Poly CCX 400 Desktop Business Media Phone VoIP 2200-49700-019 picture

Poly CCX 400 Desktop Business Media Phone VoIP 2200-49700-019

$49.99



Yealink SIP-T44W VoIP Phone 12-Line Gigabit Speakerphone RJ-45 Gray/Black picture

Yealink SIP-T44W VoIP Phone 12-Line Gigabit Speakerphone RJ-45 Gray/Black

$44.00



Yealink SIP-T33G IP Phone 4-LineSpeakerphone VoIP Desk Phone Black w/ Power Sply picture

Yealink SIP-T33G IP Phone 4-LineSpeakerphone VoIP Desk Phone Black w/ Power Sply

$25.00



5 Allworx Verge 9312 VoIP IP Phone 12-Line Speakerphone Black RJ-45 MPN 8113120 picture

5 Allworx Verge 9312 VoIP IP Phone 12-Line Speakerphone Black RJ-45 MPN 8113120

$999.00



CyberData SIP Paging Adapter VOIP 011233C / 021542G-Never Used picture

CyberData SIP Paging Adapter VOIP 011233C / 021542G-Never Used

$120.00



Grandstream WP810 Portable Cordless Wi-Fi IP Phone picture

Grandstream WP810 Portable Cordless Wi-Fi IP Phone

$49.28



Grandstream VoIP Phone Adapter ATA 1-Line Black Ethernet (RJ-45) Micro USB picture

Grandstream VoIP Phone Adapter ATA 1-Line Black Ethernet (RJ-45) Micro USB

$27.07