pvalchev
35165da9c8
check account expiration time as well; from hamajima@nagoya.ydc.co.jp pr2835
22 years ago
jcs
0b40d89296
don't complain about our new usernames that start with underscores
deraadt and millert ok
22 years ago
millert
8596724be4
Check for S/Key entries in /etc/skey, not /etc/skeyeys; David Krause
We could use skeyinfo(1) to check but this is much cheaper.
22 years ago
pvalchev
8f3f4efdd9
use mktemp; help & ok millert
23 years ago
jakob
79bd272191
mtree -l (loose permissions check) on /etc/mtree/special. ok millert@.
23 years ago
brad
90f9fa54db
fix username and groupname length checks.
--
Patch from: wilfried@ via PR#1761
Ok'd by: deraadt@
24 years ago
millert
291b1c42d4
Skip entries starting with '+' in duplicate user ID check so we don't
get false positives for YP stuff. Closes PR 1755
24 years ago
millert
678f2ac821
Don't provide diffs of sensitive files like ssh host keys. Instead,
just save the md5 checksums so we can still determine when something
change. Entries in /etc/changelist that are prefixed with a '+'
will only have their md5 checksums saved, not the actual files.
24 years ago
millert
e2f7d1725e
Add ~/.ssh/id_dsa and ~/.ssh/id_rsa to the "must be owned by user and
not readable by other" block. Remove ~/.ssh/random_seed as it is
not used in OpenSSH.
Add ~/.ssh/authorized_keys2, and ~/.ssh/known_hosts to the "must be
owned by user and not writable" block.
24 years ago
deraadt
ac223fc9c0
more fat utmp; ianm@cit.uws.edu.au
24 years ago
todd
06e9a61dc6
gnupg ring/data ownership/permission checking added; ok millert@
24 years ago
marc
39a1183d94
Todd, Aaron, Dug, and me all prefer unidiff
24 years ago
millert
95c109f653
Since sh's bulitin echo(1) supports /t and /n there is no reason to
use printf(1) here. This way there is no possibility of format
string problems and we use a shell builtin instead of an external
command.
24 years ago
hugh
ac5c85ae03
printf(1) format string fixes! checked by theo.
inspiration from dynamo@ime.net .
also a typo fix.
24 years ago
aaron
0a2ee57885
When including the listing of a directory in root's security mail, pass the
-q flag to ls(1) so that non-printable characters will appear as '?'. This
prevents a malicious user from fooling the administrator into thinking the
contents of a file name are actually valid script output (note that you can
put newlines in file names); deraadt@ ok
24 years ago
rohee
f69c6ad0ce
Add a little blurb explaing the meaning of mtree's output.
millert@ ok.
24 years ago
todd
c1a88d66cc
fix inspired by pr 744 from karls@inet.no
changed so files are e.g. backups/etc_passwd not backups/_etc_passwd
24 years ago
aaron
d57c53f78c
Capitalize 'id' to be consistent with our man pages.
24 years ago
millert
71b4a7b88d
sendmail support files now live in /etc/mail
25 years ago
aaron
9f8e4d853e
existance -> existence
25 years ago
millert
8ea805fe52
match /dev/fd{0,1,2,3}{,B,C,D,E,F,G,H}[abcdefghijklmnop] when doing device checks; closes PR #750
25 years ago
espie
bad13e3a6b
Give line printout along with line number.
25 years ago
deraadt
aad99d26ce
make /var/backups same as mtree says; mickey
26 years ago
millert
646731011d
don't include FIFOs in check for set[ug]id files and devices; andrew@nfr.net
26 years ago
marc
692caaedb2
better checks for . in path from "Denis A. Doroshenko" <cyxob@isl.vtu.lt>
26 years ago
todd
4003b60995
Check a few more DOTfiles that could potentially compromise security on a per
user basis.
27 years ago
marc
0b582277ad
fix ksh.kshrc; check ksh.kshrc, .kshrc for owner/mode/path
27 years ago
millert
f8b73365a5
Deal with non-existent /etc/skeykeys
27 years ago
deraadt
eadfd2f525
be more careful during termination
27 years ago
deraadt
b7fb34043d
completely avoid master.passwd in the changelist processing; jbernard@tater.mines.edu
27 years ago
deraadt
5d22791c21
handling for closed home directories; yensid@afri.imsa.edu
27 years ago
deraadt
dc14af3f0f
oops, detect blowfish-a as OK; yensid@imsa.edu, PR#321
27 years ago
deraadt
699300c397
better path handling; jbernard@tater.mines.edu, netbsd pr#3995
27 years ago
millert
13286d26c2
/etc/profile should be checked along with .profile for consistency with
/etc/csh.login and .login. From Chris Jones <cjones@rupert.oscs.montana.edu>
27 years ago
flipk
e64c7ac1e7
1. ignore blank lines
2. /-ro/ -> /^-ro$/ : allows hostnames containing "*-ro*" and
ignores "-root"
27 years ago
gene
4195a04efa
Don't consider an account disabled just because the password length != 13.
Also, take into account users w/ the blowfish cypher.
28 years ago
deraadt
a6e4ece949
blow away tmp dir on more traps
28 years ago
millert
9c78a0b944
check for entry in /etc/skeykeys and ~/.ssh in evil system()
28 years ago
millert
27bb79055b
Change some "test -f" to "test -s"
Don't bitch about star'd out logins unless they have a .rhosts/.shosts/.klogin
file (ie: something that would let them in via rsh/ssh).
28 years ago
millert
4fa80f455e
skip lines in /etc/passwd that start with + or -.
don't bitch about root-owned .rhosts since multiple system accounts
share root's homedir.
28 years ago
millert
bbb3533e89
Merged our changes back into 4.4BSD version.
Can't do "find -ls" since we need to store the date in an absolute format
(ls -T). Use "find -print0" | xargs -0 instead.
28 years ago
millert
0baab24189
Deal with leading whitespace in find output. Fixes problem of devices
showing up in the setuid list ;-)
28 years ago
tholo
0f388ec0c1
Update to work properly with output from find -ls; also skip commented out
lines in /etc/exports
28 years ago
bitblt
f93906164e
names of set-uid files are no longer passed to a shell.
Thanks to deraadt for pointing out the -ls flag on find.
28 years ago
deraadt
3bd428e122
toor is gone; thanks bibtlt
28 years ago
deraadt
9dcf23df2c
setup trap after mkdir
28 years ago
deraadt
a5911b292f
kill the races; found by bitblt
28 years ago
millert
1504780699
Would give complain that /etc/hosts.equiv /etc/shosts.equiv /etc/hosts.lpd
have '+' in them even when they don't. Escaped the + to fix.
28 years ago
deraadt
a6bf944ca0
setgid too
28 years ago
deraadt
e69b25ba3d
only watch for pure + entries
28 years ago