group=AD_group_name
sed -i "$ i+:$group:ALL" /etc/security/access.conf && tail -n5 /etc/security/access.conf
printf "\nsudo\n"
echo "%$group ALL=(ALL:ALL) ALL" >>/etc/sudoers.d/$group && cat /etc/sudoers.d/$group
chmod 600 /etc/sudoers.d/$group
ll /etc/sudoers.d
printf "\n\n"
Category: user management
Pull only the relevant parts from access.conf
an easy way to pull just the relevant lines from a access.conf file, without all the commented stuff at the beginning
sed -n '/All other users/{:a; n; /./{p; ba;}}' /etc/security/access.conf
Bambu Labs P1S Filament Chart
(taken from https://wiki.bambulab.com/en/general/filament-guide-material-table and modified slightly)
| Material | Enclosed printer (X1C, X1, X1E, P1S, enclosed P1P, etc.) | 0.2 mm Nozzle | 0.4 mm Nozzle | 0.6 mm Nozzle | 0.8 mm Nozzle | Hardened Steel Nozzle Required? * | Nozzle Temperature (± 10 °C) | Compatible with AMS / AMS lite? ** |
|---|---|---|---|---|---|---|---|---|
| PLA*** | YES | YES | YES | YES | YES | NO | 190 – 240 | YES |
| Wood / Rock / Metal-filled PLA | YES | NO | YES | YES | YES | YES for Metal-filled PLA | 190 – 240 | YES when not very brittle, rough or soft |
| PLA-CF/GF | YES | NO | Recommended for Bambu PLA-CF | YES | YES | YES | 210 – 240 | YES for Bambu PLA-CF |
| PLA Glow / Glow-in -the-dark | YES | NO | Recommended | YES | YES | Recommended for long-term printing | 210 – 240 | YES for AMS, not recommended for AMS lite |
| PVA, BVOH Dry State | YES | YES (Dry State) | YES | YES | YES | NO | 190 – 240 | YES (Dry State) |
| Support W, Support for PLA, Support for PLA/PETG | YES | YES | YES | YES | YES | NO | 190 – 240 | YES |
| PETG | YES Recommended | YES | YES | YES | YES | NO | 240 – 270 | YES |
| PETG-CF | YES Recommended | NO | Recommended for Bambu PETG-CF | YES | YES | YES | 240 – 270 | YES for AMS, not recommended for AMS lite |
| TPU | YES | Not recommended | YES | YES | YES | NO | 200 – 250 | NO |
| ABS | Recommended | YES | YES | YES | YES | NO | 240 – 280 | YES |
| ABS-GF | Recommended | NO | YES | YES | YES | YES | 240 – 280 | YES |
| ASA | Recommended | YES | YES | YES | YES | NO | 240 – 280 | YES |
| PC | Recommended | Not recommended | YES | YES | YES | NO | 260 – 290 | YES |
| PA | Recommended | NO | YES | YES | YES | NO | 260 – 290 | YES |
| Support for PA/PET | Recommended | NO | YES | Highly recommended | YES | YES | 260 – 300 | YES for Bambu PA-CF, PAHT-CF |
| PA-CF/GF PA6-CF/GF PAHT-CF/GF | Recommended | NO | YES | Highly recommended | YES | YES | 260 – 300 | YES for Bambu PA-CF, PAHT-CF |
| PET-CF/GF | Recommended | NO | YES | Highly recommended | YES | YES | 260 – 300 | NO |
| PPA-CF/GF | Recommended | NO | YES | Highly recommended | YES | YES | 285 – 320 | NO |
| PPS | Recommended | NO | YES | YES | YES | NO | 285 – 330 | YES |
| PPS-CF/GF | Recommended | NO | YES | Highly recommended | YES | YES | 310 – 350 |
** Please note that it only explains the filament compatibility with AMS / AMS lite from the perspective of filament loading and unloading. In actual use, the compatibility between the printers and the filaments must also be considered.
***The PLA here refers to normal PLA, that is, PLA that does not contain carbon fiber (CF), glass fiber (GF) or other metal, inorganic non-metal fillers with high hardness and big particle size, , including PLA Basic, PLA Matte , PLA Tough, PLA Metal, PLA Silk, PLA Aero, PLA Dynamic, etc., excluding PLA-CF, PLA-GF, PLA Sparkle, PLA Marble, etc.
Create user with password in one line
useradd -p "$(openssl passwd -6 $PASS)" $USER
Change user password using stdin
echo "new_password"|passwd --stdin username
or
echo username:new_password | chpasswd
RHEL 9 – change root password when not known
Reboot the system using either hard boot or soft boot.
Interrupt the boot process when the grub kernel choice comes up by using the down arrow key.
Go back to the top line (or other kernel if you prefer) and hit ‘e’ to temporarily edit that kernel’s boot parameters.
Find the line that starts with ‘linux’ (usually the fourth line) and go to the end of the line with the ‘end’ key.
Add the following to the end of the line:
init=/bin/sh
Then hit Ctrl-x to proceed. This should bring you to a blank screen with only ‘sh-5.1#’ (or whatever kernel version)
Enter the following lines:
/usr/sbin/load_policy -i
mount -o remount,rw /
passwd root (then enter your password twice)
/sbin/reboot -f
After the system reboots, test your new root password. If you boot to grub there may be a different user showing in the login screen, be sure to switch to root before you login.