Search Results

Search: Posts Made By: deshi
6,711
Posted By Corona688
Trapping signals as Chubler_XL noted would be a...
Trapping signals as Chubler_XL noted would be a good idea.

But when you set new's login shell to a shell script rather than anything new's .profile, it's a noninteractive shell -- nothing to break...
6,711
Posted By Corona688
Sounds like a good project to me. I've...
Sounds like a good project to me. I've considered such a thing but I'm having a hard time striking a balance between giving people sufficient access and preventing them from setting up botnets etc...
6,711
Posted By Corona688
I'm hoping you mean 'hacker' in the good sense. ...
I'm hoping you mean 'hacker' in the good sense. I know, I know -- corruption of a perfectly good term, but that's something beyond our control.

If you don't have sudo installed, install it,...
6,711
Posted By Chubler_XL
This migh be a good start, but you probably want...
This migh be a good start, but you probably want to research what login does (eg running /etc/profile and the like).

#!/bin/bash
trap 'exit 0' 1 2 3 15
printf "Username: "
read touser
trap -...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 04:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy