Hi all,
I am running a linux server that is used within my intranet (samba and nfs) as well as from the internet (sftp/ssh).
Some users use their sftp clients with wrong filename encoding what leads to ugly filenames (and problems) for the intranet users.
I don't see any chance to avoid this problem, so I try to fix it automatically. And ran into the next problem: I don't figure out, how to detect files with bad filenames.
I recognized, that
finds all filenames, including those with bad filenames, while
only finds files with good filenames. So I could compare these two filelists and hope to catch all bad filenames.
No solution I like.
First: I don't really know, why find behaves this way, and in consequence, I don't know, if this procedure is very reliable, and second: It seems to generate much overhead, I think.
Does anyone know, how to get "bad" filenames?
Thanks a lot,
Clemente