HP CIFS Server Administrator's Guide Version A.03.01.01 (5900-1282, May 2011)

The stopsmb command without specifying any option will stop both smbd and nmbd daemons
only.
NOTE: Use the scripts startwinbind and stopwinbind to start or stop the winbind daemon
only. For example, use the following command to start the winbind daemon only:
$ startwinbind
Automatically Starting Winbind at System Startup
The RUN_WINBIND parameter can be specified in /etc/rc.config.d/samba to control whether
the winbind daemon, winbindd, will start at system startup.
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.4.3 based HP CIFS Server A.03.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 167) section in
Chapter 13, “Tool Reference” for detailed information of this tool.
An Example for File Ownership by Winbind Users 109