The following are troubleshooting issues for the Oracle Solaris SMB client. For related troubleshooting information, see the following:
The Oracle Solaris SMB client configuration uses the sharectl command to set properties. Before you change property values, view the current property settings by running the sharectl get smbfs command.
If you get an Access Denied error when attempting to access or view SMB shares from a server, the password you supplied might be wrong or the SMB server might be part of a different domain.
If the SMB server and SMB client are in different domains, you must provide the domain name for the smbadm show-shares or mount command. Otherwise, the server assumes that you are attempting to authenticate a local user, and the authentication process fails.
For example, if the server solarsystem is in the example domain, the following commands would be appropriate to view and access SMB shares as user smith:
# smbadm show-shares -u "smith@example" solarsystem # mount -F smbfs -o user=smith,domain=example //solarsystem/tmp /mnt
If you are unable to view or mount SMB shares, use the following command:
smbadm show-shares [-A | -u username] [-t] server
The –A option gives anonymous access to the server if the server permits such access.
You might see the following error message when you attempt to mount an SMB share as a regular user on a mount point that you own:
$ mount -F smbfs "//username@server-name/share-name" mount-point /usr/lib/fs/smbfs/mount: can't resolve name "username@server-name", \ node name or service name not known
Verify that you have the following entries in your /etc/security/exec_attr.d/core-os file:
Forced Privilege:solaris:cmd:RO::/usr/lib/fs/smbfs/mount:privs=sys_mount Forced Privilege:solaris:cmd:RO::/usr/lib/fs/smbfs/umount:privs=sys_mount
These entries in the /etc/security/exec_attr.d/core-os file enable you to mount and unmount SMB shares on mount points that you own as a regular user.
You might see the File changed as we read it warning in the following situations:
When you use the Oracle Solaris SMB client to mount an SMB share and use the gtar utility to write the share to a tape
When you use the Oracle Solaris SMB client to mount an SMB share and use the tar utility to check file attributes after setting them
Other than these warnings, the tar and gtar operations succeed as expected.
You can ignore these warnings.
By default, shares that are mounted by the mount_smbfs command enable Oracle Solaris extended attributes by setting the xattr mount option. However, if the SMB server does not support Windows named streams, shares mounted by mount_smbfs set the noxattr mount option.
To verify whether the xattr or noxattr mount option is used, type the following command:
$ mount -v | grep 'type smbfs'
The following example shows that the share mounted on /mnt has xattr set, while the share mounted on /tmp has noxattr set:
$ mount -v | grep 'type smbfs' //root@solarsystem/tmp on /mnt type smbfs remote/read/write/setuid/devices/intr/xattr/dev=5080000 on Tue Jun 5 18:20:48 2012 //root@pluto/files on /files type smbfs remote/read/write/setuid/devices/intr/noxattr/dev=4800000 on Mon Jun 4 11:37:26 2012