[wplug] /usr/bin/nice /bin/bash

Jason Carr jason at flacid.org
Thu Aug 4 13:44:08 EDT 2005


The decent way is to create a shell script called nicebash in /bin/, and
have it just say:

#!/bin/sh
/usr/bin/nice /bin/bash

Then also change the /etc/shells to only include /bin/nicebash.

That's my horrid hack.

- Jason

On Fri, Jul 29, 2005 at 12:15:36AM -0400, Logan wrote:
> Is there a way to set the default priority of a person's shell?
> test:x:uid:gid::/home/test:/usr/bin/nice /bin/bash
> (in /etc/passwd) doesn't work, and neither does escaping the space.
> 
> I'm a bit concerned about trying to do it that way anyhow, as users can just 
> use the chsh command to change their default shell unless I give them a 
> restricted shell - which I don't necessarily want to do.
> _______________________________________________
> wplug mailing list
> wplug at wplug.org
> http://www.wplug.org/mailman/listinfo/wplug

-- 
Jason Carr (jason at flacid.org)


More information about the wplug mailing list