Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm new to linux and I've just set up an arch linux box. i was looking in /var/log/auth.log this morning to debug something when I found this:
Mar 11 19:54:52 sponge sshd[3653]: Invalid user horde from 61.218.16.227
Mar 11 19:54:52 sponge sshd[3653]: Excess permission or bad ownership on file /var/log/btmp
Mar 11 19:54:52 sponge sshd[3653]: error: Could not get shadow information for NOUSER
Mar 11 19:54:52 sponge sshd[3653]: Failed password for invalid user horde from 61.218.16.227 port 46646 ssh2
Mar 11 19:54:52 sponge sshd[3653]: Excess permission or bad ownership on file /var/log/btmp
Mar 11 19:54:55 sponge sshd[3656]: Invalid user cyrus from 61.218.16.227
Mar 11 19:54:55 sponge sshd[3656]: Excess permission or bad ownership on file /var/log/btmp
Mar 11 19:54:55 sponge sshd[3656]: error: Could not get shadow information for NOUSER
Mar 11 19:54:55 sponge sshd[3656]: Failed password for invalid user cyrus from 61.218.16.227 port 46690 ssh2
Mar 11 19:54:55 sponge sshd[3656]: Excess permission or bad ownership on file /var/log/btmp
Mar 11 19:54:58 sponge sshd[3659]: Invalid user www from 61.218.16.227
Mar 11 19:54:58 sponge sshd[3659]: Excess permission or bad ownership on file /var/log/btmp
Mar 11 19:54:58 sponge sshd[3659]: error: Could not get shadow information for NOUSER
Mar 11 19:54:58 sponge sshd[3659]: Failed password for invalid user www from 61.218.16.227 port 46730 ssh2
Mar 11 19:54:58 sponge sshd[3659]: Excess permission or bad ownership on file /var/log/btmp
Mar 11 19:55:01 sponge sshd[3662]: Invalid user wwwrun from 61.218.16.227
Mar 11 19:55:01 sponge sshd[3662]: Excess permission or bad ownership on file /var/log/btmp
Mar 11 19:55:01 sponge sshd[3662]: error: Could not get shadow information for NOUSER
Mar 11 19:55:01 sponge sshd[3662]: Failed password for invalid user wwwrun from 61.218.16.227 port 46775 ssh2
Mar 11 19:55:01 sponge sshd[3662]: Excess permission or bad ownership on file /var/log/btmp
Mar 11 19:55:04 sponge sshd[3665]: Invalid user matt from 61.218.16.227
Mar 11 19:55:04 sponge sshd[3665]: Excess permission or bad ownership on file /var/log/btmp
Mar 11 19:55:04 sponge sshd[3665]: error: Could not get shadow information for NOUSER
Mar 11 19:55:04 sponge sshd[3665]: Failed password for invalid user matt from 61.218.16.227 port 46818 ssh2
Mar 11 19:55:04 sponge sshd[3665]: Excess permission or bad ownership on file /var/log/btmp
Mar 11 19:55:07 sponge sshd[3668]: Invalid user test from 61.218.16.227
Mar 11 19:55:07 sponge sshd[3668]: Excess permission or bad ownership on file /var/log/btmp
Mar 11 19:55:07 sponge sshd[3668]: error: Could not get shadow information for NOUSER
Mar 11 19:55:07 sponge sshd[3668]: Failed password for invalid user test from 61.218.16.227 port 46864 ssh2
Mar 11 19:55:07 sponge sshd[3668]: Excess permission or bad ownership on file /var/log/btmp
Mar 11 19:55:12 sponge sshd[3671]: Invalid user test from 61.218.16.227
Mar 11 19:55:12 sponge sshd[3671]: Excess permission or bad ownership on file /var/log/btmp
Mar 11 19:55:12 sponge sshd[3671]: error: Could not get shadow information for NOUSER
Mar 11 19:55:12 sponge sshd[3671]: Failed password for invalid user test from 61.218.16.227 port 46910 ssh2
Mar 11 19:55:12 sponge sshd[3671]: Excess permission or bad ownership on file /var/log/btmp
is this somebody trying to login to my machine using SSH by picking random accounts?
Security is a very comprehensive field. Unfortunately, I'm not a security expert. I think it's time to learn more about it, thank you, you triggered my interest. Right now I can say:
You can have longer system wide passwords.
However, meaningless combination of 8 upper- and lowercase symbols and digits is strong enough.
Network root access should be denied and limited su (sudo) used instead.
You can limit ssh access to certain users.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.