Replies: 2 comments 2 replies
-
Right now it is not a feature in CasaOS however, you can setup your own Samba shares. |
Beta Was this translation helpful? Give feedback.
-
Here is what I did to Authenticate the shared folder in Casa Share Short Version: Step 2 edit text /etc/samba/samba.casa.conf ***replace (username1) with your own user Step 3 Add user to SMBdb (once) sudo smbpasswd -a (username1) #replace (username1) with your own user and complete input password for the (username1) sudo smbpasswd -a (username2) Step 4 restart CasaOS service sudo systemctl restart casaos Step 5 after setup is complete Now you can use user you create in SMBdb to access Casa Shared location. Explaining: every time a share folder is created, it write Shared Folder Settings to /etc/samba/smb.casa.conf. So this is where we can config the shared for authentication. Somehow, when new share is created reset my settings so we need to crate .bak. we can re insert them from .bak. All the config setting are base on Samba Configuration file for share location setting. About User, I don't know why SMB don't use user in Unix, so i have to manually add user to SMB service. (i'm new to this too) |
Beta Was this translation helpful? Give feedback.
-
Is there a proper way to add auth check on samba share.
what i know
i find that casaos files sharing is based on the samba4, and the casaos samba config path is
/etc/samba/smb.casa.conf
.as the config shows, all the dirs shared are public as default.
what i want
I want to auth some of the dirs.
For example, /A is public, /B is for user b, /C is for user C. Then the guest user could view /A; authed user b could view /A /B.
my opinion (may not work)
add the auth config in
/etc/samba/smb.conf
, and left the public config by casaos.Beta Was this translation helpful? Give feedback.
All reactions