public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* [gentoo-user] Disabling job control in bash
@ 2008-11-09 21:20 99% Alan McKinnon
  0 siblings, 0 replies; 1+ results
From: Alan McKinnon @ 2008-11-09 21:20 UTC (permalink / raw
  To: gentoo-user

Hi all,

I need to disable job control on a machine with 650+ users because way too 
many of them believe that Ctrl-Z is how you kill processes. So, I want Ctrl-Z 
to basically do nothing. I've found a great solution:

set +m

on the command line this enables monitor mode, disables job control and makes 
sure that Ctrl-Z does nothing. It's a perfect solution, as of these 650+ 
users, at least 200 are experienced on Unix and can be trusted. If they 
decide to use zsh, or run 'set -m' or undo this setting in their profile, 
then they obviously know enough to be trusted and equally obviously know how 
to use job control. They can then do that with my complete blessing.

But 'set +m' does not have the intended effect in the shell start up files 
(*profile) and bash does not seem to have a command line switch to enable it. 
Does anyone know how to get the effect of set +m when bash starts?

alan

p.s. various other solutions have been tried such as recompiling bash and 
putting the original outside the regular PATH, disabling the Ctrl-Z keystroke 
entirely, and using a restricted shell. None of these are suitable, I've 
already tried and they cause insane amounts of toruble for valid users. 'set 
+m' is exactly what I want, I just need to get it to work :-)

-- 
alan dot mckinnon at gmail dot com



^ permalink raw reply	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2008-11-09 21:20 99% [gentoo-user] Disabling job control in bash Alan McKinnon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox