본문 바로가기 메뉴 바로가기

fendys

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

fendys

검색하기 폼
  • ALL fendys write (153)
    • AWS (21)
    • linux (95)
    • security (0)
    • ansible (13)
    • monitoring (2)
    • VM (0)
    • DB (4)
    • windows (4)
    • it (12)
    • 가상화폐 (0)
  • 방명록

2026/02/23 (2)
linux command log 남기는 방법

/etc/profile.d/ 이하에 sh 파일 생성 export PROMPT_COMMAND='RETRN_VAL=$?;logger -p local1.notice "[$(whoami)][$PWD][$$]: $(history 1 | sed "s/^[ ]*[0-9]\+[ ]*//" ) [$RETRN_VAL]"'umask 027

linux 2026. 2. 23. 13:44
linux 프롬프트에 최초 커넥션 유저 표시

프롬프트에 최초 커넥션 유저 표시/etc/profile.d에 해당 코드의 파일 하나 생성하고모든유저가 읽기가 가능 하게 644로 권하 변경 필요함(필수) #!/bin/bash # ========================= # ORIGINAL_USER 설정 # ========================= ORIGINAL_USER="${SUDO_USER:-$(who am i | awk '{print $1}')}" # 이미 설정되어 있으면 건드리지 않음 if [ -z "$ORIGINAL_USER" ]; then # sudo 사용한 경우 if [ -n "$SUDO_USER" ]; then export ORIGINAL_USER="$SUDO_USER" # 일반 SS..

linux 2026. 2. 23. 13:30
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
  • [여행] warmfree
  • [재미] wowns
TAG
  • cgroup
  • 리눅스 커맨드 로그남기기
  • 윈도우 cmd 계정 관리
  • chrony
  • dl20 g9 centos7 설치
  • 특정 문구 치환
  • ansible ios
  • nutanix rac
  • ipmi
  • dl20 centos7
  • ios ansible
  • nxos ansible
  • centos7 ntp
  • ISCSI 볼륨 RAC
  • ansible network
  • dl20
  • windows.old 강제삭제
  • ILO
  • cisco ansible
  • 특정 라인삭제
  • cmd로 계정 생성
  • oracle linux8 kernel
  • DL20 GEN9 장비에 CentOS 7
  • 윈도우서버 계정 관려
  • cmd로 윈도우 계정 관리
  • shell connmad log
  • kernel 변경
  • CentOS 7 GUI
  • linux command log
  • vm rac
more
«   2026/02   »
일 월 화 수 목 금 토
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바