Running a GTK program while impersonating a user?
I am currently logged in a 'user1' and impersonate 'user2' in the console using 'sudo -u user2 -i'. Now I would like to edit files as that user using gedit; I cannot do so with user1 because it does not have permission.
However, attempting to run any GTK application as user2 while impersonating yields the following error: Code:
Gtk-WARNING **: cannot open display: :0.0 |
have the system admin change the sudo rule
you have to have read/ write permission to user2's home folder |
How do I go about doing this?
|
All times are GMT -5. The time now is 04:12 AM. |