denylogin.man





denylogin(1)		  User Commands		     denylogin(1)



NAME
     denylogin - shell for disabled accounts

SYNOPSIS
     denylogin [ options ]

DESCRIPTION
     The denylogin command is used to provide a	shell  for  users
     who  should  not  be  permitted  to  login	to a machine.  It
     displays an informative message, sleeps a bit (or waits  for
     a key to be pressed), and then exits.

OPTIONS
     The options listed	below cannot be	provided in  /etc/passwd,
     but they are valid	on the command line.

     -h, --help
	  Show a brief usage message, then exit.

     -V, --version
	  Show the version of denylogin, then exit.

MESSAGE	CUSTOMIZATION
     It	is often desirable to  provide	customized  messages  for
     specific sites or specific	types of accounts.  The	denylogin
     program allows for	this sort of customization by reading the
     message  from a message file (which can live in several dif-
     ferent places), before falling back to a built-in default.

     The following files are used, if they exist,  in  the  order
     listed  here.   (If any of	these files exists, the	first one
     found is used and no others are searched for.)

	  dirname/basename.msg
	  /var/adm/gv/basename.msg
	  /etc/basename.msg
	  dirname/denylogin.msg
	  /var/adm/gv/denylogin.msg
	  /etc/denylogin.msg

     In	the search paths above,	dirname	refers to  the	directory
     component	of  the	 path  by  which denylogin is called, and
     basename refers to	the file  component  (basename)	 of  that
     path.  This can be	used to	provide	custom messages	by creat-
     ing  alternate  names  for	 denylogin  (e.g.  with	 symbolic
     links.)

     Certain strings in	message	 are  replaced	on  output  in	a
     manner similar to printf(3).  The following field specifiers
     are available:





SunOS 5.5.1 Last change: $Date:	1998/02/01 01:06:02 $		1






denylogin(1)		  User Commands		     denylogin(1)



	  %d   Message delay time, in seconds.
	  %h   Hostname, as returned by	uname(2).
	  %H   Fully qualified hostname.
	  %%   A literal percent (%) character.

NOTES
     It	is very	important  that	 denylogin  does  not  appear  in
     /etc/shells,  otherwise  users  with this set as their shell
     will be allowed to	use the	FTP to access the system.   There
     may  be  other  steps that	should be taken	to prevent use of
     the account as well.

SEE ALSO
     login(1), in.ftpd(1m), shells(4)

AUTHOR
     Garrett D'Amore <garrett@qualcomm.com>






































SunOS 5.5.1 Last change: $Date:	1998/02/01 01:06:02 $		2




By states for GNU enscript 1.5.0