[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sheflug] accept user policy



> Hi All,
> 
> Well understand that this is not down to linux, but does any one know
> how you could force a user on a network to read and accept a user policy
> with regards to college network.
> 
> This would need to have a click button to accept, could this lie in the
> home directory on first logon then deleted with a log event.
> 
> Any ideas or practical use of this in a working environment would well
> appreciated.

Using XDM, you could just add a line to fire up xmessage in xsession - 
either a users local .xsession or the global Xsession.

Using the console, just some simple chnages to the global sh init files (/
etc/profile, /etc/csh.cshrc et al).

The bit of script would be something like (sh/ksh):

	if [ ! -f $HOME/.ive.not.read.the.aup ]
	then
		# display message with "less" or "xmessage"
		# get user response (either a "read ans" or $? from xmessage
		if [ $result = yes ]
		then
			touch $HOME/.ive.not.read.the.aup
		fi
	fi

It could probably be flourished a little and made safe from interruption 
using trap. Also if the user decides to clean up $HOME and they delete the 
notification file, then they see the AUP again :) You could do more and put 
some data in the file as well or whatever you want.

Anyhow ... you get the idea :)

Not used this sort of thing in practice (or come across it either). But it 
seems pretty fool proof[1].

Chris...
[1] problem with fool proof stuff - people underestimate the inginuity of 
fools

-- 
\ Chris Johnson           \ NP: Soft Cell - 18. Tainted Love (2XS Remix)
 \ cej [at] nightwolf.org.uk    ~-----,   
  \ http://cej.nightwolf.org.uk/  ~-----------------------------------, 
   \ Redclaw chat - http://redclaw.org.uk - telnet redclaw.org.uk 2000 \____


___________________________________________________________________

Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html

  GNU the choice of a complete generation.