Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

Unix & Linux

login and su internals

August 8, 2022 by Magenaut

I am trying to understand how user permissions work in Linux. The kernel boots and starts init as root, right? Init then runs startup scripts and runs getty (agetty), again as root. Agetty just reads user name and runs login, still as root, I think. Nothing interesting yet. But what does login do? I wasn’t able to find anything better than “it attempts to log in”. Suppose login finds that password matches (and we trying to log in as usual user), how does it change user id? I thought that there should be system call for that but I wasn’t able to find it (maybe I’m just blind?)

Categories Q&A, Unix & Linux Tags architecture, authentication, login Leave a comment

Resolve nested aliases to their source commands

August 8, 2022 by Magenaut

I’ve made several aliases for my convenience.But now I need to be helpful by sending a useful command and it is full of aliases.I’ve tried doing type u but all it returns is

Categories Q&A, Unix & Linux Tags alias, bash Leave a comment

Grep word boundaries

August 8, 2022 by Magenaut

Accorging to GNU documentation:

Categories Q&A, Unix & Linux Tags grep, regular-expression Leave a comment

Why (…) doesn’t spawn a new child process when run in background?

August 8, 2022 by Magenaut

After running the command

Categories Q&A, Unix & Linux Tags bash, command, subshell Leave a comment

where will the system search for dynamic libraries?

August 8, 2022 by Magenaut

The dynamic linker of the GNU C Library and its derivative Embedded
GLIBC implement a rather complicated algorithm for searching for
shared libraries. The basic search order is:

Categories Q&A, Unix & Linux Tags libraries Leave a comment

How do I tail a log file and keep tailing it when the latest one changes date?

August 8, 2022 by Magenaut

I’m using RHEL 4.

Categories Q&A, Unix & Linux Tags logs, tail Leave a comment

Prepare answers for questions of a command

August 8, 2022 by Magenaut

Let’s say I want to write a shell script that executes just one command. But this command is poorly designed. It doesn’t offer any command line options; instead it asks some questions and waits for user input.

Categories Q&A, Unix & Linux Tags shell, shell-script Leave a comment

What is the sequence loading linux kernel module on startup? How priority is set to them?

August 8, 2022 by Magenaut

I have a Linux kernel module which I compiled dynamically. How is it added to startup? There are lot of .ko files in /lib/modules. How is priority set for loading these modules?

Categories Q&A, Unix & Linux Tags kernel-modules, linux, startup Leave a comment

Issue while installing driver for Archer T4U AC1300 on Mint 17

August 8, 2022 by Magenaut

Original question

Categories Q&A, Unix & Linux Tags drivers, wifi Leave a comment

Is there any program to provide a consistent interface across multiple archive types?

August 8, 2022 by Magenaut

At the moment, if I download a compressed file, it could be any of a .tar.gz archive, a tar.bz2 arhive, a .zip archive or a .gz archive. And each time I do so, I have to remember what the command line options for that program are.

Categories Q&A, Unix & Linux Tags archive, command-line, compression Leave a comment
Older posts
Newer posts
← Previous Page1 … Page205 Page206 Page207 … Page371 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress