I used the smbpasswd command to create user xeroxb225.
I'm not sure what you mean by this:
Quote:
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 mean the shared folder should be one that is owned by the xeroxb225 user?
I changed the share in smb.conf to this:
Code:
[scannershare]
path = /home/xeroxb225/Scans
writeable = Yes
create mask = 0777
directory mask = 0777
public = yes
guest ok = yes
only guest = no
after creating the 'Scans' subdirectory under /home/ben
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:
I changed the share in smb.conf to this:
Code:
[scannershare]
path = /home/xeroxb225/Scans
|
⬆️ This works. ✅ It had not worked at first because I had created the /home/xeroxb225/Scans folder as root, hence it was owned by root. So I did a
Code:
sudo chown xeroxb225:xeroxb225 /home/xeroxb225/Scans
now xeroxb225 has access!
Would still be grateful for explanation about realtionshsip between SMB user and Linux user. Thanks!