bugGKSu - Bugs: bug #24318, gksu[do] doesn't work well with...

 
 

bug #24318: gksu[do] doesn't work well with non-root user

Submitter:  None
Submitted:  Sat 20 Sep 2008 11:23:20 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 04 May 2010 10:08:20 AM UTC, comment #1: 

Please note that the temporary xauth file is created with working permissions with the su backend (gksu -w).


gksu -w -u firefoxuser firefox

That workaround does not provide the configurability of sudo, though. So a fix for sudo would be much appreceated.

Anonymous
Sat 20 Sep 2008 11:23:20 AM UTC, original submission:  

user1@host ~ $ gksudo xclock

Works well, but

user1@host ~ $ gksudo -u user2 xclock

Dies without any activity shown, Why?

user1@host ~ $ gksudo -u user2 -d xclock

Shows:

No ask_pass set, using default!
xauth: /tmp/libgksu-WJBaTK/.Xauthority
STARTUP_ID: gksudo/xclock/27497-0-flute_TIME3077490251
cmd[0]: /usr/bin/sudo
cmd[1]: -H
cmd[2]: -S
cmd[3]: -p
cmd[4]: GNOME_SUDO_PASS
cmd[5]: -u
cmd[6]: vbif
cmd[7]: --
cmd[8]: xclock
-uffer: -Xlib: connection to ":0.0" refused by server
buffer: -Xlib: No protocol specifiedr-
l-ffer: -
buffer: --
...

That happens because temporary xauth file (in this case /tmp/libgksu-WJBaTK/.Xauthority)
created with ownership of user1. When you changing to root this works well, because root can access any file, but user2 can't read 700 files of user.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

No changes have been made to this item

Back to the top

Powered by Savane 3.13-f8d8.
Corresponding source code