I want to clear all enviroment variables for a specific user.
So when the user logins it should be the same as he called
env -i /bin/bash
i've tried to put this line in .bash_profile but it seems it is never executed.
|
I want to clear all enviroment variables for a specific user. So when the user logins it should be the same as he called
i've tried to put this line in .bash_profile but it seems it is never executed. |
|||
|
|
|
my understanding is you need exec to start the shell. exec env -i /bin/bash |
|||
|