LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-04-2004, 07:34 AM   #1
mikemrh9
Member
 
Registered: Nov 2003
Distribution: Arch
Posts: 136

Rep: Reputation: 21
Does su have restricted root permissions?


Hi. I had a firefox installation problem which I have now fixed, but don't really understand why my solution worked.

My question is, "Do you get different rights if you log in as root, compared to logging in as a normal user and running a terminal and su ing to root? If so, what is different? If there IS a rights issue, could I have got around it by opening a new session with <ctrl><alt><Fx> and logging in as root to perform the install?"

The reason I ask is because of the following experience:

I run SuSE 9.1 and use firefox. A while ago, I downloaded an updated version of firefox and installed it to /usr/bin/firefox/, then ran it with no problems. (As an aside, is /usr/bin/ where I should be installing software to?)

I recently performed an online update through YOU, and everything was updated except for the firefox installation, which failed. I downloaded a newer version of firefox and tried to install it, and got the message:

xlib: :connection to :0.0" refused by server"
xlib: protocol not supported

All my kernel sources are installed, and xhost+ etc didn't help.

I then connected YAST directly to SuSE.com and removed firefox. This removed the original, but not the one I installed myself earlier, which continued to work fine. I reinstalled firefox using YAST and failed again to update it using YAST. I uninstalled it again (my seperately installed copy still worked after this) and once again failed to install the newer copy I had downloaded.

The failures happened when I was logged in as a normal user and ran the firefox-installer as root from a terminal.

I then tried logging in as root and ran the installer from the terminal and it worked.

Could anybody shed some light on this for me, please?

Mike.
 
Old 11-04-2004, 12:06 PM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
If you installed Firefox manually (as in not via YAST or as an rpm) then YAST won't pick it up - it only sees rpms. Firefox normally installs into it's own directory, deleting that directory should uninstall that version of FF. Then you'll need to manually remove any icons.

To give su full root rights, issue
Code:
su -
and use that. Although normal su is usually sufficient for my needs.
 
Old 11-05-2004, 06:28 AM   #3
mikemrh9
Member
 
Registered: Nov 2003
Distribution: Arch
Posts: 136

Original Poster
Rep: Reputation: 21
Ah! On further investigation, it seems that 'su -l' resets all enviroment variables and the path. I take it that the reason I got my errors before is because after running su on it's own, there was no path to the kernel sources?

So would it be right to say that the permissions are the same if you use 'su' or 'su -l', but functionality may be lost due to the configuration of environment variables?
 
  


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-like permissions ? bbbb Linux - Newbie 7 11-12-2005 07:03 AM
root permissions wass29 Slackware 3 05-10-2004 11:58 AM
Root permissions frostbite Linux - Newbie 7 08-06-2003 09:03 AM
permissions as root chlee Linux - Software 5 05-11-2003 09:49 PM
permissions as root in X chlee Slackware 1 05-10-2003 11:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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