6.5 HP StoreAll OS User Guide

NOTE: You cannot create an SMB share with a name containing an exclamation point (!) or a
number sign (#) or both.
Use the -A ALLOWCLIENTIPSLIST or -E DENYCLIENTIPSLIST options to list client IP addresses
allowed or denied access to the share. Use commas to separate the IP addresses, and enclose the
list in quotes. You can include an optional bitmask to specify entire subnets of IP addresses (for
example, ibrix_cifs -A "192.186.0.1,102.186.0.2/16"). The default is "", which
allows all IP addresses when it is used with the -A option or it denies all IP addresses when it is
used with the -E option.
The -F FILEMODE and -M DIRMODE options specify the default mode for newly created files or
directories, in the same manner as the Linux chmod command. The range of values is 0000–0777.
The default is 0700.
To see the valid settings for the -S option, use the following command:
ibrix_cifs -L
View share information:
ibrix_cifs -i [-h HOSTLIST]
Modify a share:
ibrix_cifs -m -s SHARENAME [-D SHAREDESCRIPTION] [-S SETTINGLIST] [-A
ALLOWCLIENTIPSLIST] [-E DENYCLIENTIPSLIST] [-F FILEMODE] [-M DIRMODE]
[-h HOSTLIST]
Delete a share:
ibrix_cifs -d -s SHARENAME [-h HOSTLIST]
Managing user and group permissions
Use the ibrix_cifsperms command to manage share-level permissions for users and groups.
See the HP StoreAll OS CLI Reference Guide for more information.
Linux permissions on files created over SMB
The Linux permissions on files and folders created over SMB are not generally of interest to Windows
users and administrators, but some insight is useful when considering multiprotocol access and for
StoreAll system administrators. See “Permissions in a cross-protocol SMB environment” (page 114).
The HP SMB server maps Windows user and group credentials to Linux UIDs and GIDs. The UIDs
and GIDs are generated automatically by the CIFS server unless Linux Static User Mapping has
been enabled in which case the UIDs and GIDs are looked up in Active Directory or LDAP.
Use lw-find-user-by-name to find the Linux UID for a Windows user and use
lw-find-user-by-name to find the Linux GID for a Windows group. You can also do reverse
lookups with UIDs and GIDs to find the equivalent Windows using lw-find-user-by-id and
lw-find-group-by-id.
[root@ibrix01a ~]# /opt/likewise/bin/lw-find-user-by-name IB\\testuser1
The command displays the following output:
User info (Level-0):
====================
Name: IB\testuser1
SID: S-1-5-21-3681183244-3700010909-334885885-27276
Uid: 1060661900
Gid: 1060635137
Gecos: testuser1
SMB shares 97