LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-26-2004, 11:08 AM   #1
ratatat
LQ Newbie
 
Registered: Dec 2004
Location: VA
Distribution: SuSE 9.2 Pro
Posts: 4

Rep: Reputation: 0
root question.


hey guys,

sorry for the newbie question. i had linux for about 3 weeks and i love it but im still not fully understanding the root, user difference.
i understand that logging in as root you want to do administrative stuff but when i download programs they dont show up in my user acount and visa versa. am i not supposed to even mess with that stuff as root? what do i need to do as root? will updating drivers and stuff like that carryover to user? cause it doesnt seem to be doing so. if i download and update for a program or download a whole new program it is not there when ilog in a root.

thanks in advance
 
Old 12-26-2004, 11:36 AM   #2
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
When you install programs as a user they normally get installed in your /home/<user> directory and are only available for you. If you install them as root it is possible to install aproogram to be available to all users.

When you download something as <user> and later want to install it as root, it is not available in your home directory because your <user> and root directory are differnt (in different places. Your <user> directory is at /home/<user> and root is at /root
 
Old 12-26-2004, 11:39 AM   #3
ratatat
LQ Newbie
 
Registered: Dec 2004
Location: VA
Distribution: SuSE 9.2 Pro
Posts: 4

Original Poster
Rep: Reputation: 0
so just dont downlaod anything in as the root in the first place right?
 
Old 12-26-2004, 11:58 AM   #4
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
That's a lot safer!! ... although, if you use APT or YUM you may need to be root in order to run the program and install updates...
 
Old 12-26-2004, 12:14 PM   #5
ratatat
LQ Newbie
 
Registered: Dec 2004
Location: VA
Distribution: SuSE 9.2 Pro
Posts: 4

Original Poster
Rep: Reputation: 0
not sure what those two things are, heh
 
Old 12-26-2004, 01:40 PM   #6
davidcousens
LQ Newbie
 
Registered: Dec 2004
Location: Portugal
Distribution: Fedora Core 3
Posts: 4

Rep: Reputation: 0
Certainly if you can download and install applications/packages as the regular user, then this is probably the best option, particularly if you are the only regular user of the machine (while running in Linux at any rate). When you have to do things as root, you might find it better not to actually log on as root - I find it better to remain as the regular user and su to root in a terminal (console) window. Any commands that you issue in this window will then be treated as coming from "root" with the greater read/write permissions associated with it. At the same time, you still have your own home folder (and thus your downloads)accessible. Also, any configuration files that are written during the installation process will tend to end up there, not in root's home folder - making the chances of the application being accessible as the regular user that much higher!

Last edited by davidcousens; 12-26-2004 at 01:43 PM.
 
Old 12-26-2004, 07:37 PM   #7
claudius753
Member
 
Registered: Jan 2004
Distribution: Mac OS X 10.6.4 "Snow Leopard", Win 7, Ubuntu 10.04
Posts: 322

Rep: Reputation: 31
I have almost never logged on to my system as root. I just log on as a user, and if I need to install anything i just do
Code:
su
Or, for instance, i want to modify a configuration file that only root has access to, such as the grub.conf i would do something like
Code:
su --command="gedit /boot/grub/grub.conf"
I prefer to do things using
Code:
su --command="blah blah blah"
when I only want to run one command as root so I don't forget I have root authority and screw something up.
 
Old 12-27-2004, 03:57 PM   #8
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
I presume you mean APT and YUM when you ask about "those two things". They are quite brilliant tools to update your system. APT is the Advanced Package Tool and works (mainly) with .deb (Debian) packages and YUM is the RPM counterpart. Read up on it. It's definitely worth your while!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
root question manicman Linux - Newbie 2 11-03-2005 05:20 AM
Root question RockmanExe Mandriva 5 08-29-2003 04:43 PM
root question Xris718 Linux - General 6 07-15-2003 03:25 AM
root question? indy317 Linux - General 5 05-20-2003 04:43 PM
root question spuppett Linux - General 4 03-01-2003 06:18 PM


All times are GMT -5. The time now is 01:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration