LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-12-2008, 08:23 PM   #1
mtdew3q
Member
 
Registered: Mar 2006
Location: the next town over from siberia
Distribution: xubuntu
Posts: 481

Rep: Reputation: 18
linux 101 - need help understanding a question about root


hi-

i tried to make some sense of this tonight and cant.
what i did is look at a media player on my desktop.
i dont think i have messed with it since installing
the o/s.

it is a root permission application.

however some applications can be run as a user
with less permissions in the group user.

is it ok to do both. run some as a regular user
and some as a user with less rights?

is there a general rule to go by?

i know that i am absolutely not suppose to log in
the desktop as root (everyone knows that though).

i know the rights like on a web host for changing
file and folder permissions and doing stuff like chmod. it is just this part of the picture that i dont get.

thanks for any pointers,
3rdshiftcoder
 
Old 05-12-2008, 08:38 PM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
I find your question a little bit unclear, but will try to give you an idea about root permissions.

Assuming that this machine is your desktop computer, you would theoretically want to be able to use something like a media player without needing special permissions. If root permission is required to run a media player, there is likely a problem with the permissions of the CDROM or DVDROM drive from which the media is being accessed.

It is OK to run different applications with varying user permissions, but in general, you will want most applications, like media players, web browser, paint programs and such, to be able to be used as your regular user account.

Things like the 'parted' utility, or known as 'Gparted', which is a disk partitioning tool, always must be run as root, and often there is no exception to this, because of the potentially destructive nature of such tools-- a mistake with gparted could cost you a filesystem or a partition, so any old regular user is not allowed to run it.

If this doesn't help you understand the situation, please provide a bit more information, such as the name of the media player in question, as well as why/how you need to run it as root, and what if anything happens when you try to use it as your regular user account.

Cheers,

Sasha
 
Old 05-12-2008, 08:40 PM   #3
mtdew3q
Member
 
Registered: Mar 2006
Location: the next town over from siberia
Distribution: xubuntu
Posts: 481

Original Poster
Rep: Reputation: 18
http://www.linuxjournal.com/article/2114

i found the answer here

ok. that explains it better. i will have to practice.
it will be nice not to have to log in as root as many times
if all goes well. i admit i may have logged in as root in a shell
to run a program once or twice :-)

thanks,
3rdshiftcoder
 
Old 05-12-2008, 08:48 PM   #4
mtdew3q
Member
 
Registered: Mar 2006
Location: the next town over from siberia
Distribution: xubuntu
Posts: 481

Original Poster
Rep: Reputation: 18
ok sasha -
i just saw your thread. thanks for the advice.
so it is "usually not". that works.

thanks for helping.

i probably can run the media player as a regular user.
i noticed my other media player is run as a regular user.

i will start keeping a better eye on this.
i want to get better this time and keep using linux
without quitting again.

thanks again,
3rdshiftcoder
 
Old 05-12-2008, 08:57 PM   #5
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Quote:
Originally Posted by mtdew3q View Post
http://www.linuxjournal.com/article/2114

i found the answer here

ok. that explains it better. i will have to practice.
it will be nice not to have to log in as root as many times
if all goes well. i admit i may have logged in as root in a shell
to run a program once or twice :-)

thanks,
3rdshiftcoder

Glad you were able to find some more info to help you understand the situation.
I just wanted to mention too, that logging into a shell as root, or using su or sudo, are usually required to do system maintenance, installing packages on the system, upgrading, etc.. The key is not to RUN as root all the time on the desktop, but rather to use the tools provided like su and sudo, to do tasks that require higher permissions, without the need to actually log in completely as root.

I have no idea how many times per day I open a root console to do something, but it is a LOT! This is because half the fun of my system, for me anyhow, is fiddling and tweaking stuff rather than just browsing the web or sending email or playing music. I *work on* the system a lot, so while I am always logged in as "me" (Sasha the regular user) I often use su to gain root permissions so I can alter system files and so on.

Have fun!
SVA
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Networking 101: Understanding Tunneling LXer Syndicated Linux News 0 08-04-2006 12:33 PM
LXer: Networking 101: Understanding iBGP LXer Syndicated Linux News 0 07-06-2006 06:03 AM
LXer: Networking 101: Understanding OSPF Routing (Part 2) LXer Syndicated Linux News 0 06-12-2006 01:03 AM
LXer: Networking 101: Understanding OSPF Routing LXer Syndicated Linux News 0 06-12-2006 12:03 AM
LXer: Networking 101: Understanding Internet Governance LXer Syndicated Linux News 0 05-11-2006 09:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:51 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
Open Source Consulting | Domain Registration