On Oct 14 15:28:20, Brad Tilley wrote:
> Brad Tilley wrote:
> > I created the file /etc/profile to force sh and ksh to logout users
> > after a certain period of idleness:

Why do you want to logout idle users?
There is sysutils/idled if you need it.

> > $ cat /etc/profile
> > 
> > # Force sh and ksh to logout idle users after 15 minutes
> > # Prevent normal users from disabling this setting
> > readonly TMOUT=900
> > export TMOUT
> > 
> > That works great. I've tried to do the same to the other default shell
> > in base (csh). I added 'set autologout=15' to /etc/csh.cshrc and then to
> > /etc/csh.login as well (I'm turning knobs like a good clueless user).
> > 
> > I then read the csh man page, but saw no mention of autologout. Perhaps
> > the OpenBSD version of csh does not support this? Is there a way to do
> > this with csh? If not, I'll need to remove access to the shell.

Why?

> Replying to myself. I can't seem to make csh auto logout inactive users.
> So I did this:
> 
> rm /bin/csh
> cp /bin/ksh /bin/csh

lol wut?

> Any good reason to not do this?

You just forced your csh users to use ksh. Why do you want them to hate you?
Why don't you also 'mv /bin/rm /bin/ls' while you are at it?

> Base seems to only have two shells as ksh and sh
> have the same md5 checksum.

And the same inode number.

> I'm hoping csh is only included for historical reasons or in
> honor of Bill Joy or something such as that.

Or maybe to be used by the thousands of people that want to use it.

Reply via email to