Project

General

Profile

Bug #6725

Installing bind creates /etc/bind/.screenrc copied from /etc/skel/.screenrc if screen is installed

Added by Daniel Lange about 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
01/24/2017
Due date:
% Done:

100%

Estimated time:
Affected versions:
Security IDs:

Description

1) apk install screen
(creates /etc/skel/.screenrc)
2) apk add bind
(creates
rw-r--r- 1 named named 3729 Jan 24 13:13 .screenrc
which is should not because the named user should be a deamon user only)

Affected version: Alpine Linux 3.5.0 (can't select that in the "Affected versions list" as that has not been updated to include 3.5.0 yet)

Associated revisions

Revision 1328c94d (diff)
Added by Natanael Copa about 2 years ago

main/bind: dont create homedir for bind user

We dont want copy the content of /etc/skel to /etc/bind
ref #6725

Revision 7e6395d6 (diff)
Added by Natanael Copa about 2 years ago

main/bind: dont create homedir for bind user

We dont want copy the content of /etc/skel to /etc/bind
fixes #6725

(cherry picked from commit 1328c94d12a24632191f20e762f6ebad5059750b)

History

#1 Updated by Natanael Copa about 2 years ago

  • Affected versions 3.5.0 added
  • Affected versions deleted (Alpine 2.3.5)

#2 Updated by Natanael Copa about 2 years ago

This was interesting. I think the problem is that busybox adduser will copy files from skel, even with the -S option for system user.

Its technically a busybox bug.

#3 Updated by Natanael Copa about 2 years ago

Natanael Copa wrote:

Its technically a busybox bug.

I think its not. We should pass -H to tell adduser to not create the homedir.

#4 Updated by Natanael Copa about 2 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

#5 Updated by Leonardo Arena about 2 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF