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
  •  


Dell PowerEdge HBA330 LP PCI-E 12GBs RAID SAS Controller Adapter J7TNV picture

Dell PowerEdge HBA330 LP PCI-E 12GBs RAID SAS Controller Adapter J7TNV

$18.95



Broadcom MegaRAID 9480-8e Fujitsu PRAID EP540e SAS RAID Card (Replac 9380-8e) 8i picture

Broadcom MegaRAID 9480-8e Fujitsu PRAID EP540e SAS RAID Card (Replac 9380-8e) 8i

$228.00



EMC KTN-SL3 15-Bay Disk Array Enclosure w/2x 303-108-000E Cards, Dual PSU,No HDD picture

EMC KTN-SL3 15-Bay Disk Array Enclosure w/2x 303-108-000E Cards, Dual PSU,No HDD

$239.99



G-Technology G-SPEED Studio XL 48TB Thunderbolt 2 Storage - Housing Only picture

G-Technology G-SPEED Studio XL 48TB Thunderbolt 2 Storage - Housing Only

$200.00



Broadcom LSI 9305-16i 12Gbps SAS-3 PCIe x8 HBA 16-Ports Raid Controller picture

Broadcom LSI 9305-16i 12Gbps SAS-3 PCIe x8 HBA 16-Ports Raid Controller

$64.99



OWC Mercury Elite Pro 2 Bay RAID Enclosure with USB 3.2  for Dual 3.5 inch HDDs picture

OWC Mercury Elite Pro 2 Bay RAID Enclosure with USB 3.2 for Dual 3.5 inch HDDs

$87.99



74Y6511 IBM 3Gb 2 Port PCI-E x8 SAS RAID Adapter 74Y6512 44V4199 W/ 1x Battery picture

74Y6511 IBM 3Gb 2 Port PCI-E x8 SAS RAID Adapter 74Y6512 44V4199 W/ 1x Battery

$99.99



OWC Express 4M2 USB4 40Gb/s 4-Slot NVMe M.2 SSD RAID Enclosure w/ Cable picture

OWC Express 4M2 USB4 40Gb/s 4-Slot NVMe M.2 SSD RAID Enclosure w/ Cable

$125.00



Areca ARC-1882IX-24 (16i4e)24-Port RAID Controller Card w/BBU /HDD Monitor Board picture

Areca ARC-1882IX-24 (16i4e)24-Port RAID Controller Card w/BBU /HDD Monitor Board

$300.00



Intel VROC Premium RAID Controller Card PCIe Add-On Module VROCPREMMOD picture

Intel VROC Premium RAID Controller Card PCIe Add-On Module VROCPREMMOD

$265.00