nixCraft Linux / UNIX Newsletter

Link to [RSS/Feed] nixCraft: Linux Tips, Hacks, Tutorials, And Ideas In Blog Format

How to prevent unprivileged users from viewing dmesg command output on Linux

Posted: 10 Jun 2017 12:21 PM PDT

I want to restrict both normal users and root user inside LXD container "hypervisor" from viewing and using dmesg command output. How do I prevent non-root (unprivileged) Linux users from viewing the Linux kernel's log buffer?

How to allow root login from one IP address with ssh public keys only

Posted: 10 Jun 2017 04:55 AM PDT

I am using MacOS on the desktop and Ubuntu Linux on the server. I disabled root login over ssh and enabled ssh based public key login. However, I recently added second Ubuntu server. I need to sync file between two using rsync command. Is there any way that I can log from the second server into my first server with root user from second server IP address only ({root@secondBOX }# ssh root@firstBOX1) without reducing OpenSSH server security option?