Subject: pkg/14428: KDE2 "Create New" background menu items fail with "insufficient permissions"
To: None <gnats-bugs@gnats.netbsd.org>
From: Mark Davies <mark@mcs.vuw.ac.nz>
List: netbsd-bugs
Date: 11/02/2001 13:14:58
>Number:         14428
>Category:       pkg
>Synopsis:       KDE2 "Create New" background menu items fail with "insufficient permissions"
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 01 16:16:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Mark Davies
>Release:        NetBSD 1.5Y 29/10/2001
>Organization:
Dept. of Comp. Sci., Victoria Uni. of Wellington, New Zealand.
>Environment:
	
	
System: NetBSD turakirae.mcs.vuw.ac.nz 1.5Y NetBSD 1.5Y (MCS_WORKSTATION) #1: Tue Oct 30 22:54:21 NZDT 2001 mark@turakirae.mcs.vuw.ac.nz:/src/work/src/sys/arch/i386/compile/MCS_WORKSTATION i386
Architecture: i386
Machine: i386
>Description:
	
	The "Create New" links on the background menu (in KDE2) fail to work
	properly complaining about insufficient permissions to write files.
	This is because they copy a template file to the local Desktop then
	try to modify it and this fails because the copy preserves the 444
	permissions of the templates.

>How-To-Repeat:
	Try to create a new floppy device on the kde desktop.
>Fix:
	My fix is to modify the permissions of the template files to be
	user writeable.  Below is the patch for kdebase2/Makefile

--- Makefile~	Tue Oct 23 13:14:22 2001
+++ Makefile	Thu Oct 25 16:37:29 2001
@@ -63,6 +63,7 @@
 	@${CHMOD} u+s ${PREFIX}/bin/konsole_grantpty
 	@${CHMOD} u+s ${PREFIX}/bin/kcheckpass
 	@${CHMOD} u+s ${PREFIX}/bin/ksysguardd
+	@${CHMOD} u+w ${PREFIX}/share/kde/templates/.source/*.desktop
 	@(cd ${PREFIX}; ${FIND} ${PLIST_DIRS} \! -type d | sort >>${PLIST_SRC})
 	@(cd ${PREFIX}; ${FIND} ${PLIST_DIRS} -type d | sort -r | \
 		${SED} "s/^/\@dirrm /" >>${PLIST_SRC})

cheers
mark
>Release-Note:
>Audit-Trail:
>Unformatted: