Fix permissions on the sudoers file when installed from package
PR: 30450 Submitted by: Dimitry Andric <dim@xs4all.nl> Approved by: maintainer timeout
This commit is contained in:
parent
452e627854
commit
cd65834dfc
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=50312
@ -6,4 +6,5 @@ if [ -e ${PKG_PREFIX}/etc/sudoers ]; then
|
||||
echo "Will not overwrite existing ${PKG_PREFIX}/etc/sudoers file."
|
||||
else
|
||||
cp -p ${PKG_PREFIX}/etc/sudoers.sample ${PKG_PREFIX}/etc/sudoers
|
||||
chmod 440 ${PKG_PREFIX}/etc/sudoers
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user