nwlogin (1)

Name

nwlogin - Logs a user in to a Novell file server or an eDirectory tree.

Syntax

nwlogin  [-c <string>] [-t <string>] [-p <string>] [-u <string>] [-s <string>] [-r] [-L <string>] [-P <string>] [-2 <string>] [-3 <string>] [-4 <string>] [-5 <string>] [--clearconn] [--] [-v][-h]

Description

The nwlogin utility allows a user to log in to a Novell file server or eDirectory tree from a terminal. When you execute the nwlogin command, you can add variables and strings to run additional scripts and modify variables.

You must specify the username, password, tree, context, and server.

Options

-c <string>, --context <string>

Specifies the context that the user is logging in to. This value is required.

-t <string>, --tree <string>

Specifies the tree that the user is logging in to. This value is required.

-p <string>, --password <string>

Specifies the user's eDirectory password. This value is required.

-u <string>, --user <string>

Specifies the user's eDirectory username. This value is required.

-s <string>, --server <string>

Specifies the server that the user is logging in to. This value is required.

-E, --passenv

Specifies the password via the NWPassword environment variable. You can set NWPassword to be the password that you want login to use (when you pass it using -passenv) instead of specifying the password on the command line.

For example:

export NWPassword=novell
nwlogin -r -t mytree -s myserver -u admin -c mycontext --passenv
-r runscripts

Runs any scripts associated with the specified username.

-L <string>, --LoginScript <path to login script file on local workstation>

Runs the specified login scripts during login.

-P <string>, --ProfileScript <path to a login script file on local workstation>

Runs the specified Profile login scripts during login.

-2 <string>, --variable2 <string>

Allows an additional parameter to be entered that the login utility passes to the login script.

There are four %n variables that can be specified during login (2, 3, 4, and 5). The utility then substitutes these parameters for the %n variables in the login script.

The variables are replaced in the order specified, by selecting -2, -3, -4, or -5.

-3 <string>, --variable3 <string>

Allows an additional parameter to be entered that the login utility passes to the login script.

There are four %n variables that can be specified during login (2, 3, 4, and 5). The utility then substitutes these parameters for the %n variables in the login script.

The variables are replaced in the order specified, by selecting -2, -3, -4, or -5.

-4 <string>, --variable4 <string>

Allows an additional parameter to be entered that the login utility passes to the login script.

There are four %n variables that can be specified during login (2, 3, 4, and 5). The utility then substitutes these parameters for the %n variables in the login script.

The variables are replaced in the order specified, by selecting -2, -3, -4, or -5.

-5 <string>, --variable5 <string>

Allows an additional parameter to be entered that the login utility passes to the login script.

There are four %n variables that can be specified during login (2, 3, 4, and 5). The utility then substitutes these parameters for the %n variables in the login script.

The variables are replaced in the order specified, by selecting -2, -3, -4, or -5.

--clearconn

Clears existing server connections before logging in to the current server.

--, --ignore_rest

Ignores the rest of the labeled arguments following this flag.

-v, --version

Displays version information and exits.

-h, --help

Displays usage information and exits.

Examples

nwlogin -s MYSERVER -u MYUSER -c MYCONTEXT -t MYTREE -p MYPASSWORD -2 MYVARIABLE L P r
nwlogin -u MYUSER -p MYPASSWORD -t MYTREE -c MYCONTEXT -s MYSERVER 

Authors

Copyright 2005-2009, Novell, Inc. All rights reserved. http://www.novell.com

See Also

nwlogout(1), nwconnections(1)

To report problems with this software or its documentation, visit http://bugzilla.novell.com