Administering Advanced Server at the Command Prompt Net Command
Product Manual U7613-J-Z815-6-76
© Siemens Nixdorf Informationssysteme AG 1995 Pfad: D:\O7613e6\u7613e.k09
9.2.1.7 Using Special Characters With Commands
Some of the names or passwords that you need to enter may contain one or more special
characters, for example, an ampersand ( & ). When you are at the UNIX system command
prompt typing a name with a special character in an Advanced Server command, you must
use an escape character (the back slash [ \ ]) before each special character. If you are at a
client computer, you can surround the string containing the special characters in double
quotes.
For example, to log on with the user name
marksp
and the password mrkt&dev on the UNIX
system command prompt, you could type the following:
net logon marksp mrkt\&dev
Some commonly used UNIX system special characters include the following: aster isk ( * );
semi-colon ( ; ); pipe ( | ); square brackets ( [ ] ); parentheses [ ( ) ]; questio n mark ( ? );
ampersand ( & ); caret ( ^ ); back slash ( \ ); greater-than and less-than signs ( < > );
blank ( ) and the “at” sign ( @ ).
There are other UNIX special characters that you may encounter. For more information on
special characters, consult your UNIX system documentation.
9.2.1.8 Typing Path Names With UNIX System Net Commands
The UNIX system uses a forward slash to separate names in a path. This is different from
client computers, which use back slashes. Always precede path names with c: when using
the Net command.
When typing path names at a UNIX system command prompt, you can use any of the
following methods:
Single forward slashes — separate each element of the path with single forward
slashes, like this:
net share tmpshare=c:/tmp /us:10 /r:"Share for temporary use"
Double back slashes — separate each element of the path with double back slashes,
like this:
net share tmpshare=c:\\tmp /us:10 /r:"Share fo r temporary use"
Single quotes — separate each element of the path with single back slashes and
surround the whole path in single quotes, like this:
net share ’tmpshare=c:\tmp’/r:"Share for tempo rary use"
Double Quotes - When including spaces in values, you need to enclose the va lue in
double quotes. For example, to change the comment for the domain guests group, you
could type the following command:
net group "domain guests" /comment:"All domain guests"