Skip to content

u/Cdn_Nick

In this archive from Mar 2016 to Jul 2025

2
posts
35
comments
0
media
375
score

Security:

- Deny root login over SSH: https://www.tecmint.com/disable-ssh-root-login-in-linux/

- Only root should have UID=0, so type the following command to display all accounts with UID set to 0: # awk -F: '($3 == "0") {print}' /etc/passwd

- Prevent all root remote logins - edit the /etc/security/access.conf file. Add line: "-:root:ALL except LOCAL"

- Install arch-audit

1 points

I use a USB external ssd with bootable win10 on it (M.2 with usb case). Boot and select the ext ssd from bios. Keeps the OS completely separate, and saves having to rebuild if i upgrade or change pc's.

2 points

Use nproc to limit the effects of forkbombs (set in /etc/security/limits.conf)

So, fork bombs are fairly non-malignant, and not all that common. It's basically where you get a script or program that calls itself multiple times. However, if you do come across this, it may fill your available ram and choke your pc.

So, the intent here is to limit the amount of processes that can be spawned in Linux, and enforcing a predetermined limit by editing /etc/security/limits.conf

​

If you run: nproc --all

The returned number represents - 'Threads per core' X 'cores per socket' X 'sockets'

​

On the system that i'm running now, I see the output of lscpu as:

CPU(s): 4

On-line CPU(s) list: 0-3

Thread(s) per core: 2

Core(s) per socket: 2

Socket(s): 1

​

The nproc number for preventing forkbombs is not fixed, and should be based on your possible max system usage.

You can calculate 'A' number for nproc for your system by running:

ps aux -L | cut --delimiter=" " --fields=1 | sort | uniq --count | sort --numeric-sort | tail --lines=1

(credit to m.ceppi)

Hint - open as many apps as you can to give max numbers. The nproc number will change depending on your load. Then double that number, to ensure that you don't choke your own system.

​

See also THE ARCHWIKI: https://wiki.archlinux.org/index.php/Limits.conf

23 points

TBH, I'd keep my mouth shut. If you are using it in commercial or academic offices, then that's the company / Uni problem. If you are using it as a home business, then I doubt you'd come to the attention of Oracle, as you don't look like a commercial user to their systems. I once worked for a small academic institution, we received an email from Oracle stating that our IP addresses had downloaded the extension pack 4 times. Oracle wanted us to buy the license pack - that's around USD $6,000 for 100 users (minimum purchase). 'No thanks', was our answer, as we were not formally supporting or supplying Vbox to our users.

1 points

One point - the VirtualBox Extensions pack is free for personal use. It is not free to commercial users. Oracle is making a point of tracking IP addresses of users who download the Extensions pack, and - if a business - contacting them to ask that they purchase the commercial license, which is not cheap as it only comes in 100 user packs. See: https://www.virtualbox.org/wiki/VirtualBox_PUEL and https://web.archive.org/web/20171201035409/https://www.virtualbox.org/wiki/Licensing_FAQ

1 points

I have five, and I live in Canada, too. I run reflector every so often:
'reflector --verbose --latest 5 --sort rate --save /etc/pacman.d/mirrorlist'
This takes the top five fastest mirrors and overwrites the older mirrorlist.
Usually do this before I run syu.
Funnily enough, not too many servers in Canada are the fastest.

12 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.