Re: SSH block commands
Originally Posted by
bellygrevios
Hi everyone thanks for replying so quickly,
My allow users is already set to two specified users seperated by spaces and I have disabled root login already. If it can't be done from ssh config how would I block to the user from switching accounts? The sudo command was already disabled by default but that doesn't seem to be helping anything
Thanks
so, if you type
, it lets you in without a password?
If that is the case, you have a bigger issue than blocking users from switching accounts.
If it allows you to type a password,
try
Code:
sudo passwd -dl root
, logout
and then, try su again
Don't waste your energy trying to change opinions ... Do your thing, and don't care if they like it.
Bookmarks