SMB share unaccessible
I made this SMB share on my Raspberry Pi(RPi OS Lite) for my scanner to be able to send scanned files to it. However, the scans get rejected.
Also, the SMB share is visible in other machines, but I can't login to it using the credentials I specified for the scanner. See below the contents of my smb.conf: Code:
cat /etc/samba/smb.conf tut1, tut2 and tut3 the scanners user is xeroxb225: Code:
sudo smbpasswd -a xeroxb225 Code:
# on server It hasn't become clear to me from the tutorials if the SMB user has to be the (Linux-) owner of the shared folder - in the tutorials, it's always `pi` for both. Wouldn't make sense to me though as it would mean each share could only ever be accessed be a single user. Currently, the shared folder is owned by Linux user `ben`: Code:
ben@raspi4:~ $ ls -l |
Your xeroxb225 user does not have permissions to access your username ben's home directory.
As a test change the share for the printer configuration to be: /server_name/xeroxb225 with the password you created with smbpasswd and see if send scans to the Pi. Did you and a smb password for your username ben? If you do you should be able access ben's home directory on the Pi i.e. /server_name/ben |
I used the smbpasswd command to create user xeroxb225.
I'm not sure what you mean by this: Quote:
I changed the share in smb.conf to this: Code:
[scannershare] Sending the scans to \\raspi4\scannershare is still not working though. However, I can now look at the share through a file manager on my main Linux box on the network. In any case, I wasn't aware that a Samba user created with the smbpasswd command would also create a Linux user (does it?) - I thought the two were things existing independently from each other. In my case, I had already created Linux user xeroxb225 before setting up the SMB share, but I wasn't aware the SMB user xeroxb225 had anything to do with it. EDIT: Quote:
Code:
sudo chown xeroxb225:xeroxb225 /home/xeroxb225/Scans Would still be grateful for explanation about realtionshsip between SMB user and Linux user. Thanks! |
With a standalone host users have to exist on the system as well as in the samba database. The smbpasswd command adds the system user to the database and samba authentication is verified using the database not the system.
|
All times are GMT -5. The time now is 04:02 PM. |