Skip to content

Magenaut

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

login

Execute a command on user logon

August 11, 2022 by Magenaut

In Linux desktop system, I want to execute a command when the user logs in.

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

How to switch between users on one terminal?

August 11, 2022 by Magenaut

I’d like to log in as a different user without logging out of the current one (on the same terminal). How do I do that?

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

Disable a user’s login without disabling the account

August 10, 2022 by Magenaut

Let’s say I create a user named “bogus” using the adduser command. How can I make sure this user will NOT be a viable login option, without disabling the account. In short, I want the account to be accessible via su - bogus, but I do not want it to be accessible via a regular login prompt.

Categories Q&A, Unix & Linux Tags authorization, login, password, users Leave a comment

Difference between .xinitrc, .xsession and .xsessionrc

August 10, 2022 by Magenaut

I found three configuration files.

Categories Q&A, Unix & Linux Tags login, startx, x11, xinit Leave a comment

Why a “login” shell over a “non-login” shell?

August 10, 2022 by Magenaut

I have a basic understanding of dotfiles in *nix system. But I am still quite confused about this Difference between Login Shell and Non-Login Shell?

Categories Q&A, Unix & Linux Tags login, shell, terminology, unix-philosophy Leave a comment

Is there a Bash file that will be always sourced in interactive mode no matter if it is login or non-login?

August 10, 2022 by Magenaut

As far as I know, the interactive shells may be login or not login, and the start up files for them are different.

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

Is GNOME Terminal a type of non-login shell?

August 10, 2022 by Magenaut

According to the answer to What are login and non-login shells? on Ask Ubuntu, GNOME Terminal is a type of non-login shell.
As pointed out in the excellent book, A Practical Guide to Fedora and Red Hat Enterprise Linux, 6th Edition:

Categories Q&A, Unix & Linux Tags bash, environment-variables, login, shell Leave a comment

Is it bad practice to set root’s shell to something other than the default?

August 9, 2022 by Magenaut

Once a friend of mine (who is an experienced Unix/Linux user) told me that setting root’s shell to something other than sh (i.e bash or zsh) might create problems, because some script might assume that the shell is sh and do something weird.

Categories Q&A, Unix & Linux Tags login, root, shell, users Leave a comment

Why won’t my xmodmap command run on startup/login?

August 9, 2022 by Magenaut

I want to run this command every time I log in (or every time I start up, if that doesn’t work): xmodmap -e 'keysym Delete = Menu' -e 'keysym Menu = Delete'

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

How can I create an SFTP user in CentOS?

August 9, 2022 by Magenaut

I’d like to give temporary SFTP access to a support guy. How do I create an SFTP user? And how can I delete it once the job is done?

Categories Q&A, Unix & Linux Tags centos, ftp, login, users Leave a comment
Older posts
Newer posts
← Previous Page1 Page2 Page3 Page4 … 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