LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 02-23-2011, 07:19 AM   #1
noony123
Member
 
Registered: Oct 2010
Posts: 167

Rep: Reputation: 0
How to run multiple instances of same program !


Hi all.

In windows xp, i created another user account. Now i can run a second instance of any program by right clicking on it and selecting Run as. Is such a thing possible in linux (centos or ubuntu) in graphical environment ?
 
Old 02-23-2011, 07:29 AM   #2
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 345Reputation: 345Reputation: 345Reputation: 345
Well, many programmes will allow you to run more than one instance of them at a time, regardless. If you're specifically after running it as another user, you can open a terminal and type
Code:
su user
which will allow you to log into user's account, from which you can run the programme
 
Old 02-23-2011, 09:35 AM   #3
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,245

Rep: Reputation: 309Reputation: 309Reputation: 309Reputation: 309
Or graphical frontend for su/sudo. If you use KDE you can do it with:
Code:
kdesudo -u user_name program_name
There is also kdesu, and for Gnome: gksu and gksudo. You can also try some service menu. I think there are many such utilities.

Last edited by eSelix; 02-24-2011 at 04:54 AM.
 
Old 02-23-2011, 09:03 PM   #4
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
Actually
Code:
# This logs you in as user WITH their env
su - user

# This logs you in as user WITHOUT their env; you keep your own env
su user
 
1 members found this post helpful.
Old 02-24-2011, 11:56 AM   #5
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 345Reputation: 345Reputation: 345Reputation: 345
Thanks for that Chris; having seen both, I'd always wondered what the difference was...
 
  


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
How to run multiple squid instances wmasry Linux - Newbie 4 09-22-2010 01:10 AM
run xine in multiple instances? grmblhmpfth Linux - Software 0 06-13-2008 12:41 PM
Have multiple files open in different instances of a program vwtech Linux - Newbie 1 12-28-2007 02:19 AM
Open multiple files in different instances of a program vwtech Linux - Newbie 2 12-24-2007 12:29 PM
apt-get update-Multiple program instances sumguy231 Linux - Software 0 11-27-2004 10:29 PM


All times are GMT -5. The time now is 07:07 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration