Jelle de Jong
2021-Jan-02 16:26 UTC
[Samba] libsmbclient support for ? < > \ : * | " characters possible?
Hello everybody, Can we get samba/libsmbclient to support characters that are supporet on Linux filesystems like ? < > \ : * | " I am having a few solutions where we use samba/smb as the communication layer between ext4/nfs/samba/nextcloud with inotify support ect. Nextcloud is using php-smbclient that is talking to libsmbclient and is not creating exceptions when reading files that have characters that are not supported by native windows, which I understand but I am not having any Windows systems at play here. Kind regards, Jelle de Jong
Rowland penny
2021-Jan-02 16:55 UTC
[Samba] libsmbclient support for ? < > \ : * | " characters possible?
On 02/01/2021 16:26, Jelle de Jong via samba wrote:> Hello everybody, > > Can we get samba/libsmbclient to support characters that are supporet > on Linux filesystems like ? < > \ : * | "Problem is that all of those are illegal characters in Windows filenames and Samba is an emulation of SMB, so they also need to be illegal on Samba. I cannot see how Samba could make them legal when connected to by a Linux machine, but illegal when connected to by a Windows machine, I mean how would Samba easily know what was connecting ? Rowland
Robert Marcano
2021-Jan-02 19:44 UTC
[Samba] libsmbclient support for ? < > \ : * | " characters possible?
I don't know the status of this but look like developers are at least thinking in this use case. https://wiki.samba.org/index.php/SMB3-Linux#No_reserved_path_characters On Sat, Jan 2, 2021, 12:39 PM Jelle de Jong via samba <samba at lists.samba.org> wrote:> Hello everybody, > > Can we get samba/libsmbclient to support characters that are supporet on > Linux filesystems like ? < > \ : * | " > > I am having a few solutions where we use samba/smb as the communication > layer between ext4/nfs/samba/nextcloud with inotify support ect. > > Nextcloud is using php-smbclient that is talking to libsmbclient and is > not creating exceptions when reading files that have characters that are > not supported by native windows, which I understand but I am not having > any Windows systems at play here. > > Kind regards, > > Jelle de Jong > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >
Jeremy Allison
2021-Jan-02 23:27 UTC
[Samba] libsmbclient support for ? < > \ : * | " characters possible?
On Sat, Jan 02, 2021 at 05:26:58PM +0100, Jelle de Jong via samba wrote:>Hello everybody, > >Can we get samba/libsmbclient to support characters that are supporet >on Linux filesystems like ? < > \ : * | " > >I am having a few solutions where we use samba/smb as the >communication layer between ext4/nfs/samba/nextcloud with inotify >support ect. > >Nextcloud is using php-smbclient that is talking to libsmbclient and >is not creating exceptions when reading files that have characters >that are not supported by native windows, which I understand but I am >not having any Windows systems at play here.libsmbclient supports the full UNIX character set with SMB1+POSIX extensions. So right now you can do this but you'd have to switch back to SMB1+POSIX on the server, which isn't recommended but will give you complete full POSIX character set fidelity between libsmbclient and Samba today. Once we get SMB2+POSIX extensions done for SMB2 (after the server VFS rewrite) then a new Samba smbd + new libsmbclient will support this natively. Note that you'll won't get this to a Windows server as these characters are reserved for a Windows SMB implementation.