bugGKSu - Bugs: bug #10137, gksu seems to hang when '/bin/su'...

 
 

bug #10137: gksu seems to hang when '/bin/su' warns for expiring password

Submitted by:  None
Submitted on:  Tue 24 Aug 2004 05:07:20 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Mon 01 May 2006 02:38:14 PM UTC, comment #3:

The way I use to check if the prompt is there has changed; it probably fixes this problem. Can you confirm and reopen if not? Thanks!

Gustavo Noronha Silva <kov>
Project Administrator
Wed 25 Aug 2004 09:54:25 AM UTC, comment #2:

Sorry, I almost forgot the most relevant part of bug-report :(

Debian SID/Unstable, frequantly updated
packages affected/related:
gksu 1.2.1-1
libgksu1.2-0 1.2.3-1
libgksuui1.0-0 1.0.1-1
login 4.0.3-30
pam/libpam 0.76-22

Anonymous
Tue 24 Aug 2004 05:50:00 PM UTC, comment #1:

Hello, I am the author of the above bug report. I have get a look in the sources: a quick and dirty patch could be done by replacing

if(!strcmp(buf, MESSAGE)) { /* message handling */ }

with

if(strstr(buf, MESSAGE)) { /* message handling */ }

in gksu-context.c, function gksu_context_run(), lines 730-790. I have attached a proof-of-concept patch which seems to work and seems to solve the above problem.

PS: sorry for bad english, is not my first language.

Anonymous
Tue 24 Aug 2004 05:07:20 PM UTC, original submission:

On my sistem, i usually set a password warning and expiration age for all user accounts, in /etc/login.defs and pam configuration files; so, /bin/su and other authentication programs will warn when password expiration period begins.

This seems put gksu in trouble: I have experienced some very nasty hangups when password expiration date begins, but they are completly gone when password is changed (and expiration messages are no longer outputted by /bin/su).

In atteched (plain text) file: a sample of su message which I suppose put gksu in trouble, and a 'ps faux' snapshot of gksu

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #1677:  sample_patch.diff added by None (4KiB - text/x-patch - proof-of-concept patch: seems to work.)
file #1676:  report.txt added by None (2KiB - text/plain - gksu process snapshot and su message)

 

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):

 

 

Follow 4 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Mon 01 May 2006 02:38:14 PM UTCkovStatusNone=>Fixed
  Open/ClosedOpen=>Closed
Tue 24 Aug 2004 05:50:00 PM UTCNoneAttached File-=>Added sample_patch.diff, #1606
Tue 24 Aug 2004 05:07:20 PM UTCNoneAttached File-=>Added report.txt, #1605

Back to the top


Powered by Savane 3.1-cleanup1