[Linux] Password 복잡성 무시하고 강제로 비번 설정방법
·
Linux/RHEL - CentOS
리눅스 user 생성 후 비밀번호를 복합성 체계에 맞게만 설정해야할 때 단순하게 강제로 비번을 설정할 수 있다. [hkjeon@test ~]$useradd test useradd: Permission denied. useradd: /etc/passwd을(를) 잠글 수 없습니다. 나중에 다시 시도하십시오. [hkjeon@test ~]$sudo -i [root@test ~]#useradd test [root@test ~]#echo -e 'asdf1234\nasdf1234' | passwd test test 사용자의 비밀 번호 변경 중 새 암호:잘못된 암호: 암호는 사전 검사에 실패했습니다 - 너무 단순/체계적입니다 새 암호 재입력:passwd: 모든 인증 토큰이 성공적으로 업데이트 되었습니다. [root@t..
[RHEL7] XFS LVM 디스크 증설 (용량 늘리기)
·
Linux/RHEL - CentOS
1. 디스크 정보 확인 [root@rhosp-tb0-test ~]#fdisk -l | grep "dev/vd" Disk /dev/vda: 128.8 GB, 128849018880 bytes, 251658240 sectors /dev/vda1 * 2048 2099199 1048576 83 Linux /dev/vda2 2099200 251658239 124779520 8e Linux LVM Disk /dev/vdb: 53.7 GB, 53687091200 bytes, 104857600 sectors 2. PV (Physical Volume) 정보 확인 [root@rhosp-tb0-test ~]#pvscan PV /dev/vda2 VG rhel_director lvm2 [
[RHEL7] Disk 추가 및 mount 설정
·
Linux/RHEL - CentOS
1. 디스크 추가 [root@rhosp-tb0-kvm /]#fdisk -l | grep sdc WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion. Disk /dev/sdc: 959.7 GB, 959656755200 bytes, 1874329600 sectors /dev/sdc1 * 1 4294967295 2147483647+ ee GPT 2. 파티션 작업 [root@rhosp-tb0-kvm /]#fdisk /dev/sdc Welcome to fdisk (util-linux 2.23.2). Changes will remain in memory only, un..
[RHEL7] Bonding 수동으로 절체 방법
·
Linux/RHEL - CentOS
Bonding 인터페이스를 수동으로 절체하는 방법. 1. Bonding 상태 및 Master 인 인터페이스 확인 Currently Active Slave: ens1f1 인터페이스가 Master인 것을 확인할 수 있다. [root@test ~]# cat /proc/net/bonding/bond2 Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011) Bonding Mode: fault-tolerance (active-backup) Primary Slave: None Currently Active Slave: ens1f1 MII Status: up MII Polling Interval (ms): 100 Up Delay (ms): 0 Down Delay (ms):..
[RHEL8] UnicodeEncodeError: 'ascii' codec can't encode characters in position 89-91: ordinal not in range(128)
·
Linux/RHEL - CentOS
RHEL 8.2에서 발생하는 UnicodeEncodeError 해결 방법RHEL 8.2 Minimal 설치 후, subscription 등록이나 dnf install 명령어를 실행할 때 아래와 같은 에러가 발생할 수 있습니다. 하지만 실제로 동작에는 문제가 없지만, 에러 메시지가 출력되는 것이 불편할 수 있습니다. 이 문제를 해결하려면 아래 방법을 참고하세요. 발생하는 에러 메시지UnicodeEncodeError: 'ascii' codec can't encode characters in position 89-91: ordinal not in range(128)...Message: '시스템 DMI 정보를 읽는 도중 오류 발생: %s'Arguments: ('# SMBIOS implementations new..