Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

Do not allow bypassing users .profile

$
0
0
Hello, I find out that there is a way from putty to pass a command to your shell when trying to log in to a server and bypass .profile. Actually you can do this if you open a bash shell. The command to bypass .profile is the following:
Code:

ssh -t hostname "bash --noprofile"
Is there a way to disable this option? I mean not to allow a user to bypass his .profile even when he runs this command. Thank you in advance

Viewing all articles
Browse latest Browse all 16232

Trending Articles