Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using 11.04. I have two users. (User1 and User2).

Could you please tell if it is possible to run Firefox or any other browser with another User's profile.

Let say, I am using User2 to access my office network via browser. So while working on User1, I want to access office network and dont want to switch from User1. So will it be possible to change few permissions so as to make firefox open only using User2's profile.

So scene would be something like this. 1) User1 clicks on firefox launcher 2) OS asks for User2's password 3) User1 enters User2's password 4) Firefox is launched with User2's profile. (It loads all configurations from ~/home/user2/.firefox)

share|improve this question
One solution is to use gksudo -u <user2> <command>. But this asks for sudo password where as I want to use user2's password – Amey Jah Oct 21 '11 at 17:39
Isn't this a duplicate of ? – danjjl Oct 21 '11 at 17:40
@danjjl As mentioned, i know gksudo approach. The problem is it asks for my password or admin password where as I want to run app with user2's password. Is that possible? – Amey Jah Oct 21 '11 at 18:00

Disclaimer - I am just answering the question of how to make the configuration change you are wanting, not advocating that you do this, I would highly advise you stay with the defaults and use the user password (an not the target password as outlined below).

It seems the question has morphed to how to configure sudo / gksu / gksudo to use the second users password.

This part of the question is done by configuring sudo.

sudo visudo

Look for the "Defaults" section (there are several Default lines already)

Add in a line

Defaults runaspw

This will configure sudo to ask for the user password. The problem with this is that you will have to first set a root password as sudo will ask you for the root password to run commands.

See for details

share|improve this answer

You could try gksu -u rather than gksudo. 'gksudo' implies the need for an 'administative' password.
'gksu' is 'switch user' and will ask for User2's password.
You'll probably run into permissions issues since the displayed desktop belongs to User1.

share|improve this answer
Oops. Just saw the profile manager bit. – Argusvision Oct 26 '11 at 15:47

I don't really understand your problem. Hope some of these tips can help you.

1 - Firefox supports multiple profiles:

firefox -ProfileManager
  • open ~/.local/share/applications/ (create applications folder if necessary)
  • open gEdit and type this in:
[Desktop Entry]
Name=Firefox Web Browser
Comment=Firefox Web Browser
Exec=firefox -ProfileManager %u
  • save it as: 'firefox2.desktop' under '~/.local/share/applications/'

  • drag the 'firefox2.desktop' file to the Launcher

2 - Firefox has since version 4 a Tab-groub feature - CTRL+SHIFT+E

3 - You could create a '.desktop' file under '~/.local/share/applications/' and add a link to an profile → 'Exec=firefox -P [PROFILE_NAME]'

4 - Create a new user account and switch between both profiles

share|improve this answer
I want to access my office network from safe environment. So my thinking is, if I could launch firefox and make him use user2's configuration then all the cookies or anything that is harmful will not affect when I am running under user2. – Amey Jah Oct 21 '11 at 17:59
Okay, all you want is two different user profiles. When starting Firefox with 'firefox -ProfileManager' it lets you create a new user profiles and choose between them. – Klau3 Oct 21 '11 at 18:05

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.