freebsd-dev/usr.bin/login
Warner Losh 84bbb6cab3 When login tries to do the chmod/chflags on a read only file system,
it complains that it can't do it because the filesystem is readonly.
Assume that when the user has a readonly /dev that they don't care if
login can't change the permissions/flags.  While this does break a few
things like msgs, we'll assume that the user setting up the read only
system knows what they are doing.

All this change does is to stop the complaint when the file system is
read only.  It also adds comments as to why EROFS and EOPNOTSUPP are
ignored.

This allows one to have a read-only / w/o a /dev MFS and have a
relatively warning-free existence.  /etc/rc still complains when it
can't chown/chflags/chmod things, but that's easy to ignore/tweak.

Reviewed by: roberto, phk
Sponsored by: Timing Solutions
2002-08-19 20:54:00 +00:00
..
login_access.c remove __P 2002-03-22 01:22:50 +00:00
login_fbtab.c remove __P 2002-03-22 01:22:50 +00:00
login.1 Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
login.access.5 Remove whitespace at EOL. 2001-07-15 08:06:20 +00:00
login.c When login tries to do the chmod/chflags on a read only file system, 2002-08-19 20:54:00 +00:00
login.h remove __P 2002-03-22 01:22:50 +00:00
Makefile Fixed some style bugs ("From:" in vendor id line, disordered MAN line, and 2002-04-21 12:43:14 +00:00
pathnames.h Like su(1), make PAM use mandatory. Remove parts of the authentication 2001-08-30 11:27:36 +00:00
README Like su(1), make PAM use mandatory. Remove parts of the authentication 2001-08-30 11:27:36 +00:00

This login has additional functionalities. They are all based on (part of)
Wietse Venema's logdaemon package.


The following defines can be used:
1) LOGIN_ACCESS to allow access control on a per tty/user combination
2) LOGALL to log all logins

-Guido

$FreeBSD$