Skip to content

Commit

Permalink
cleanup fileserver
Browse files Browse the repository at this point in the history
  • Loading branch information
thetillhoff committed Sep 19, 2024
1 parent a1b7086 commit b6945b6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@ services:
- ./smb.conf:/etc/samba/smb.conf:ro
# mount data volumes into /mnt/<sharename>
- /mnt/cold/public:/mnt/public:rw
- /mnt/cold/backup:/mnt/backup:rw
18 changes: 9 additions & 9 deletions ansible/roles/fileserver-blackhole/files/smb.conf
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,12 @@
browsable = yes


# Requires the user to exist in the OS with `useradd user` and
# requires the user to have a password set in samba with `(echo abc; echo abc) | smbpasswd -a user`
[user]
# The permission of the folder should be 777
path = /mnt/user
public = no
valid users = user
writeable = yes
browsable = yes
# # Requires the user to exist in the OS with `useradd user` and
# # requires the user to have a password set in samba with `(echo abc; echo abc) | smbpasswd -a user`
# [user]
# # The permission of the folder should be 777
# path = /mnt/user
# public = no
# valid users = user
# writeable = yes
# browsable = yes
4 changes: 2 additions & 2 deletions ansible/roles/fileserver-blackhole/files/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# loop over users and passwords to create them in the container and samba - make sure uid and gid are settable from config
# Loop over shares, each with their own config

useradd backup
(echo $BACKUP_PASSWORD; echo $BACKUP_PASSWORD) | smbpasswd -a backup
# useradd username
# (echo password; echo password) | smbpasswd -a username

# /mnt is empty by default, and every share should be mounted into it
chmod 0777 /mnt -R
Expand Down

0 comments on commit b6945b6

Please sign in to comment.