LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 06: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, 06:29 AM   #2
Snark1994
Senior Member
 
Registered: Sep 2010
Distribution: Debian
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
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, 08:35 AM   #3
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
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 03:54 AM.
 
Old 02-23-2011, 08:03 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,362

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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, 10:56 AM   #5
Snark1994
Senior Member
 
Registered: Sep 2010
Distribution: Debian
Posts: 1,632
Blog Entries: 3

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


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:54 AM.

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