Go Back   TechArena Community > Software > Tips & Tweaks
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , ,

Sponsored Links



How to launch application with the rights of another user

Tips & Tweaks


Reply
 
Thread Tools Search this Thread
  #1  
Old 08-06-2009
Member
 
Join Date: Oct 2008
Posts: 74
How to launch application with the rights of another user

With X11 forwarding, it is possible to run graphical applications remotely through an ssh connection.

However, if you want to launch applications with the rights of another user, this will not work
(eg by the user tries to run homeadmin gedit with the user's stone).

Quote:
homeadmin Totor @: ~ $ sudo su stone
[sudo] password for homeadmin:
pierre @ foo: / home / $ gedit homeadmin
PuTTY X11 proxy: MIT-MAGIC-COOKIE-1 data did not match
(gedit: 3239): Gtk-WARNING **: can not open display: localhost: 10.0
pierre @ foo: / home / $ homeadmin
Reply With Quote
  #2  
Old 01-06-2011
Fernandoa's Avatar
Member
 
Join Date: May 2009
Posts: 197
Re: How to launch application with the rights of another user

Simply copy your file precondition. Xauthority in the user directory:

Quote:
sudo cp ~ /. Xauthority / home / peter
sudo su stone
and then you can run graphical applications with the rights of Peter.

The cookie will be invalidated as soon X11 disconnect your ssh session.
Reply With Quote
Reply

  TechArena Community > Software > Tips & Tweaks


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to launch application with the rights of another user"
Thread Thread Starter Forum Replies Last Post
ms access 2003 user rights jxcess Windows Software 6 16-04-2009 07:46 PM
How to grant Dial-in rights to user when NOT using AD Larry Epn Active Directory 3 01-04-2009 06:29 AM
Problem with Windows XP user Rights Jagdish Gada Networking & Security 4 04-03-2009 12:59 PM
change local administrator rights to a user rights savvasn Active Directory 3 12-12-2008 07:09 PM
Win 2003 User Admin Rights Kevin Windows Server Help 5 17-03-2008 02:37 AM


All times are GMT +5.5. The time now is 06:54 AM.