In the above example, the passwd entry for nuucp is split across two lines due to formatting constraints. In the actual file, the entry appears on a single line.uucp:*:3:5:UUCP Owner:/usr/lib/uucp:/bin/csh
nuucp::10:10:Remote UUCP User:/var/spool/uucppublic:/usr/lib/uucp/uucico
On a newly installed station, neither uucp nor nuucp has a password. It is a good idea to put a "*" in the password field for uucp, since no one should log in as uucp. You need to assign nuucp a valid password that matches the password you assign for nuucp in the Systems file. (See "The Systems File". For example, assign nuucp the password "secret.")
New password: secret Re-enter new password: secret
uucp::5:uucp nuucp::10:nuucp
For complete information on the uugetty command, see the uugetty(1M) reference page. As usual, any time you make a change to the /etc/inittab, you must tell init to read the file again with the telinit q command. Issue the following command:
t2:23:off:/usr/lib/uucp/uugetty -Nt 60 ttyf2 co_9600 # port 2
/etc/telinit q
us Any systemx 9600 unused ogin:--ogin: nuucp ssword: \ secret
Note: The Systems file is read only, so if you are using vi you must force this change to be written out by exiting vi with the :wq! option. The first field specifies the name of the station that can call (the remote station). The second field indicates that the specified station can call at any time. The third field tells uucp the name of the device to use (systemx). The third field must match one of the first field entries found in /etc/uucp/Devices. The forth field specifies the transfer speed (9600). The fifth field is normally used for a phone number, but unused for direct links. The rest of the line handles the login sequence; it is the chat script negotiated between the local station and the remote station. This chat script is very important for a successful uucp connection.
# ---A direct connection to a system systemx ttyf2 - Any direct
Note: If you have another direct connection to a station on another port, copy the systemx device entry and modify the port number accordingly. The first field in the Devices file links the device to the Systems file (third field entry). The second field tells uucp which port to access. The third field is used with an Automatic Call Unit (ACU). Direct links use a dash in the third field. The fourth field specifies the line speed. The "Any" entry allows the speed to be determined by the /etc/inittab file for that particular device. The fifth field contains the dialer name. It must be a valid entry in the /etc/uucp/Dialers file.
grep direct /etc/uucp/Dialers
The system responds with
direct
# The following entry is for use with direct connections
uudirect "" "" \r\d in:--in:
#dent"@(#)uucp:Permissions2.2"
# This entry for public login.
# It provides the default permissions.
# See the Basic Networking Utilities Guide for more information.
LOGNAME=nuucp MACHINE=us READ=/var/spool/uucp/uucppublic \
WRITE=/var/spool/uucppublic REQUEST=yes SENDFILES=yes \
COMMANDS=rmail
Note: This entry must be interpreted as a single line, even if it expands more than one physical line. This entry specifies that the user, nuucp, is allowed to log in from the remote station (us). The nuucp user on us may read any files that reside in /var/spool/uucp/uucppublic directory and write to the general public directory /var/spool/uucppublic. The users on us may make requests. Users on japan can send files.