-
Senior Member
registered user
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 ?
-
Senior Member
registered user
Re: A "very" simple, and noob, question...
![Quote](images/misc/quote_icon.png)
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.
-
Senior Member
registered user
LOL
Yep - thats me, all over...
Too many years under M$ control - but Knoppix has parolled me ![Exclamation](images/smilies/icon_exclaim.gif)
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
-
Senior Member
registered user
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.
-
Seems to be a matter of taste ![Smile](images/smilies/icon_smile.gif)
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
-
Senior Member
registered user
![Quote](images/misc/quote_icon.png)
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.
-
Senior Member
registered user
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 ![Very Happy](images/smilies/icon_biggrin.gif)
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 ![Question](images/smilies/icon_question.gif)
[giggle]
Cuddles
-
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 ![Evil or Very Mad](images/smilies/icon_evil.gif)
PS. Instead of launching xkill try: killall xmms
-
Senior Member
registered user
![Quote](images/misc/quote_icon.png)
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
-
By timread in forum General Support
Replies: 3
Last Post: 05-18-2004, 06:50 PM
-
By zombi3 in forum General Support
Replies: 5
Last Post: 12-25-2003, 07:05 AM
-
By oreo in forum General Support
Replies: 11
Last Post: 07-23-2003, 06:33 PM
-
By geebee2000 in forum Hardware & Booting
Replies: 9
Last Post: 05-21-2003, 07:29 PM
-
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
-
Forum Rules
![Vintage Apple Macintosh PowerBook 5300CS & 165C M2785 UNTESTED - SPECIAL picture](/store/img/pwwAAOSwdYJmlXhm/s-l225//Vintage-Apple-Macintosh-PowerBook-5300CS-165C-M278.jpg)
Vintage Apple Macintosh PowerBook 5300CS & 165C M2785 UNTESTED - SPECIAL
$109.99
![Vintage Apple Macintosh Performa 600 M1350 (POWERS ON) #99 picture](/store/img/KRMAAOSwhL1mlYt-/s-l225//Vintage-Apple-Macintosh-Performa-600-M1350-POWERS-.jpg)
Vintage Apple Macintosh Performa 600 M1350 (POWERS ON) #99
$99.99
![Vintage Apple Macintosh Performa 600 M1350 EL4362H picture](/store/img/UekAAOSwWNJmlXJY/s-l225//Vintage-Apple-Macintosh-Performa-600-M1350-EL4362H.jpg)
Vintage Apple Macintosh Performa 600 M1350 EL4362H
$59.99
![VINTAGE Apple Macintosh Powerbook 190cs VTG 1995 Series Laptop M3047 READ picture](/store/img/Eh8AAOSw-XxmlZjn/s-l225//VINTAGE-Apple-Macintosh-Powerbook-190cs-VTG-1995-S.jpg)
VINTAGE Apple Macintosh Powerbook 190cs VTG 1995 Series Laptop M3047 READ
$169.99
![M0420 1990 APPLE MACINTOSH CLASSIC COMPUTER KEYBOARD MOUSE VINTAGE MAC WORKS picture](/store/img/q0YAAOSwTANmlIYl/s-l225//M0420-1990-APPLE-MACINTOSH-CLASSIC-COMPUTER-KEYBOA.jpg)
M0420 1990 APPLE MACINTOSH CLASSIC COMPUTER KEYBOARD MOUSE VINTAGE MAC WORKS
$179.99
![Vintage Sony 2MB Floppy Drive for Apple Macintosh Classic (UNTESTED) picture](/store/img/yHoAAOSwpqJmlYEf/s-l225//Vintage-Sony-2MB-Floppy-Drive-for-Apple-Macintosh-.jpg)
Vintage Sony 2MB Floppy Drive for Apple Macintosh Classic (UNTESTED)
$35.00
![Vintage Apple Macintosh IIci Computer M5780 Desktop - For Parts picture](/store/img/VZoAAOSwa~xmjp2E/s-l225//Vintage-Apple-Macintosh-IIci-Computer-M5780-Deskto.jpg)
Vintage Apple Macintosh IIci Computer M5780 Desktop - For Parts
$125.00
![Vintage Apple Black Laptop Bag Messenger Bag Rainbow Logo Mac Rare 90s 80s EUC picture](/store/img/Td0AAOSwqXdmibDU/s-l225//Vintage-Apple-Black-Laptop-Bag-Messenger-Bag-Rainb.jpg)
Vintage Apple Black Laptop Bag Messenger Bag Rainbow Logo Mac Rare 90s 80s EUC
$29.99
![APPLE MACINTOSH SE FDHD All In One Vintage Computer - Model M5011 With BOX picture](/store/img/wNAAAOSwWcRmO97K/s-l225//APPLE-MACINTOSH-SE-FDHD-All-In-One-Vintage-Compute.jpg)
APPLE MACINTOSH SE FDHD All In One Vintage Computer - Model M5011 With BOX
$289.99
![Macintosh Classic M0420 vintage apple computer TURNS ON WORKS picture](/store/img/wE0AAOSww6RmhHMp/s-l225//Macintosh-Classic-M0420-vintage-apple-computer-TUR.jpg)
Macintosh Classic M0420 vintage apple computer TURNS ON WORKS
$240.00