Results 1 to 2 of 2

Thread: How to launch application with the rights of another user

  1. #1
    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).

    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

  2. #2
    Join Date
    May 2009
    Posts
    223

    Re: How to launch application with the rights of another user

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

    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.

Similar Threads

  1. Prevent user changing ACL / folder rights
    By Cyberscrap in forum Windows Server Help
    Replies: 4
    Last Post: 03-04-2012, 01:43 PM
  2. Assignment of Rights for user account with ID management?
    By Jalela in forum Networking & Security
    Replies: 5
    Last Post: 21-06-2011, 10:41 AM
  3. ms access 2003 user rights
    By jxcess in forum Windows Software
    Replies: 6
    Last Post: 16-04-2009, 06:46 PM
  4. Problem with Windows XP user Rights
    By Jagdish Gada in forum Networking & Security
    Replies: 4
    Last Post: 04-03-2009, 12:59 PM
  5. change local administrator rights to a user rights
    By savvasn in forum Active Directory
    Replies: 3
    Last Post: 12-12-2008, 07:09 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,750,827,099.65123 seconds with 16 queries