• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

users

Install Cockpit on Rocky 9

October 3, 2022

Cockpit is a web-based graphical interface for Linux users and admins.

Install

dnf install cockpit

dnf install cockpit

Start and Enable

systemctl start cockpit
systemctl enable cockpit.socket

systemctl start cockpit systemctl enable cockpit.socket

Status

systemctl status cockpit

systemctl status cockpit

Web access

http://192.168.0.20:9090

http://192.168.0.20:9090

Filed Under: Linux Tagged With: admins, cockpit, install, interface, users, web

Adding New Users in Powershell

December 23, 2020

Here’s an easy way to add Windows users in Powershell.

net user username 'password' /add

net user username 'password' /add

Passwords must meet requirements. While you are at it, give it Admin rights.

net localgroup Administrators username /add

net localgroup Administrators username /add

Filed Under: Windows Tagged With: admin, new, powershell, rights, users

Sudo With No Password

July 7, 2019

If you’re the only user on your system, you don’t need to be prompted every time you run the sudo command.

Add yourself to the sudoers file.

# create a new file
sudo visudo -f /etc/sudoers.d/users

# create a new file sudo visudo -f /etc/sudoers.d/users

Add this line.

# add your username
username ALL=(ALL) NOPASSWD:ALL

# add your username username ALL=(ALL) NOPASSWD:ALL

Exit and try again.

# exit out and login again
exit
# try to sudo again
sudo -i
# there's no password prompt for sudo this time

# exit out and login again exit # try to sudo again sudo -i # there's no password prompt for sudo this time

Filed Under: Linux Tagged With: no password, sudoers, users, visudo

  • Home
  • About
  • Archives

Copyright © 2023