From a windows client it is easy and fast to obtain from a samba share both the long filenames and the short 8.3 names by using DIR /x. Is there a way for a Linux client to obtain this same information swiftly for a large directory listing - or indeed for the samba server to show this information? The only way I have found is using smbclient's altname function but I seem to have to call this individually for each file, which makes it very slow. [In case you are wondering why anyone should want this info, it is to do with an old DOS program which accesses a samba share.] Thanks for any help Dominic -- *TimeDicer - Windows Backup and File Recovery from Whenever <http://www.timedicer.co.uk/> *
On Sat, 2012-09-01 at 13:07 +0100, Dominic Raferd wrote:> From a windows client it is easy and fast to obtain from a samba share > both the long filenames and the short 8.3 names by using DIR /x. Is > there a way for a Linux client to obtain this same information swiftly > for a large directory listing - or indeed for the samba server to show > this information? The only way I have found is using smbclient's altname > function but I seem to have to call this individually for each file, > which makes it very slow. > > [In case you are wondering why anyone should want this info, it is to do > with an old DOS program which accesses a samba share.]You can script smbclient using '-c' -- Andrew Bartlett http://samba.org/~abartlet/ Authentication Developer, Samba Team http://samba.org
Seemingly Similar Threads
- DOS clients problem with 3.6.22 vs 3.6.18
- X509v3 Subject Alternative Name in puppet generated certs...
- DO NOT REPLY [Bug 7757] New: with big file, rsync times out out when it should not; the sender is still responsive
- SMB Trans2 Response and STATUS_OBJECT_NAME_NOT_FOUND
- Bug#1042842: network interface names wrong in domU (>10 interfaces)