49. How do I access my scans for eduPrint in Linux?
Where are the scans stored
The DFS-path to the directory where your scans are stored is smb://user.uu.se/eduPrint/Scan/USERNAME. This path works fine in macOS but may or may not work in Linux. The other official path is smb://eduprint.its.uu.se/scan.
How to access via user-space tool smbclient
Use smbclient to access your directory. But use your own username instead of mine. smbclient works like a very old school FTP-client if you remember those. It may be convenient because it is all in userspace and do not require any special privileges except access to the smbclient binary and network access.smbclient -W USER -U jny25782 -m SMB3 //eduprint.its.uu.se/scan/ cd jny25782 ls
This works as well, without specifying a higher version of the SMB-protocol.
smbclient -W USER -U jny25782 -I eduprint.its.uu.se ///scan/ cd jny25782 ls
How to access them in Linux via kernel mount
You can mount directly on the command line like this. Use your own username and password.sudo mount -t cifs -o username=jny25782,password=PASSWORDA,domain=user //eduprint.its.uu.se/scan/jny25782 /mnt/
You may exclude your password and be prompted instead. This works in Scientific Linux 6 (compatible with RHEL6) and CentOS 7 (compatible with RHEL7).
sudo mount -t cifs -o username=jny25782,domain=user //eduprint.its.uu.se/scan/jny25782 /mnt/
The default settings in Ubuntu 17.10 do not work. Try SMB version 2.1 like this. (Not needed anymore in 2019-03-11.)
sudo mount -t cifs -o username=jny25782,domain=user,vers=2.1 //eduprint.its.uu.se/scan/jny25782 /mnt/