Skip to content

Magenaut

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

login

How do I force a user to change a password at the first time login using ssh?

August 9, 2022 by Magenaut

I’m trying to force a newly created user to change a password at the first time login using ssh. For security reasons I want to give him a secure password until he logs in for the first time. I did the following so far:

Categories Q&A, Unix & Linux Tags bash, linux, login, pam, ssh Leave a comment

Relationship of keyboard layout and xmodmap

August 9, 2022 by Magenaut

I’m using Xubuntu. Before login I can choose a keyboard layout. I’m using xmodmap for remapping some keys.

Categories Q&A, Unix & Linux Tags boot, keyboard, keyboard-layout, login, xmodmap Leave a comment

Error message id: cannot find name for group ID after logging in

August 9, 2022 by Magenaut

BACKGROUND

Categories Q&A, Unix & Linux Tags etc, group, login Leave a comment

How to run commands automatically on gnome-terminal after log-in?

August 9, 2022 by Magenaut

After each login, there’s certain commands that I run on specific tabs of gnome-terminal. This is a tedious process, so can this be done automatically?

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

Changing the default shell without chsh or administrator privileges

August 8, 2022 by Magenaut

I saw the following snippet in this thread: How to change from csh to bash as default shell

Categories Q&A, Unix & Linux Tags exec, login, shell, zsh Leave a comment

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

How do I enable auto-login in Mint 18?

August 8, 2022 by Magenaut

Mint 18.2 64b Cinnamon 3.4.3 This is running in a VM on my machine so I’m not worried about login security. I’ve been looking around on the Mint forums and only found a lot of threads about troubleshooting problems with autologin. The setting is not in the Login Window settings screen. The setting is not … Read more

Categories Q&A, Unix & Linux Tags linux-mint, login, users Leave a comment

Can a command be executed over ssh with a nologin user?

August 8, 2022 by Magenaut

If a user has loginShell=/sbin/nologin is it still possible to

Categories Q&A, Unix & Linux Tags account-restrictions, login, ssh Leave a comment

How to tell what method was used to log in (Password vs. Keyfile) from the bashrc

August 8, 2022 by Magenaut

Is there a way how you can check what auth method the user which just logged in to an account were using?

Categories Q&A, Unix & Linux Tags bashrc, key-authentication, linux, login, ssh Leave a comment

Is “/etc/issue” common for all Linux distributions?

August 8, 2022 by Magenaut

I’m trying to Create OS detect portable function in bash script,

Categories Q&A, Unix & Linux Tags etc, login, portability Leave a comment
Older posts
Newer posts
← Previous Page1 … Page3 Page4 Page5 … Page11 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