This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| get the primary group of a user | |
| perldoc -f getpwnam | |
| ( $name, $passwd, $uid, $gid, $quota, $comment, $gcos, $dir, $shell, $expire ) = getpw* | |
| perl -E "print scalar getgrgid((getpwnam(alex))[3])" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.14.31.tar.xz | |
| wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.14.31.tar.sign | |
| gpg --keyserver hkp://keys.gnupg.net --recv-keys 6092693E | |
| xz -cd linux-3.14.31.tar.xz | gpg --verify linux-3.14.31.tar.sign - | |
| tar -xvf linux-3.14.31.tar | |
| gpg --recv-keys 4245D46A GRSEC key | |
| wget https://grsecurity.net/stable/grsecurity-3.0-3.14.31-201502021853.patch | |
| wget https://grsecurity.net/stable/grsecurity-3.0-3.14.31-201502021853.patch.sig | |
| gpg --verify grsecurity-3.0-3.14.31-201502021853.patch.sig |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /etc/grml/fai/config/files/usr/bin/sshme/AUTOSSH | |
| ----- | |
| #!/bin/bash | |
| user='user' | |
| password='password' | |
| host='mysshserver.org' | |
| sshd_pid=$(pidof sshd) |
NewerOlder