PacketFence
Bug Tracking System

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001674PacketFencepackagingpublic2013-07-29 15:522015-02-18 11:20
Reportermzagrabe 
Assigned Tolmunro 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionwon't fix 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0001674: debian postinst should install sudo commands to /etc/sudoers.d/packetfence, not /etc/sudoers
DescriptionGreetings,

sudo snippets for Debian can be placed in /etc/sudoers.d. It is the logical place and makes more sense than mangling /etc/sudoers.

The debian/packetfence.postinst should reference a file like:

/etc/sudoers.d/packetfence. The attached patch fixes this.

Thanks for packetfence.

-mz
TagsNo tags attached.
fixed in git revision
fixed in mtn revision
Attached Filespatch file icon packetfence_sudo.patch [^] (2,055 bytes) 2013-07-29 15:52 [Show Content]

- Relationships

-  Notes
(0003353)
fdurand (administrator)
2013-07-31 19:32

Hello,
it was there because on squeeze /etc/sudoers does not include /etc/sudoers.d.
So now we can place the sudo file inside this directory but i think we can do it by another way.

Like in rules file:

mkdir -p debian/packetfence/etc/sudoers.d
install -m 440 -o root -g root debian/packetfence.sudoers debian/packetfence/etc/sudoers.d/packetfence

Where packetfence.sudoers contain all the stuff for sudo and when you remove packetfence then this file will be remove too.

Regards
Fabrice
(0003957)
lmunro (administrator)
2015-02-18 11:20

Moving to github issues.

Will be scheduled for inclusion in 5.0

- Issue History
Date Modified Username Field Change
2013-07-29 15:52 mzagrabe New Issue
2013-07-29 15:52 mzagrabe File Added: packetfence_sudo.patch
2013-07-31 19:32 fdurand Note Added: 0003353
2015-02-18 11:20 lmunro Note Added: 0003957
2015-02-18 11:20 lmunro Status new => closed
2015-02-18 11:20 lmunro Assigned To => lmunro
2015-02-18 11:20 lmunro Resolution open => won't fix


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker