I'm not sure all accounts are disabled on my computer, including samba-guest, and I need to disable all accounts except the one I'm using. How can I disable them all?
You should be able to set accounts to use /bin/false to prevent login.
So, for user "baduser", use
You can also edit the password file directly, using a command like
To be even more secure, you can set allowed users in ssh via
should it be permanent oder only for a small time period?
you can disable an account by adding an asterisk in front of the passwords in /etc/password and /etc/shadow or simply backup and delete (same for /etc/samba/smbpasswd depending on your samba config, otherwise you could try to only map your username to the samba an leave the others
You could try editing the PAM configuration files.
e.g. add this to the top of your
I haven't tested this, so please check it and test it first.
But it's probably easier to just make sure only you (and probably