[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Wrong permissions



On Mon, Oct 30, 2000 at 08:11:41AM +0000, Colin Watson wrote:
> Eric Van Buggenhaut <eric@eric.ath.cx> wrote:
> >I'm a DD to be, waiting for the DAM to open my accounts. I want to
> >adopt an orphaned package called crafty, a chess game player. i rebuild
> >a new package since there's a new upstream code.
> >
> >The package installs opening books in /var/lib/crafty. Since the
> >program also "learns" how to play, it regularly updates these opening
> >books. Although I explicitely specified in debian/rules to change the
> >permissions on those files to rw-rw-rw, my files in
> >debian/tmp/var/lib/crafty are still rw-r--r--.
> 
> Mode 666? Are you really sure? I can't see any justification for that.
> Perhaps use 664 instead and make the program setgid.

I'm not sure I understand. All files belong to group "root", so making the opening books files setgid doesn't help.

Maybe I have to create a new group called "chess" and chown root.chess debian/tmp/var/lib/crafty, then add the chessplayers to this group.

Any idea ?

> 
> dh_fixperms is removing the extra write permissions - see its man page.
> You either need to exclude some files or change their permissions after
> calling dh_fixperms.
> 

This worked fine, ok.

> A few other nits about the posted debian/rules:
> 
> >	rm -rf debian/tmp debian/files* core debian/substvars
> 
> dh_clean will clean up all of these for you.

Changed

> 
> >	dh_installdirs
> [...]
> >	cd debian/tmp && install -d `cat ../dirs`
> 
> dh_installdirs should already have done this.
> 

Changed

> >	install -s crafty debian/tmp/usr/games/crafty.bin
> 
> A DEB_BUILD_OPTIONS=nostrip facility (see policy 4.1) would be nice
> here.

Added too.

> 
> Cheers,
> 
> -- 
> Colin Watson                                     [cjw44@flatline.org.uk]
> 
> 
> --  
> To UNSUBSCRIBE, email to debian-mentors-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

-- 
Eric Van Buggenhaut - evanb@competitiveness.com

Please don't send proprietary format documents, I can't open them.
Use instead open-source formats like .txt or .rtf. Dvi, ps or tex files are welcome.



Reply to: