Skip to content

Magenaut

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

login

What are the side effects of having several UNIX users share one UID?

August 8, 2022 by Magenaut

The sys-apps/shadow package on my GNU / Linux system comes with a useradd command that supports an option that I have previously overlooked: --non-unique. For the sake of convenience when shellig home from the university, I have created an alias for my original username (casual name at home) thusly:

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

I Can’t login as root with su command, but I can with SSH

August 7, 2022 by Magenaut

How is it possible that I cannot log in as root by su root or su (I get incorrect password error), but I can log in by ssh [email protected] or ssh [email protected]_local_IP with the same password?

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

Is it possible for there to be a login shell that’s not interactive?

August 7, 2022 by Magenaut

In interpreting this flowchart

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

Changing tmux .bash_profile behavior

August 6, 2022 by Magenaut

I have a script in my .bash_profile that prompts for X sessions to boot. When I launch tmux, I get this prompt that I had only intended for the TTY login.

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

How to know when and which user logged into the system under Mac OS X? Last is not enough!

August 6, 2022 by Magenaut

In Mac OS X, if I don’t touch it for a while, it will lock the screen and one must use password to unlock it, but this kind of log in is not recorded by last command. I want to know if anybody tried to break into my MacBook when I am not in front of it. Is there any way I can log such attempts?

Categories Q&A, Unix & Linux Tags last, login, logs, osx Leave a comment

How to redirect user after login to a specific page?

August 6, 2022 by Magenaut

I have a page with mixed content in three different tabs. The first tab is open access to all but the content of the last two are for logged in users only so by sending the users to login with:

Categories Q&A, Wordpress Tags actions, login, redirect Leave a comment

How force WordPress redirect to current custom page after login

August 6, 2022 by Magenaut

Problem: After login Wp redirects to either wp-admin or home (front-page.php) and not back to current page I want the user to return to where he/she came from. Ok, so this is what I’ve got: I have a custom page ( page-about.php ) with bootstrap tabs (I only mention this in case it induces these … Read more

Categories Q&A, Wordpress Tags login, redirect Leave a comment

WordPress login doesn’t work when using preview domain

August 6, 2022 by Magenaut

We’ve recently moved providers for our WordPress website and can preview the website using hosts.cx or editing our hosts file to point at the new server IP address before we change the A records for our domain to point at the new website.

Categories Q&A, Wordpress Tags login Leave a comment

Logout users upon login, based on caps/role?

August 6, 2022 by Magenaut

To reduce spam registrations, users are assigned the pending role until they’re vetted (at which point they’re assigned the subscriber role). The pending role has no capabilities. When pending users log in, I want to log them out immediately and direct them to a page with an explanation. First, I tried the following:

Categories Q&A, Wordpress Tags capabilities, login, logout, plugin-development, user-roles Leave a comment

Lock out all WordPress Administrators except two specific users

August 5, 2022 by Magenaut

I used the snippet below to lock out all administrators and editors except myself

Categories Q&A, Wordpress Tags login, logout, user-roles, username Leave a comment
Older posts
Newer posts
← Previous Page1 … Page4 Page5 Page6 … 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