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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-26-2009, 10:12 AM
|
#1
|
Member
Registered: Mar 2009
Location: America
Distribution: Debian/Arch
Posts: 134
Rep:
|
<SOLVED> Can't run firefox as a regular user.
---------------------Solution-------------------------------------
Code:
sudo chown -R cynicalpsycho /home/cynicalpsycho/.mozilla
I had failed to insure that /home/user/.mozilla owner was me instead of root, once I changed the owner of that directory, my firefox booted up without a problem.
-----------------------------------------------------------------------
what gives, i just setup a new arch system. if i need to run a program from the terminal ie. firefox, I've got to sudo or switch into root before I can run them... what's the problem here?
Last edited by cynicalpsycho; 12-26-2009 at 12:14 PM.
Reason: problem was resolved.
|
|
|
12-26-2009, 10:15 AM
|
#2
|
Member
Registered: Mar 2009
Location: America
Distribution: Debian/Arch
Posts: 134
Original Poster
Rep:
|
...eh, trying to change the permisions in /usr/bin
|
|
|
12-26-2009, 10:15 AM
|
#3
|
Senior Member
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Rep: 
|
Your groups maybe? What's the o/p of:
Quote:
groups $USER
ls -la ~/.mozilla
|
|
|
|
12-26-2009, 10:22 AM
|
#4
|
Member
Registered: Dec 2005
Location: Kalamazoo, MI, US
Distribution: Gentoo
Posts: 44
Rep:
|
Two options come to mind right off the bat. First, firefox isn't in your $PATH as regular user, second you don't have execute permissions on firefox.
Open up a terminal then:
Code:
$ su
# whereis firefox
This will tell you where the firefox binary is (in my case it's /usr/bin/firefox). Now ls -l on that path and check the permissions line to make sure that all users have execute permission. In my case:
Code:
# ls -l /usr/bin/firefox
-rwxr-xr-x. 1 root root 4715 2009-12-16 11:25 /usr/bin/firefox
You need to make sure that the last three are set to r-x. If not, run:
Code:
# chmod 755 /usr/bin/firefox
Second theory is that it's not in your current path. Run:
and check to make sure that the location (/usr/bin) is listed in that output. If not you need to add it: (as user)
Code:
$ PATH=/usr/bin/:$PATH
$ export PATH
Then you need to add those lines to the appropriate set up file (like ~/.profile) depending on your shell.
|
|
|
12-26-2009, 10:30 AM
|
#5
|
Member
Registered: Dec 2005
Distribution: Slackware 14
Posts: 106
Rep:
|
What about the permissions in your /home/user/.mozilla/firefox?
|
|
1 members found this post helpful.
|
12-26-2009, 10:32 AM
|
#6
|
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529
|
Quote:
Originally Posted by cynicalpsycho
what gives, i just setup a new arch system. if i need to run a program from the terminal ie. firefox, I've got to sudo or switch into root before I can run them... what's the problem here?
|
A good start would be to post the command you use, and the error messages you receive.
|
|
|
12-26-2009, 11:30 AM
|
#7
|
Member
Registered: Mar 2009
Location: America
Distribution: Debian/Arch
Posts: 134
Original Poster
Rep:
|
Quote:
Originally Posted by ~sHyLoCk~
Your groups maybe? What's the o/p of:
|
groups cynicalpsycho:
Code:
lp wheel video audio optical sorage power cynicalpscyho
ls -la ~/.mozilla
Code:
total 16
drwx------ 4 root root
drwx------ 13 cynicalpsycho cyncalpsycho
drwx------ 3 root root
|
|
|
12-26-2009, 11:40 AM
|
#8
|
Member
Registered: Mar 2009
Location: America
Distribution: Debian/Arch
Posts: 134
Original Poster
Rep:
|
Quote:
Originally Posted by dracofhc
Two options come to mind right off the bat. First, firefox isn't in your $PATH as regular user, second you don't have execute permissions on firefox.
Open up a terminal then:
Code:
$ su
# whereis firefox
This will tell you where the firefox binary is (in my case it's /usr/bin/firefox). Now ls -l on that path and check the permissions line to make sure that all users have execute permission. In my case:
Code:
# ls -l /usr/bin/firefox
-rwxr-xr-x. 1 root root 4715 2009-12-16 11:25 /usr/bin/firefox
You need to make sure that the last three are set to r-x. If not, run:
Code:
# chmod 755 /usr/bin/firefox
Second theory is that it's not in your current path. Run:
and check to make sure that the location (/usr/bin) is listed in that output. If not you need to add it: (as user)
Code:
$ PATH=/usr/bin/:$PATH
$ export PATH
Then you need to add those lines to the appropriate set up file (like ~/.profile) depending on your shell.
|
Hmmm, I tried both of your suggestions.
echo $PATH shows:
/bin:/usr/bin:/sbin...etc
and ls -l /usr/bin/firefox shows:
lrwx-rwx-rwx 1 root root 28 dec 16 07:21 /usr/bin/firefox -> /usr/lib/firefox-3.5/firefox
|
|
|
12-26-2009, 11:45 AM
|
#9
|
Member
Registered: Mar 2009
Location: America
Distribution: Debian/Arch
Posts: 134
Original Poster
Rep:
|
Quote:
Originally Posted by repo
A good start would be to post the command you use, and the error messages you receive.
|
When i type:
firefox &
in the terminal it outputs:
[1] 1703
and fails to do anything else.
It's obvously a permissions problem as I have no trouble loading it if I sudo first. I'm still just not sure where the problem is.
|
|
|
12-26-2009, 11:49 AM
|
#10
|
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529
|
Quote:
When i type:
firefox &
in the terminal it outputs:
[1] 1703
|
try run
to see the errormessages
|
|
|
12-26-2009, 11:49 AM
|
#11
|
Member
Registered: Mar 2009
Location: America
Distribution: Debian/Arch
Posts: 134
Original Poster
Rep:
|
Quote:
Originally Posted by dreamwalking
What about the permissions in your /home/user/.mozilla/firefox?
|
well if you mean: /home/user/.mozilla/bin/firefox
I still show lrwx-rwx-rwx
|
|
|
12-26-2009, 11:51 AM
|
#12
|
Member
Registered: Mar 2009
Location: America
Distribution: Debian/Arch
Posts: 134
Original Poster
Rep:
|
Quote:
Originally Posted by repo
try run
to see the errormessages
|
there is no error message... it jus brings me back to my prompt as if it had executed the command.
Code:
[cynicalpsycho@keystone]$ firefox
[cynicalpsycho@keystone]$
|
|
|
12-26-2009, 12:01 PM
|
#13
|
Member
Registered: Mar 2009
Location: America
Distribution: Debian/Arch
Posts: 134
Original Poster
Rep:
|
Quote:
Originally Posted by dreamwalking
What about the permissions in your /home/user/.mozilla/firefox?
|
actually you got it i think...
the problem was thatI didn't own that file...lol...
so yeah I did a chown and it works fine now, thanks 
|
|
|
All times are GMT -5. The time now is 01:57 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|