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.
my understanding is you need exec to start the shell. exec env -i /bin/bash
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
1 year ago