Results 1 to 10 of 10

Thread: Run as root

  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
  •  


IBM System X3850-X5 Server w/4x Intel  Xeon E7-4870 CPU , 512 GB DDR3 RAM,NO HDD picture

IBM System X3850-X5 Server w/4x Intel Xeon E7-4870 CPU , 512 GB DDR3 RAM,NO HDD

$1599.99



IBM QRadar xx29 2x Xeon E5-2650v4 2x 900W PSU M5120 12x 3.5

IBM QRadar xx29 2x Xeon E5-2650v4 2x 900W PSU M5120 12x 3.5" Bay Server No RAM

$179.99



Unused IBM 09P0037 MAINBOARD For  RS/6000 7044-170 P-Series picture

Unused IBM 09P0037 MAINBOARD For RS/6000 7044-170 P-Series

$375.00



IBM EMC 091-000-091 17 Inch Rackmount LCD Keyboard KVM Console 03N7012 picture

IBM EMC 091-000-091 17 Inch Rackmount LCD Keyboard KVM Console 03N7012

$109.99



IBM Power 8 S822L Server 8247-22L POWER8 Enterprise 256GB RAM 2x 00KV626 CPU picture

IBM Power 8 S822L Server 8247-22L POWER8 Enterprise 256GB RAM 2x 00KV626 CPU

$999.99



IBM System x3550 M3 1U Server 2x Xeon E5645, 192GB RAM, 2x 300GB HDD (7944-AC1) picture

IBM System x3550 M3 1U Server 2x Xeon E5645, 192GB RAM, 2x 300GB HDD (7944-AC1)

$150.00



IBM SYSTEM X3500 M3 SERVER 7380AC1 TOWER Server XEON E5620 8GB RAID SEE NOTES picture

IBM SYSTEM X3500 M3 SERVER 7380AC1 TOWER Server XEON E5620 8GB RAID SEE NOTES

$110.30



1 X IBM 720 POWER SERVER WITH 32 GB RAM picture

1 X IBM 720 POWER SERVER WITH 32 GB RAM

$344.97



IBM ADP Server Type 7870 AC1 NO HDD | 128GB RAM PC3L | 2 x Xeon  E5620 picture

IBM ADP Server Type 7870 AC1 NO HDD | 128GB RAM PC3L | 2 x Xeon E5620

$199.99



DELL POWEREDGE HP IBM SERVER XEON GOLD 5315Y 8 CORE PROCESSOR 3.2 GHZ SRKXR picture

DELL POWEREDGE HP IBM SERVER XEON GOLD 5315Y 8 CORE PROCESSOR 3.2 GHZ SRKXR

$1100.00