HP CIFS Server Administrator's Guide (5900-1282, April 2011)

To configure winbind to start automatically at system startup, set RUN_WINBIND to 1.
An Example for File Ownership by Winbind Users
In the following example, use /opt/samba/bin/smbclient to connect to a share, shareA,
on the HP CIFS Server, Server1, as the user, John, from the domain, DomA:
$ cd /opt/samba/bin
$ ./smbclient //Server1/shareA -U DomA\\John
The output is as follows:
Domain=[DomainA] OS=[Unix] Server=[Samba 3.0.7 based HP CIFS Server A.02.01]
$ smb:\>put JohnTest
$ smb:\>quit
Use the ll command to show the ownership of the file, /tmp/shareA/JohnTest, as follows:
$ ll /tmp/shareA/JohnTest
When you run the ll command, the output is as follows:
-rwxr--r-- 1 DomA\John DomA\GroA 290 Nov 0 12:05 tmp/shareA/JohnTest
In the above output, the file owner is DomA\John,and the group owner is DomA\GroA. The first
part of owner and group owner, DomA, is the domain name, the \ is the winbind separator. The
last part, John and GroA are the actual user name and group name from the windows domain.
Use the ll -n command to show the UID and GID of file ownership as follows:
$ ll -n /tmp/shareA/JohnTest
-rwxr--r-- 1 10002 10005 290 Nov 0 12:05 tmp/shareA/JohnTest
When you run the ll -n command, the UID(10002) and GID (10005) are displayed in the
output. Both UID and GID are in the range of values that are specified in the smb.conf file for
winbind to use.
wbinfo Utility
You can use the wbinfo tool to get information from the winbind daemon. To use wbinfo, you
must configure and start up the winbind daemon, winbindd. See “wbinfo (page 164) section in
Chapter 13, “Tool Reference” for detailed information of this tool.
108 Winbind Support