Skip to content

Magenaut

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

sudo

How to set visudo to use a different editor than the default on Fedora?

August 10, 2022 by Magenaut

Fedora 14 uses vi by default when one runs visudo. Is there a way to change this to something else?

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

How do I edit a file as root?

August 10, 2022 by Magenaut

Are there any special considerations to editing a file as root? What is the safest way to do this?

Categories Q&A, Unix & Linux Tags root, sudo Leave a comment

How do Ubuntu and Debian manage $HOME for users with sudo privileges?

August 10, 2022 by Magenaut

I have a bash script myhome.sh containing only one line:

Categories Q&A, Unix & Linux Tags bash, debian, home, sudo, ubuntu Leave a comment

Allow non-admin users to install packages via apt or rpm?

August 10, 2022 by Magenaut

Is it possible to allow non-root users to install packages system-wide using apt or rpm?

Categories Q&A, Unix & Linux Tags linux, package-management, software-installation, sudo Leave a comment

Execute a line of commands with one sudo

August 10, 2022 by Magenaut

For example if I want to create a file and enter text in one line I can redirect the output into a file with the use of the > operator:

Categories Q&A, Unix & Linux Tags bash, command-history, sudo Leave a comment

Why can’t we execute a list of commands as different user without sudo?

August 10, 2022 by Magenaut

This question has been asked in a different way in other forums. But there has not been a decent explanation why you can’t do the below in bash.

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

ssh with separate stdin, stdout, stderr AND tty

August 9, 2022 by Magenaut

This local command is the reference point. Let’s assume it successfully processes some binary data:

Categories Q&A, Unix & Linux Tags io-redirection, ssh, sudo, tty Leave a comment

Becoming root from inside Vim

August 9, 2022 by Magenaut

Sometimes I start editing configuration files in /etc using Vim, but forget to use sudo to start Vim. The inevitable result then is that after finishing my edits I encounter the dreaded notice that I don’t have the permission to save the file.

Categories Q&A, Unix & Linux Tags root, sudo, vim Leave a comment

Difference between sudo user and root user

August 9, 2022 by Magenaut

The /etc/sudoers file lists which users can do what with the sudo command The root user creates and modifies the /etc/sudoers file. This concept is difficult for me to understand. If all users having sudo privilage belong to sudoers group, then all of them can become root by giving the sudo su command. Then who … Read more

Categories Q&A, Unix & Linux Tags access-control, permissions, root, sudo, users Leave a comment

Change default sudo password timeout

August 9, 2022 by Magenaut

When I run sudo and enter my password, a subsequent invocation of sudo within a few minutes will not need the password to be re-entered.

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