Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP CIFS Server 3.0g Administrator's Guide version A.02.03.01: HP-UX 11i v1, v2 and v3 > Chapter 7 Winbind Support

An Example for File Ownership by Winbind Users

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

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.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2007 Hewlett-Packard Development Company, L.P.