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

 
 

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

Submitted by:  None
Submitted on:  Sat 20 Sep 2008 11:23:20 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

No Changes Have Been Made to This Item

Back to the top


Powered by Savane 3.1-cleanup