Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-28-2003, 10:41 PM   #1
Registered: Sep 2003
Distribution: RH9
Posts: 49

Rep: Reputation: 15
How do I get ALL privileges?

I'm the only user on my Linux system (Red Hat 9) but I've read stuff that we shouldn't log in as root, but create another account and use that instead. I've created another account but like when I try to install rpm packages for example I get an error...but if I use su and log in as root, it works. Also I can't access some folders under the new account, but I can access them as root.

So is there anyway that the new account could have ALL the privileges as root? Thanks.
Old 09-28-2003, 10:46 PM   #2
Registered: Jul 2003
Distribution: Currently Suse 11.1 but have RH7,8,9 / Fedora 7,8_64,9_64,&10_64
Posts: 634

Rep: Reputation: 30
ummm well just log in as root

but thats not such a good idea
since what ever u mistype could be very bad

thats why they suggest not being root full time

safer for your system that way

up to you tho
Old 09-28-2003, 11:11 PM   #3
LQ Guru
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
The main reason it's not good to run as root all the time is because of all those privileges. Most of the privileges that root has are not needed for everyday use of your computer, so there's no reason to run as root all the time. Anyone here will tell you it's just asking for trouble One analogy I like is that being root all the time is like running around in a giant Japanese robot suit all the time. It'd be cool, sure, but you might accidentally step on something important. Don't get in the giant robot suit unless you have to.

At any rate, it's not likely that you'll be installing rpms all the time. Once you get all the software installed and configured that you want to use, you barely ever need to become root after that.
Old 09-28-2003, 11:16 PM   #4
Registered: Aug 2003
Location: Atlanta
Distribution: Debian, OS X
Posts: 711

Rep: Reputation: 31
Originally posted by wapcaplet
[giant Japanese robot suit [/B]
w00t go Gundam ^_^

but yeah anyways, when you need to be root, just bust out a terminal and

$ su
:enter pass:

and WHAMO instant root for all your installation (and other stuff) needs.
Old 09-29-2003, 01:48 AM   #5
LQ Veteran
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 85
Agreed - running as root should be a deliberate, intentional action, to accomplish a specific goal. After the task (such as installing new packages) is done, you should exit root privs.

As a practical example, suppose you do a directory listing and realize that you don't need an old temporary directory you set up 2 months ago, so you run the: rm * -rf command. If you are root, and happen to be in that temporary directory, you will get the results you want, but if you're root and you happen to be in the parent directory (or any other directory for that matter) you will end up blowing away a lot of stuff that you didn't intend to. Therefore, unless there's a specific reason to be root, don't do it.

Lastly, wapcaplet, _excellent_ analogy, it's great -- J.W.
Old 09-30-2003, 03:11 PM   #6
Registered: Sep 2003
Distribution: RH9
Posts: 49

Original Poster
Rep: Reputation: 15
Ok, thanks guys for the replies...

So if I install wxWindows for GTK (which I need to do) as root....can I access it under another account?
Old 09-30-2003, 04:02 PM   #7
Registered: Jul 2003
Location: Bedford, UK
Distribution: Slackware 11.0, LFS 6.1
Posts: 519

Rep: Reputation: 30
When you install some software it is accessible to all users. All installed software goes in the shared folders that all users can see (like /usr/bin and places like that). What goes in the user's home directory (signified by a tilde ~) is documents, configuration files, projects etc. Those are viewable only by the owners, unless the owner grants other users privelige to see and/or edit the files.


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
USB HD Needs Root Privileges rrrssssss Linux - Hardware 3 11-13-2005 04:08 PM
Root privileges for user ar1 Linux - Security 2 01-07-2005 09:33 PM
privileges problems slinky2004 Slackware 12 10-15-2004 06:42 PM
privileges for kppp allelopath Linux - General 2 09-10-2003 07:41 PM
user privileges rieta Linux - Newbie 9 08-29-2002 11:48 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:15 PM.

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