Category Archives: operating system
How to contribute (was Re: Kernelnewbies Digest, Vol 77, Issue 7
https://lists.kernelnewbies.org/pipermail/kernelnewbies/2017-April/017765.html
error related “find: paths must precede expression:”
https://stackoverflow.com/questions/6495501/find-paths-must-precede-expression-how-do-i-specify-a-recursive-search-that
Startup code compliant to the ELF i386 ABI
https://github.com/lattera/glibc/blob/master/sysdeps/i386/start.S
Layout of the sysdeps Directory Hierarchy
http://www.gnu.org/software/libc/manual/html_node/Hierarchy-Conventions.html
Unable to lock the administration directory (/var/lib/dpkg/)
https://askubuntu.com/questions/15433/unable-to-lock-the-administration-directory-var-lib-dpkg-is-another-process
notes on and related to umask
umask – set file mode creation mask #include <sys/types.h> #include <sys/stat.h> mode_t umask(mode_t mask); Binary Number ————–> Decimal Number Abstraction Decide the required result to decide the needed mask. Binary Number ——————-> Resultant Binary ANDing with mask
Bit level Operations in C
Bit-Level Operations in C Technical Overview One of the reasons why C has become so popular is that it allows the programmer to do many types of machine-level applications without resorting to using machine language as the vehicle for programming. One example of that is C’s ability to work with memory addresses. Another example, or …
GNU coreutils: Sources of random data
script file contents #!/bin/bash get_seeded_random() { seed=”$1″ echo $seed openssl enc -aes-256-ctr -pass pass:”$seed” -nosalt \ /dev/null } shuf -i1-100 –random-source=<(get_seeded_random 45) using /dev/urandom $sudo shuf -i1-5 –random-source=/dev/urandom 1 2 4 3 5 $sudo shuf -i1-5 –random-source=/dev/urandom 3 4 5 1 2 $sudo shuf -i1-5 –random-source=/dev/urandom 4 5 2 1 3 $sudo shuf -i1-5 –random-source=/dev/urandom …
What if a user or group name is a string of digits?
root>useradd 1991 root>mkdir /home/1991 root>chown 1991.1991 /home/1991/ root>passwd 1991 Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully root>login 1991 Password: The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY …
Continue reading “What if a user or group name is a string of digits?”