LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-07-2007, 08:30 PM   #1
operator1732
LQ Newbie
 
Registered: Oct 2005
Posts: 1

Rep: Reputation: 0
about root permission


I've been using Linux for for 4 years, but not a core user.

Here's What I've really wanted to know about root permision

I will really appreciate if you tell me what is going on exactly.

As far as I concerned, a normal user is not allowed to perform system tasks such as system shudown, accessing to root permission folders, disk mount, and things like that..

however,

1. I shutdown my computer using Gnome menu. Nontheless, Gnome is logged on with my account(not root) It does shutdown my computer.

2. Once I plugged in my usb drive, it automatically shows up on my desktop. I tried to mount the usb on the command line, but I was required to attain the root permission.

3. Eclipse (running with my account) properly executes Apach tomcat server, As number 2, I couldn't execute apach tomcat server without root permission.

4. The most irregular case. I usually update Eclipse plugin by using update menu in the Eclipse. I strongly believe that should not work since, the Eclipse is working with my account and the task is required to access to /usr/lib/eclise. Amazingly, sometimes it does work! and occasionally it does not work!


Please tell me answer to my questions

Last edited by operator1732; 12-07-2007 at 08:32 PM.
 
Old 12-07-2007, 11:13 PM   #2
Dinithion
Member
 
Registered: Oct 2007
Location: Norway
Distribution: Slackware 14.1
Posts: 446

Rep: Reputation: 59
I'm not sure about the third and forth question. However the desktop manager is started during init, (the runlevel for GUI depends on the distro. Often runlevel 4/5?) so it is started as root. Atleast kdm wont start as an other user then root.
The mounting of devices in a desktop environment (DE) isn't done by any user. As you may have noticed, the user logged in on a DE has to be member of three groups to be able to use the automatic mounting. hal, dbus and messagebus. So therefor it's a program running as root that does the actual mounting, the user only "agree". That's the way I think it works. I have no in depth knowledge of how this works, but since everyone else quiet, I gave it a shot. Since I've had some filthy water, I might not be aiming to well.
 
Old 12-07-2007, 11:16 PM   #3
Slokunshialgo
Member
 
Registered: Jan 2006
Distribution: Ubuntu 9.04, Fedora 10
Posts: 76

Rep: Reputation: 17
1) It's something that's on by default on most distros, in that if you are doing a local login (thus, actually sitting at the physical computer), you can control the power on/off status. Probably because if you really wanted to, you could just unplug the computer, so why force them to go that far? From command line, it's a restriction as you could be logging in from SSH/telnet, and be any user. Could take several hours, or even days, before somebody could get to the server and turn it back on.

2) This is, again, the fact that you're sitting at the computer. That, and to make Linux more usable to the common person. If my bit of knowing how to enable it on Slackware is common, users are added to a specific group that allows users access to these drives. How they are auto-mounted I'm guessing is a series of daemons monitoring dmesg to find out when there has been a hardware change, and acting on it.

3 & 4) Only ever used the basic Apache HTTPD server, so I don't know about Tomcat, and for plugins, only ever installed CDT, which I did as root. Check out the permissions for Eclipse (ls -l /usr/lib/eclipse). Permissions are displayed like rwx-r-xr-x, (read, write, execute grouped for UUUGGGOOO, user, group, others). If others have write permissions, then that would explain why you can. if not, then I've got nothing.
 
  


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
Cannot Get Root To Take Over Permission Of Folder windisch Linux - General 10 11-28-2007 04:34 PM
Giving a user root permission via the root group louisb Linux - Security 6 07-23-2007 01:56 AM
su root permission denied stardotstar Linux - Software 6 08-20-2006 09:24 PM
ntfs permission for non-root Mingthefirst Linux - Newbie 1 09-06-2004 10:01 AM
Permission denied as Root! Thewyzewun Linux - Newbie 3 03-13-2004 12:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:09 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