forked from dperson/samba
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dockerfile better group and user creation
- Loading branch information
David Personette
committed
Aug 29, 2019
1 parent
1f3bb70
commit 5a4c03c
Showing
3 changed files
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,8 @@ MAINTAINER David Personette <[email protected]> | |
# Install samba | ||
RUN apk --no-cache --no-progress upgrade && \ | ||
apk --no-cache --no-progress add bash samba shadow tini && \ | ||
adduser -D -G users -H -S -g 'Samba User' -h /tmp smbuser && \ | ||
addgroup -S smb && \ | ||
adduser -S -D -H -h /tmp -s /sbin/nologin -G smb -g 'Samba User' smbuser &&\ | ||
file="/etc/samba/smb.conf" && \ | ||
sed -i 's|^;* *\(log file = \).*| \1/dev/stdout|' $file && \ | ||
sed -i 's|^;* *\(load printers = \).*| \1no|' $file && \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,8 @@ MAINTAINER David Personette <[email protected]> | |
RUN ["cross-build-start"] | ||
RUN apk --no-cache --no-progress upgrade && \ | ||
apk --no-cache --no-progress add bash samba shadow tini && \ | ||
adduser -D -G users -H -S -g 'Samba User' -h /tmp smbuser && \ | ||
addgroup -S smb && \ | ||
adduser -S -D -H -h /tmp -s /sbin/nologin -G smb -g 'Samba User' smbuser &&\ | ||
file="/etc/samba/smb.conf" && \ | ||
sed -i 's|^;* *\(log file = \).*| \1/dev/stdout|' $file && \ | ||
sed -i 's|^;* *\(load printers = \).*| \1no|' $file && \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,8 @@ MAINTAINER David Personette <[email protected]> | |
RUN ["cross-build-start"] | ||
RUN apk --no-cache --no-progress upgrade && \ | ||
apk --no-cache --no-progress add bash samba shadow tini && \ | ||
adduser -D -G users -H -S -g 'Samba User' -h /tmp smbuser && \ | ||
addgroup -S smb && \ | ||
adduser -S -D -H -h /tmp -s /sbin/nologin -G smb -g 'Samba User' smbuser &&\ | ||
file="/etc/samba/smb.conf" && \ | ||
sed -i 's|^;* *\(log file = \).*| \1/dev/stdout|' $file && \ | ||
sed -i 's|^;* *\(load printers = \).*| \1no|' $file && \ | ||
|