Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
docker-samba
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
docker-samba
Commits
4574dc7e
Commit
4574dc7e
authored
Apr 06, 2018
by
Marvin Winkler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added TimeMachine Support
parent
ca0dd771
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
2 deletions
+31
-2
README.md
README.md
+8
-1
docker-compose.yml
docker-compose.yml
+1
-1
scripts/entrypoint.sh
scripts/entrypoint.sh
+22
-0
No files found.
README.md
View file @
4574dc7e
# samba
# samba
samba - freshly complied from official stable releases on debian:
jessie
samba - freshly complied from official stable releases on debian:
stretch
# Source Code
# Source Code
Check the following link for a new version: https://download.samba.org/pub/samba/stable/
Check the following link for a new version: https://download.samba.org/pub/samba/stable/
...
@@ -25,6 +25,13 @@ to restrict access of volumes you can add the following to your samba volume con
...
@@ -25,6 +25,13 @@ to restrict access of volumes you can add the following to your samba volume con
*
__SAMBA
\_
CONF
\_
MAP_TO_GUEST__
*
__SAMBA
\_
CONF
\_
MAP_TO_GUEST__
*
default: _Bad User_
*
default: _Bad User_
*
__SAMBA
\_
CONF
\_
ENABLE
\_
TIMEMACHINE__
*
default not set - if set Apple's SMB2+ extension is enabled and timemachine support activated
*
__SAMBA
\_
CONF
\_
TIMEMACHINE
\_
MAX
\_
SIZE__
*
default not set - if set it limits global disk size and preventing Time Machine from using the whole real disk space for backup
*
format:
`SIZE [K|M|G|T|P]`
*
__SAMBA
\_
CONF
\_
ENABLE
\_
PASSWORD
\_
SYNC__
*
__SAMBA
\_
CONF
\_
ENABLE
\_
PASSWORD
\_
SYNC__
*
default not set - if set password sync is enabled
*
default not set - if set password sync is enabled
...
...
docker-compose.yml
View file @
4574dc7e
...
@@ -9,7 +9,7 @@ services:
...
@@ -9,7 +9,7 @@ services:
ACCOUNT_alice
:
alipass
ACCOUNT_alice
:
alipass
ACCOUNT_bob
:
bobpass
ACCOUNT_bob
:
bobpass
SAMBA_VOLUME_CONFIG_aliceonly
:
"
[Alice
Share];
path=/shares/alice;
valid
users
=
alice;
guest
ok
=
no;
read
only
=
no;
browseable
=
no"
SAMBA_VOLUME_CONFIG_aliceonly
:
"
[Alice
Share];
path=/shares/alice;
valid
users
=
alice;
guest
ok
=
no;
read
only
=
no;
browseable
=
no"
SAMBA_VOLUME_CONFIG_bobstm
:
"
[TimeCapsule
Bob];
path=/shares/timemachine;
valid
users
=
bob;
guest
ok
=
no;
read
only
=
no;
browseable
=
yes"
SAMBA_VOLUME_CONFIG_bobstm
:
"
[TimeCapsule
Bob];
path=/shares/timemachine;
valid
users
=
bob;
guest
ok
=
no;
read
only
=
no;
browseable
=
yes
;
fruit:time
machine
=
yes;
fruit:time
machine
max
size
=
500G;
"
volumes
:
volumes
:
-
./shares/alice:/shares/alice
-
./shares/alice:/shares/alice
-
./shares/timemachine:/shares/timemachine
-
./shares/timemachine:/shares/timemachine
...
...
scripts/entrypoint.sh
View file @
4574dc7e
...
@@ -50,6 +50,28 @@ cat > /etc/smb.conf <<EOF
...
@@ -50,6 +50,28 @@ cat > /etc/smb.conf <<EOF
EOF
EOF
##
# Apple's SMB2+ extension timemachine support activated
##
if
[
!
-z
${
SAMBA_CONF_ENABLE_TIMEMACHINE
+x
}
]
then
echo
">> SAMBA CONFIG:
\$
SAMBA_CONF_ENABLE_TIMEMACHINE is set, enabling Apple's SMB2+ & timemachine"
cat
>>
/etc/smb.conf
<<
EOF
# Apple's SMB2+ & timemachine
fruit:aapl = yes
fruit:time machine = yes
EOF
if
[
!
-z
${
SAMBA_CONF_TIMEMACHINE_MAX_SIZE
+x
}
]
then
echo
">> SAMBA CONFIG:
\$
SAMBA_CONF_TIMEMACHINE_MAX_SIZE is set to
$SAMBA_CONF_TIMEMACHINE_MAX_SIZE
"
cat
>>
/etc/smb.conf
<<
EOF
fruit:time machine max size =
$SAMBA_CONF_TIMEMACHINE_MAX_SIZE
EOF
fi
fi
##
##
# SAMBA Configuration (enable NTLMv1 passwords/auth)
# SAMBA Configuration (enable NTLMv1 passwords/auth)
##
##
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment