LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 03-11-2004, 05:08 PM   #1
killswitch1968
LQ Newbie
 
Registered: Mar 2004
Posts: 21

Rep: Reputation: 15
Question Is it normal to login as root for the 'make install' command?


I was installing glib 2.3.6 with the 'make install' command but it was having problems creating directories outside of my login. I had to login as root to get the install to go. Is this normal?

Thanks,
 
Old 03-11-2004, 05:14 PM   #2
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
yup. Only root can install and remove programs!
 
Old 03-11-2004, 05:50 PM   #3
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
yes, because a normal user cannot modify (or should not modify) anything outside its home directory; everything else is system stuff and only priveleged users can modify that

programs install in system directories, so you need to have root permissions to install

and hopefully you are simply doing "su" to become root in a terminal as opposed to actually loggin in as root with gui
 
Old 03-12-2004, 07:37 PM   #4
Rundi
Member
 
Registered: Jun 2003
Location: USA
Distribution: Ubuntu
Posts: 169

Rep: Reputation: 30
I wondered

Being new to Linux and still learning things I installed Firefox and Opera and Gaim from my user (instead of root) in my user directory. Is this going to cause problems for other login users on my computer?

Should I go back and uninstall these programs and reinstall them from root?

Ouch. The pain of being ignorant.
 
Old 03-12-2004, 09:01 PM   #5
netkinex
LQ Newbie
 
Registered: Sep 2003
Posts: 2

Rep: Reputation: 0
when an install is done using su is there a concern that it will not perform properly?
or are there times when you MUST login for the install as root?
 
Old 03-12-2004, 10:26 PM   #6
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
Rundi: so you installed the executables in your home directory? though a tad strange, it doesn't have to be a problem if you include your home directory (containing the executable) in your PATH and give some sane permissions to the files
if possible, definitely login as root (do su in terminal) and to a normal make install to copy the files to the universal bin directory (usually /usr/local/bin)

netkinex: when you install as root, you are simply allowing the program to install into directories that a normal user typically does not have the privilege to modify; if you install this way and the installer installs in a sane place, then there are no concerns
in general, you will always have to login as root to install a program into bin directories, but you can also just run a compiled program from you home directory without every doing "make install" (though you would have to execute the file directly, ie ./home/user/gaim/gaim)
 
Old 03-13-2004, 01:14 PM   #7
Rundi
Member
 
Registered: Jun 2003
Location: USA
Distribution: Ubuntu
Posts: 169

Rep: Reputation: 30
Okay

Actually, on further reflection I'm not sure where Opera is installed and I may have actually installed it as root. I am running Mandrake 9.1 and Opera came as an rpm. I may have installed Opera from the Mandrake control center where you must log in as root.

But for Firefox it wasn't an rpm and I most definitely didn't install it as root. I did indeed install it in my home directory and I think that might be the cause of some of my troubles with Firefox. Since I only recently installed it I may just uninstall and reinstall it properly from root.

I feel stupid now, but at the time it seemed logical that if I downloaded the program from my profile I could install it from my profile. Stupid . . . still thinking like the old windows. Ah, well, I'm learning.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Command to Login as Root Sleepy_Sentry Linux - Newbie 2 08-12-2005 01:14 PM
Can't login to FluxBox as normal user (only as root) gpl_racer Mandriva 7 05-11-2005 06:31 PM
How do I make a command run as root at boot up under Fedora 3? versaulis Linux - Software 5 02-10-2005 06:22 PM
how to make root login disable vijaysh Linux - Security 2 02-08-2005 12:48 PM
Can't login in X as a normal user but root laxteryx Linux - General 2 11-09-2004 12:14 PM

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

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