How do I add / create a sudo user on CentOS Linux 8 using the command line? How can I add a CentOS 8 user to sudoers file?
[continue reading…]
I am a new CentOS Linux system adminstrator. How do I use sudo command without a password on a CentOS Linux systems? I log in as marlena@my-cloud-server-ip and disabled root login for ssh. After login, I need to run some commands as root user. I am the only sysadmin using my CentOS Linux 7 server. How do I run or execute sudo command without a password for a user named marlena under CentOS Linux cloud server?
[continue reading…]
I‘m a new Unix system user. How do I use sudo command without a password on a Linux or Unix-like systems? I log in as tom@my-cloud-server-ip and disabled root login for ssh. After login, I need to run some commands as root user. I am the only sysadmin using my server. How do I run or execute sudo command without a password for a user named Tom under Debian/Ubuntu/CentOS Linux cloud server?
[continue reading…]
I‘m setting up a new FreeBSD server. I do not want to use a default root user who has full system access. How can I setup and grant sudo privileges to users on a FreeBSD VPS or server? How do I create a sudo user on FreeBSD 11.x/12.x/13.x?
[continue reading…]
I like the way Ubuntu Linux works – all people in admin groups should able to run all commands after running it via sudo “command-name”. How do I setup sudo under CentOS or Red Hat Enterprise Linux to allow all members of the ‘admin’ group to run all commands?
[continue reading…]
I use sudo to provide permissions and command execution rights to other users under UNIX and Linux operating systems. However, I noticed something strange about sudo. When executing sudo, it will prompt for the user’s password the first time, but sudo no longer requires a password anymore when re-executing it. Why? Is this is a security risk?
[continue reading…]
I‘m trying to run the following command:
ssh user@box.example.com sudo command1 /path/to/file
But, an error is displayed follows:
sudo: sorry, you must have a tty to run sudo
OR
sudo: no tty present and no askpass program specified
How do I fix this problem on Linux or Unix based systems?
[continue reading…]