I've had a samba server working along with 7 PC-s, 4 windows 10 and 3 ubuntu without a problem (7 different users, 7 different folders - of which one had multiples valid users.
Someday, my hd stopped working. I've bought a new one and backed all up that I've had in the old one.
I didn't changed anything, mounted the hd at the same location, same name and tested. At my computer (my user in Windows 10 has the same name as in the ubuntu server), everything worked normally but at all the others, nothing worked anymore. They all returned the 0x80070035
error or popped the error that the user can't have access and must contact the server admin (Don't know exactly what it says in english, I'm translating freely).
Things I tested without success:
- Changed the passwords;
- Changed the users and passwords;
- Changed the permissions at ubuntu, 777, 755, 700, nothing worked
- Tried accessing with another username at my computer (didn't work)
- Tried accessing with my user at the others computer (only at the ubuntu ones worked)
- Stopped using valid users at smb.conf and changed to
hosts allow = ip
from the machines (they're fixed) -> at my PC works as well, but nothing at the other ones
- In the others PCs when trying to access the forbidden folders says that access is denied, but at the allowed ones, keeps poping the network error saying that you don't have access, get in touch with the server admin.
I've already tried some solutions to the 0x80070035
error, but nothing worked... that made me wonders if it was something related to windows or is something related to Ubuntu or samba?
I'm out of ideas now, any toughts?
Edit:
Ubuntu Destktop version 18.04.6 LTS
Samba 4.7.6
/etc/fstab:
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda1 during installation
UUID=b0bcc319-3efa-425f-8eb2-3c2814ba7ec3 / ext4
errors=remount-ro 0 1
/swapfile none swap sw
0 0
UUID=E6B41C9FB41C7471 /media/francisco/Arquivos ntfs defaults,noatime 0 0
Edit2:
The folder /media/francisco/Arquivos has the right permissions, but /media/francisco hasn't, changing it solved immediately
commands used: ls -l to check the permissions and chmod 777 /media/francisco