Date: Sat, 05 Aug 2006 14:56:50 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: beno <beno@web.vi> Cc: freebsd-questions@freebsd.org Subject: Re: User Information (Easy Questions!) Message-ID: <44D4A3A2.3080306@infracaninophile.co.uk> In-Reply-To: <44D49564.6030408@web.vi> References: <44D478C2.5040205@web.vi> <44D48B18.3020401@infracaninophile.co.uk> <44D49564.6030408@web.vi>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
beno wrote:
> Matthew Seaman wrote:
>> Note: this is potentially a problem. If the UID number gets reused for a
>> different account, that new user will get all the ownership rights to the
>> old users' files. It can often be a better policy to disable an old
>> account
>> -- set the password field in /etc/master.passwd to '!!' and change the
>> shell
>> to /sbin/nologin -- rather than to delete it.
>>
> Before I go trotting off and do this and potentially replace the wrong
> field, which one is the passwd?
> tick:$1$CDKLp9qt$sfo5Mi5/dB1uGZUuc5uKk0:1001:1001::0:0:User
> &:/home/tick:/sbin/nologin
The second field -- see passwd(5) (by which I mean type 'man 5 passwd', if
it isn't obvious)
>> You can also get a report on any 'unowned' files in the weekly periodic
>> e-mail by adding
>>
>> weekly_noid_enable="YES"
>>
>> to /etc/periodic.conf
>>
> Where does it find the email address?
The periodic emails are sent to root@localhost. There are at least two
every day, plus an extra at the end of each week and at the end of each
month -- you're expected to set up an alias that forwards them to the
sysadmins for the machine.
Check /etc/mail/aliases, you should have a line that says something like:
root: youruid
in there towards the top. Edit the file appropriately and then type
'make' in the /etc/mail directory. If you haven't done that and you've been
running a FreeBSD box for a while, you'll find that root's mailbox --
/var/mail/root -- is probably rather full.
Cheers,
Matthew
--
Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
Kent, CT11 9PW
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFE1KOo8Mjk52CukIwRCGCtAKCRlKxys2ZV9KnKs/O+px8gJ+rreQCdHQwT
dWwsnBUpGHxQNqIYu47GE5c=
=3C2g
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44D4A3A2.3080306>
