Is there any way I can disable users from creating new shell instances through sudoers file? also disable them to set any environment variables?
I would like to write a line in the sudoers file something like:
someuser ALL=(ALL) NOPASSWD: ALL, NOTSETENVVARS: ALL, NONEWSHELLINSTANCES: ALL
where: NOTSETENVVARS means the instruction to no set new env vars NONEWSHELLINSTANCES means no new shell instances
Thanks in advance