Manual Page for cifslogin
CIFSLOGIN(1)               Sharity User's Manual

NAME
    cifslogin - Login to a CIFS server.

LOCATION
    %globaldir%/bin/cifslogin

SYNOPSIS
    cifslogin <server> [<options>]
    cifslogin //<server>/<share> [<options>]

DESCRIPTION
    This command logs the calling user in to a server. While the login
    is established, all file accesses by the calling user are performed
    under the permissions available at the server with the credentials
    passed to cifslogin. <server> must be the netbios name of the server
    where you want to log in. If the server is in share-level security
    mode, you must use the second form and specify the share you want to
    log in to. The server name must be resolvable through the netbios
    name service or with DNS. If neither gives an IP address, you can
    configure the IP address explicitly in the configuration file.
    Valid options are:

    -h   Print short help and exit
    -U <username> Login on server as this user. By default, the remote
         username is the same as the calling user's local name.
    -D <domain> Send this domain name to server. If not specified,
         Sharity's default domain is used. Some servers accept connects
         only from clients from their own domain.
    -P <password> Password given in commandline. Using this option is
         STRONGLY discouraged because it will write your password to the
         shell's history file.
    -S   Read password from standard input (implies -N). This option can
         be used if the password is created by an external program (e.g.
         retrieved from a database).
    -N   Don't prompt for a password. If no password is given by the -P
         or -S options, use an empty password.
    -u   Allow sending password unencrypted. Sharity does not allow
         sending unencrypted passwords by default (for security reasons).

    If you don't specify a share name for a share-level security server,
    cifslogin prompts the user for the share name.

    If the password is not supplied with the -S or -P option and if
    the user is not already logged in, cifslogin prompts the user for
    a password.