>>>>> "Ruslan" == Ruslan Ermilov <[EMAIL PROTECTED]> writes:

    Ruslan> It doesn't really matter what the home directory is set to
    Ruslan> (IIRC), but the shell must be uucico(8).

No, this is wrong on both counts.

By convention, the home directory of the uucp login has corresponded
to the UUCP PUBDIR. Traditionally this was /usr/spool/uucppublic, and
maps to /var/spool/uucppublic these days. Thus, if I wanted to
copy a file to the public file area on machine b I would incant

     uucp file b!~

and the uucico on the remote end would expand the '~' to

This usage predates (and probably inspired) the common behavior of 
current shells handling of '~' expansion. While no modern UUCP I'm
aware of uses the value of pw->pw_dir to derive PUBDIR, POLA would
imply that the interpretation of '~uucp' should be the same for
both the uucp(1) command and for shells that do ~ expansion. Therefore
I would recommend keeping the UUCP home directory as /var/spool/uucppublic.
If you want to be paranoid you make this directory owned by root.wheel
and mode 0555 without breaking anything.

As for the `uucp' account's shell, this should be set to
/sbin/nologin.  The purpose of the uucp entry in /etc/passwd is to
provide a unique runtime uid for the setuid UUCP components. Note that
there are some periodic maintenance scripts that should be run if you
actively use UUCP. These traditionally run under the `uucp' identity,
so you need to make sure that they will continue to function with
/sbin/nologin. (Which they should, otherwise they would have barfed
with uucico as the shell.) The shell for the uucp account should most
certainly NOT be uucico! And you should *never* allow remote site UUCP
logins (those that run uucico) under the `uucp' login, for obvious
security reasons. Instead, create seperate unique logins for each
remote site, just as you would for each of your shell accounts, but
set the login shell to uucico.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to