Cannot Rename Files On A Samba Share With Version 3.6.X as a guest user
Last updated on JULY 12, 2017
Applies to:Solaris Operating System - Version 10 3/05 to 10 1/13 U11 [Release 10.0]
Information in this document applies to any platform.
After patching a Solaris 10 Samba server from 119757-16 to 119757-22, which upgraded Samba from version 3.0.35 to 3.6.4, users could not rename files on shares. The users could read, write, create, and delete but, could not rename.
The Windows clients would receive a Access denied message when attempting to rename a file.
The Samba log file, in this case a client specific log file, or the log.smbd file in default cases, would contain the error:
[2012/10/18 10:53:12.117501, 3] smbd/process.c:1467(switch_message)
switch message SMBntcreateX (pid 10295) conn 0xa297a0
[2012/10/18 10:53:12.117542, 4] smbd/uid.c:351(change_to_user)
Skipping user change - already user
[2012/10/18 10:53:12.117578, 5] smbd/filename.c:257(unix_convert)
unix_convert called on file "sambatest/wiptest/New Text Document (3).txt"
[2012/10/18 10:53:12.117623, 3] smbd/vfs.c:905(check_reduced_name)
check_reduced_name [sambatest/wiptest/New Text Document (3).txt] [/nfd/shared]
[2012/10/18 10:53:12.117676, 3] smbd/vfs.c:1039(check_reduced_name)
check_reduced_name: sambatest/wiptest/New Text Document (3).txt reduced to /nfd/shared/sambatest/wiptest/New Text Document (3).txt
[2012/10/18 10:53:12.117800, 3] smbd/error.c:81(error_packet_set)
error packet at smbd/error.c(161) cmd=162 (SMBntcreateX) NT_STATUS_ACCESS_DENIED
Further investigation revealed that the users in question would be accessing the shares as a Samba guest user. The /etc/samba/smb.conf would contain the following settings.
In the [global] section:
guest account = guest_username
map to guest = bad user
The share section would allow guest user access:
guest ok = yes
The Samba server was patched to the updated version of 3.6.4.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
Million Knowledge Articles and hundreds of Community platforms