Greetings.
After creating a new installation with version '4.18.2-2' and copy
configuration from the previous server '4.17.5-1'
I am getting NT_STATUS_OBJECT_NAME_INVALID when trying to make files with
':' within their name.
Also existing files with ':' in names start to mangle, until i set
'mangled
names = no'.
I do not have any windows clients.
Are there any parameters that I am missing to restore version '4.17.5-1'
behavior?
Problem:
$ smbclient \\\\192.168.148.192\\nanopct4
Password for [WORKGROUP\flotsky]:
Try "help" to get a list of possible commands.
smb: \> cd tst
smb: \tst\> mkdir 123:
NT_STATUS_OBJECT_NAME_INVALID making remote directory \tst\123:
Environment:
[root at nanopct4 ~]# uname -a
Linux nanopct4 6.3.8-1-MANJARO-ARM #1 SMP PREEMPT Fri Jun 16 16:17:17 UTC
2023 aarch64 GNU/Linux
[root at nanopct4 ~]# pacman -Qs samba
local/samba 4.18.2-2
    SMB Fileserver and AD Domain server
Filesystem under samba shares is on ext4 and don't have problems creating
files with ':'
Current server configuration:
[global]
   workgroup = WORKGROUP
   dns proxy = no
   log file = /var/log/samba/%m.log
   max log size = 1000
   client min protocol = SMB2
   server role = standalone server
   passdb backend = tdbsam
   obey pam restrictions = yes
   unix password sync = yes
   passwd program = /usr/bin/passwd %u
   passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n
*passwd:*all*authentication*tokens*updated*successfully*
   pam password change = yes
   map to guest = Bad Password
   usershare allow guests = yes
   name resolve order = lmhosts bcast host wins
   security = user
   guest account = nobody
   load printers = no
   disable spoolss = yes
   show add printer wizard = no
[nanopct4]
  comment = nanopct4
  browseable = no
  path = /mnt
  guest ok = no
  valid users = flotsky
  force user = flotsky
  writable = yes
  create mask = 0755
  directory mask = 0755
  mangled names = no
On 03/07/2023 10:14, flot sky via samba wrote:> Greetings. > > After creating a new installation with version '4.18.2-2' and copy > configuration from the previous server '4.17.5-1' > I am getting NT_STATUS_OBJECT_NAME_INVALID when trying to make files with > ':' within their name. > > Also existing files with ':' in names start to mangle, until i set 'mangled > names = no'. > > I do not have any windows clients.Sorry, but whilst you might not have any Windows clients, Samba is trying to emulate Windows and ':' is not allowed in file names on Windows. The colon is reserved for things like disk names e.g. 'C:'> Are there any parameters that I am missing to restore version '4.17.5-1' > behavior?I am surprised it worked on 4.17.5, that code has been there for a very long time. You could investigate the 'catia' vfs module, try reading 'man vfs_catia', it will translate illegal characters to legal ones. If that doesn't work, you will probably have to use something else instead of the colon. Rowland