New answers tagged security
0
votes
How to tell which application UFW is blocking
Probably best to check ufw logs.
sudo less /var/log/ufw*
If there is not logs about blocking, check logging level. Remember that higher levels of logging can fill your disk fast.
FILE: /etc/ufw/ufw....
1
vote
Echo with obfuscation
$ echo "helloworld" | sed -E "s/(.{3})(.{5})/\1*****/"
hel*****ld
(.{3}) - the masking starts after the 3rd letter
(.{5}) - the quantity of letters that will be replaced by *****. ...
0
votes
How to lock a Linux/Debian/KDE system to one program (a password-protected kiosk mode for Kodi)?
The solution is to use cage.
It's not yet available in Debian 11 and also can't be built on it.
However, it's already in "Debian 12 testing".
I will update this once it's in Debian 11 stable ...
-1
votes
Linux local Password Policy doesn't apply when creating new user
I configured the file /etc/security/pwquality.conf . Now everything works perfectly!
0
votes
Linux local Password Policy doesn't apply when creating new user
The easiest way I see - just execute password --expire user once, that user is created. In this case, you (as root) do not care about password complexity. But the user would have to set a new password ...
31
votes
Are there security consequences from not giving printf a format to use?
In:
printf "$var"
There are two problems:
variable data passed as the format. Could be a problem if $var is under the control of an attacker
option delimiter (--) missing, so $var could be ...
4
votes
Are there security consequences from not giving printf a format to use?
Since you're talking about the shell printf command not the C printf(3) function, there possible vulnerabilities are more limited with proper quoting of "$var". The shell command won't ...
Top 50 recent answers are included
Related Tags
security × 2486linux × 510
ssh × 232
debian × 192
password × 166
permissions × 158
sudo × 126
networking × 113
centos × 107
ubuntu × 102
root × 97
users × 96
encryption × 92
bash × 85
firewall × 83
iptables × 82
selinux × 66
logs × 64
login × 59
shell × 55
files × 55
linux-kernel × 55
filesystems × 54
rhel × 52
pam × 52