Results 1 to 9 of 9

Thread: A "very" simple, and noob, question...

  1. #1
    Senior Member registered user
    Join Date
    Dec 2003
    Location
    Salt Lake City, UT, U.S.A.
    Posts
    1,338

    A "very" simple, and noob, question...

    Being almost a toddler in the Linux World, these kinds of issues are not a concern in the Windows World...

    When would you need to be a Root, and when can you "live" with just being a "user"?

    For months now, not having the idea/theory of this down yet, I have ALWAYS logged out as my User account, and re-logged in as Root, to do apt-get updates, installs, and upgrades. From the jest, within this forum, I am starting to feel that this isn't the case. That only "certain" things require you to be "God", and most "everything" else, can just be done as a User.

    Like I said, I haven't quite "caught on" to Linux yet, and I haven't really found a "clear-cut" answer to "when and where" this seperation is made.

    Can someone "elaborately enlighten" me on this perplexion? ( I would be thankful in being able to isolate my further learning in this area )

    Cuddles
    PS -=- I am quite sure that "this" forum has had these issues before, considering the "newness" a lot of people have to some of the "unique" situations that come along with Linux, and its concepts - but, maybe someone was unsure how to post it ?

  2. #2
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    colorado springs, colorado
    Posts
    1,933

    Re: A "very" simple, and noob, question...

    Quote Originally Posted by Cuddles
    I have ALWAYS logged out as my User account, and re-logged in as Root, to do apt-get updates, installs, and upgrades.
    Poor Cuddles has been corrupted by M$ but I think you've turned away from the darkside before it was too late. You never need to log in as root (well almost never ). You will usually be told when you need to get root. I execute most all commands that need to be done as root with sudo.

    sudo xedit /boot/grub/menu.lst

    You need to be part of the /etc/sudoers file. You can configure it to require a password or not. If you want to be root fine- just make sure you log in as user and get root when you need it. Don't use IRC or surf the web as root- even if you're using Knopix from cd and no hdd in the box. Why? Well, just try to get into #debian as root. You would also have to configure GDM to allow a root login (not sure about KDM) as it does not by default.

    I have a dozen or more terminals open usually and in one or two i get root and go about my business there. If using virtual terminals and you wish to change from root to user or visa versa simply say

    login

    and you'll have a prompt at which to log into.

  3. #3
    Senior Member registered user
    Join Date
    Dec 2003
    Location
    Salt Lake City, UT, U.S.A.
    Posts
    1,338
    LOL

    Yep - thats me, all over...

    Too many years under M$ control - but Knoppix has parolled me

    To get the idea here, instead of doing the "sudo", couldn't I also just do a "su", log in, and when I am done, "exit" from the Root login? - I have been trying more things that way...

    By using my method above, that "Root" login IS not global is it? ( in other words, only "that" window is Root, and doesn't make all other "running" windows, etc... Root, right? )

    If I understand you correctly: the following is what "I used to do" -=- followed by what "I could do"

    Root User Login -=- User Login ( with a su shell open, and when done, closing it )
    apt-get anything -=- apt-get anything

    I guess your idea by using the sudo [something] - is a "one shot" command, whereas, my usage, can have multiple commands before closing the window down.

    You know, their might just be hope for me yet [giggle]
    Cuddles

  4. #4
    Senior Member registered user
    Join Date
    Jun 2003
    Posts
    611
    I usually opt for the su in a terminal method... that way I have one term where I'm root and can do root things in there. It's more secure than allowing a regular user to sudo anything as long as you remember to close that terminal if you leave your computer.

  5. #5
    Senior Member
    Join Date
    Nov 2003
    Posts
    1,323
    Seems to be a matter of taste

    I prefer adding a rootshell icon to the kicker and changing the schema line in /usr/share/apps/konsole/su.desktop to Schema=GreenOnBlack.schema
    just so I know who I really am

  6. #6
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    colorado springs, colorado
    Posts
    1,933
    Quote Originally Posted by Cuddles
    LOL

    Yep - thats me, all over...

    Too many years under M$ control - but Knoppix has parolled me

    To get the idea here, instead of doing the "sudo", couldn't I also just do a "su", log in, and when I am done, "exit" from the Root login? - I have been trying more things that way...

    By using my method above, that "Root" login IS not global is it? ( in other words, only "that" window is Root, and doesn't make all other "running" windows, etc... Root, right? )

    If I understand you correctly: the following is what "I used to do" -=- followed by what "I could do"

    Root User Login -=- User Login ( with a su shell open, and when done, closing it )
    apt-get anything -=- apt-get anything

    I guess your idea by using the sudo [something] - is a "one shot" command, whereas, my usage, can have multiple commands before closing the window down.

    You know, their might just be hope for me yet [giggle]
    Cuddles
    Yes sudo is a one shot and getting root in a term is good if you intend on executing multiple commands as root and don't wish to type 'sudo' everytime. Of course leaving a root shell open on an accessable pc is probably not a good idea. Like Markus said it is a matter of taste. Just don't feel that you have to log out and then back in- absolutely not necessary.

  7. #7
    Senior Member registered user
    Join Date
    Dec 2003
    Location
    Salt Lake City, UT, U.S.A.
    Posts
    1,338
    Hey rickenbacherus, you should be proud of me - I have stuck in my "user" account for more than five days now - done apt-get installs, removals, checked system configurations, and made changes to "root" only files - all from within my "user" account

    Markus, I did your idea - I created a "root shell" on my taskbar, and then went through the konsole desktop file and changed the schema to what you suggested.

    Now I have about three konsole shells running, most all the time, two for "user", and one as "root". I do my apt-get and system stuff through the "root" konsole, and the two "user" konsoles are used for starting apps, the second one is for xkill - since my ALSA is being a pain in the rump - still trying to get it working, but - I fire off XMMS and it locks everytime, so the second konsole "user" window is a fast way to run xkill, and get rid of the locked-up XMMS...

    I'm learning here, and, I think I am growing, as well - maybe in a few years of working with this, I may be a "seasoned pro" at all of this

    [giggle]
    Cuddles

  8. #8
    Senior Member
    Join Date
    Nov 2003
    Posts
    1,323
    The thought just occurred to me that the "root shell" is the thingy under K-menu -> Knoppix -> Root Shell which doesn't work for me while I'm not in sudoers.
    I added the K-menu -> System -> More Programs -> Konsole Super User Mode
    That's also the reason for the change in schema, I really dislike the default BlackOnYellow

    PS. Instead of launching xkill try: killall xmms

  9. #9
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    colorado springs, colorado
    Posts
    1,933
    Quote Originally Posted by Cuddles
    the second one is for xkill - since my ALSA is being a pain in the rump - still trying to get it working, but - I fire off XMMS and it locks everytime, so the second konsole "user" window is a fast way to run xkill, and get rid of the locked-up XMMS...
    You could also just add a launcher to the taskbar for Xkill.

Similar Threads

  1. To "apt-get update" or not?, that is the question
    By timread in forum General Support
    Replies: 3
    Last Post: 05-18-2004, 06:50 PM
  2. simple Noob Question
    By zombi3 in forum General Support
    Replies: 5
    Last Post: 12-25-2003, 07:05 AM
  3. "Connection Reset by Peer" or "hang"
    By oreo in forum General Support
    Replies: 11
    Last Post: 07-23-2003, 06:33 PM
  4. "Foreign" drive formats and "dd" command
    By geebee2000 in forum Hardware & Booting
    Replies: 9
    Last Post: 05-21-2003, 07:29 PM
  5. Locate Knoppix "group" in "K" menu
    By Juny in forum General Support
    Replies: 4
    Last Post: 03-14-2003, 09:02 AM

Posting Permissions

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


LOT QTY 2 of INTEL XEON 10 CORE E5-2690 V2 25MB 3.00GHZ CPU SR1A5 picture

LOT QTY 2 of INTEL XEON 10 CORE E5-2690 V2 25MB 3.00GHZ CPU SR1A5

$139.99



Dell Precision 5810 Workstation Xeon E5-1650 6C 3.5GHz 16GB 500GB Win10 K2200 picture

Dell Precision 5810 Workstation Xeon E5-1650 6C 3.5GHz 16GB 500GB Win10 K2200

$115.94



Intel Xeon Platinum 8168 2.70GHz 24-Core 33MB LGA 3647 CPU P/N: SR37J Tested picture

Intel Xeon Platinum 8168 2.70GHz 24-Core 33MB LGA 3647 CPU P/N: SR37J Tested

$269.99



Dell Poweredge R730xd LFF 14-Bay 2U Server | Choose Your CPU & RAM Config picture

Dell Poweredge R730xd LFF 14-Bay 2U Server | Choose Your CPU & RAM Config

$489.99



Intel Xeon E5-2699V3 2.3GHz 18 Core Processor LGA-2011 SR1XD picture

Intel Xeon E5-2699V3 2.3GHz 18 Core Processor LGA-2011 SR1XD

$33.99



Intel Xeon E5-2680 V4 CPU 2.4~3.3GHz 14-Core 35M LGA 2011-3 R3 Server SR2N7 120W picture

Intel Xeon E5-2680 V4 CPU 2.4~3.3GHz 14-Core 35M LGA 2011-3 R3 Server SR2N7 120W

$15.99



Intel Xeon Platinum 8180 Processor SR377 28-CORE 2.5 GHZ CD8067303314400 picture

Intel Xeon Platinum 8180 Processor SR377 28-CORE 2.5 GHZ CD8067303314400

$459.00



Intel Xeon X5690 SLBVX 3.46GHZ 12MB 6.4GT/s LGA 1366 Hex 6-Core CPU Grade B picture

Intel Xeon X5690 SLBVX 3.46GHZ 12MB 6.4GT/s LGA 1366 Hex 6-Core CPU Grade B

$27.99



E5-2699V4 Intel Xeon Processor  55M Cache, 2.20 GHz SR2JS CM8066002022506 picture

E5-2699V4 Intel Xeon Processor 55M Cache, 2.20 GHz SR2JS CM8066002022506

$155.00



Intel Xeon E5-2673 v4 20-Core 2.30GHz 50MB 9.60GT/s 135W Processor SR2KE picture

Intel Xeon E5-2673 v4 20-Core 2.30GHz 50MB 9.60GT/s 135W Processor SR2KE

$74.99