 |
Index for Section 8 |
|
 |
Alphabetical listing for L |
|
 |
Bottom of page |
|
lmshare(8)
NAME
lmshare - Creates a share, deletes a share, and modifies share attributes
SYNOPSIS
/usr/sbin/lmshare [options] [sharename]
OPTIONS
-a Creates a share by prompting for share information. Share names can
contain spaces.
Enter a question mark (?) at a prompt for detailed information about
the prompt.
-b sharename bannerpage
Sets the printer banner page for the share.
-d sharename
Deletes the share.
-e Specifies that share level password encryption is active. This option
must be used with the -a option.
-f sharename field_number
Displays the information in the specified field for the share.
-g sharename
Sets queue start time between 0 and 1439 minutes (24 hours -- 1 minute)
for the share. If the start time is not specified, the default value
is 0.
-h sharename
Sets queue start time between 0 and 1439 minutes (24 hours -- 1 minute)
for the share. If the start time is not specified, the default value
is 1439.
-i filename
Creates a share by reading information from a file. In the file, use
double quotes (" ") for default strings and a zero (0) for default
numeric fields. This option must be used with the -a option. If -i is
used without a filename, standard input is read.
-l [sharename]
Displays share information. If a sharename is not specified, displays
information for all shares.
-m sharename parameters
Sets queue parameters for the share.
-n Creates a new share list.
-o sharename
Reshares an unshared print queue.
-p sharename command_string
Modifies a printer command string for the share.
-q [queuename]
Displays printer shares. If a queuename is not specified, displays all
printer shares.
-r queuename [preset_sequence]
Sets printer preset sequence. Clears existing sequence if preset
sequence is not specified.
-s queuename [post-set_sequence]
Sets printer post-set sequence. Clears existing sequence if post-set
sequence is not specified.
-v Enables debug logging. Must be first option.
-C Checks the share file.
-D sharename permissions
Sets the default Tru64 UNIX permissions in octal format for newly
created directories in the share.
-F sharename permissions
Sets the default Tru64 UNIX permissions in octal format for newly
created files in the share.
-I sharename <1 or 0>
Sets or clears ignore Tru64 UNIX permissions checking for the share.
-L sharename
Displays detailed information about the share.
-P Prunes unused disk shares from the share database. Any non-NFS disk
share that points to a non-existent UNIX directory is considered an
unused disk share.
-R Checks and repairs the share file.
-S subtype
Sets or clears the share subtype in a share record. This is useful for
converting an NFS share to a regular disk share to prevent it from
being automatically deleted when the corresponding NFS entry is removed
from the /etc/exports file. This is also useful for converting a
personal share to a regular disk share to prevent it from being
automatically deleted when the corresponding user account is removed
from the SAM database.
The subtype can be N for an NFS share, P for a personal share, or
single quotes (' ') to clear the share subtype (set to blank).
DESCRIPTION
You can use the lmshare command to create a share, delete a share, and
modify share attributes, such as setting default Tru64 UNIX file and
directory permissions for a share.
Only the lmshare command allows you to set default Tru64 UNIX file and
directory permissions for a share and configure whether or not the ASU
server enforces Tru64 UNIX permissions checking for a share.
You must be logged in as root to use the lmshare command.
EXAMPLES
· To create a share, enter:
# lmshare -a
· To display all shares, enter:
# lmshare -l
· To display detailed information about a share called test, enter:
# lmshare -L test
· To set the default Tru64 UNIX file permissions to 664 for newly
created files in a share called test, enter:
# lmshare -F test 664
· To set the default Tru64 UNIX directory permissions to 777 for newly
created directories in a share called test, enter:
# lmshare -D test 777
· To enable ignore Tru64 UNIX permission checking on a share called
test, enter:
# lmshare -I test 1
· To disable ignore Tru64 UNIX permission checking on a share called
test, enter:
# lmshare -I test 0
· To clear the subtype of a personal share called test$, enter:
# lmshare -S ' ' test$
 |
Index for Section 8 |
|
 |
Alphabetical listing for L |
|
 |
Top of page |
|