Ty for your reply.
I added user root to smb.conf as shown above (copy/paste) and restarted both DietPi and Windows (after disconnecting the mount);
When i try to reconnect samba via user root instead of dietpi - windows shows the message “access denied”
User dietpi would work instead.
I’ve set a password now.
Restarted DietPi and tried to reconnect with Win via samba and user root
(The password for samba is the same as my shh login.)
Don’t mix user created inside NC with user available on operating system level. Both are completely different users and can’t be mixed.
Of course, this will not work as user www-data is not configured inside smb.conf Next to this user should be disabled for direct login if I’m not mistaken.
yes, i set another password - and did set a new one again its mono so no misspelling could happen.
restarted the service sudo systemctl restart smbd.service
disconnected the drive in Windows and tried to reconnect with user root pws mono
Windows says ‘access denied’
the user/pwd window shows up on connecting the share to drive “z:” in windows
I add samba via WinExplorer / Add network drive
then i choose drive “z:” and enter the path \\192.168.99.199\dietpi
then i choose ‘connect with different credentials’ and enter user root pwd mono
this worked for ‘dietpi’ and the main-pwd (Dietpi PWD)
TY so much!
I thought the path hat to be \\192.168.99.199\dietpi since the software is called dietpi.
the solution was changing the path as mentioned above!
The name of the path is defined inside the smb.conf. As a coincident name of user matches name of share
Folder name is configured inside square bracket [root] or [dietpi]. There is no direct relation between username and share. You could name the share as you wish.
Btw: Files dropped in Nextcloud in Windows (user:root via smb) are still not visible in nextcloud on android/apple (user:admin).
Trying to get sudo ncc files:scan --all run in a cronjob every 5 minutes as explained here: https://dietpi.com/forum/t/is-there-an-dietpi-cronjobs-menu/13342/10