Bug 75575

Summary: konsole_grantpty cannot chown /dev/pts*
Product: [Applications] konsole Reporter: mas <madonom>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description mas 2004-02-19 03:40:52 UTC
Version:            (using KDE KDE 3.1.5)
Installed from:    Compiled From Sources
OS:          Linux

kernel 2.6.2. Compiled arts, kdelibs, kdebase (all for kde 3.1.5). Opening konsole gives following:

konsole: cannot chown /dev/pts/0.
Reason: Operation not permitted
konsole_grantpty: determined a strange device name `/dev/ptmx'.
konsole: chownpty failed for device /dev/pts/0::/dev/pts/0.
       : This means the session can be eavesdroped.
       : Make sure konsole_grantpty is installed in
       : /usr/local/kde315backup/bin/ and setuid root.

It appears whenever I open a konsole window; that is, it can be /dev/pts/anythig. konsole_grantpty is installed and is setuid root. This problem does not appear with kernel 2.4.22. I have compiled against kernel 2.4.22 and against 2.6.2; the problem appears *only* when running with kernel 2.6.2 (even for when compiled against 2.6.2).

what is the owner supposed to be after chown? The owner is the user who opened konsole. Is this supposed to get changed to someone else? As root, I can chown /dev/pts* to any user I please so I don't understand why I get the 'operation not permitted'.
Comment 1 Kurt Hindenburg 2005-04-07 07:02:13 UTC
Have you upgraded to a more recent KDE and linux version?
Comment 2 Robert Knight 2007-02-10 04:23:18 UTC
This bug has been inactive for a long time without further comments from the original reporter.  Closing for now.