User management practice commands

 535  less /etc/passwd
  536  cut -d: -f1 /etc/passwd
  537  cut -d: -f2 /etc/passwd
  538  cut -d: -f3 /etc/passwd
  539  cut -d: -f4 /etc/passwd
  540  cut -d: -f5 /etc/passwd
  541  less /etc/passwd | grep balu
  542  less /etc/passwd | grep apache
  543  less /etc/passwd
  544  c
  545  less /etc/passwd | grep suma
  546  less /etc/passwd | grep
  547  c
  548  useradd ipo
  549  passwd ipo
  550  usermod -aG wheel ipo
  551  vi - ipo
  552  su - ipo
  553  c
  554  useradds -D
  555  c
  556  usermod -c 'iso' ipo
  557  tail -f /etc/passwd
  558  tail --help
  559  c
  560  userdel -r ipo
  561  kill -9 2528
  562  c
  563  su - ipo
  564  userdel -r suneel3
  565  ps -ef|grep 3385
  566  ps -ef|grep suneel3
  567  kill -9 suneel3
  568  kill -9 3385
  569  c
  570  ls -la /etc/skell
  571  ls -la /etc/skel
  572  useradd -m -d /home/bala -c "it_member" bala
  573  useradd --help
  574  c
  575  useradd suneel -u 550
  576  tail -f /etc/passwd
  577  usermod -l balu
  578  usermod -l balu go
  579  usermod -l go balu
  580  useradd suneel
  581  useradd suneel2
  582  usermod -l suneel3 suneel2
  583  su - suneel3
  584  usermod -s /bin/bash balu
  585  usermod -s /bin/sh balu
  586  su - balu
  587  c
  588  usermod -L suneel
  589  tail /etc/passwd
  590  tail /etc/shadow
  591  usermod -U suneel
  592  tail /etc/shadow
  593  chage -l suneel
  594  chage suneel
  595  chage -l suneel
  596  chage suneel
  597  chage -l suneel
  598  chage -1 suneel
  599  chage 1 suneel
  600  chage -1 suneel
  601  c
  602  chage 1 suneel
  603  chage -m 2 suneel
  604  chage -M 10 suneel
  605  chage -W 10 suneel
  606  chage -W 3 suneel
  607  chage -I 0 suneel
  608  chage -l suneel
  609  c
  610  chage -E "2009-05-31" suneel
  611  chage -l suneel
  612  chage -E "2020-03-15" suneel
  613  chage -l suneel
  614  history
  615  c
  616  echo $shell
  617  echo $SHELL
  618  chsh
  619  chsh -s /bin/sh
  620  chsh -s /bin/bash
  621  chsh -s /bin/bash bala
  622  chsh -s /bin/sh bala
  623  c
  624  groupadd software
  625  less /etc/group
  626  less /etc/group|grep softwa*
  627  less /etc/group|grep softwa
  628  less /etc/gshadow
  629  groupmod balu software
  630  groupmod software balu
  631  groupmod -G software balu
  632  groupmod -n balu software
  633  groupmod -n bala software
  634  tail -10 /etc/group
  635  cut -d: -f1 /etc/group
  636  groupmod -g 500 software
  637  cut -d: -f2 /etc/group
  638  cut -d: -f3 /etc/group
  639  c
  640  groupmod -n it software
  641  groupmod -o 501 500 software
  642  groupmod -o 500 501 software
  643  groupmod -p raghu it
  644  tail -10 /etc/gshadow
  645  groupmod -p it
  646  groupmod -G balu it
  647  usermod -aG it suneel
  648  less /etc/group
  649  less /etc/passwd
  650  less /etc/passwd|grep sun
  651  less /etc/group|grep sun
  652  gpasswd -M bala balu suneel suneel2 it
  653  gpasswd -M bala,balu,suneel,suneel2 it
  654  gpasswd -M bala,balu,suneel it
  655  less /etc/group|grep it
  656  gpasswd -a suma it
  657  less /etc/group|grep it
  658  less /etc/group|grep suma
  659  gpasswd -a suma it
  660  gpasswd -A suma it
  661  less /etc/group|grep suma
  662  less /etc/gshadow|grep suma
  663  gpasswd -A suneel it
  664  less /etc/gshadow|grep suma
  665  gpasswd -d suma it
  666  less /etc/group|grep suma
  667  system-config-users&
  668  system-config-users &
  669  c
  670  history >his.txt
  671  c
  672  usermod -L suneel
  673  passwd suneel
  674  su - suneel
  675  c
  676  history >h1.txt
  677  less h1.txt
  678  c
  679  scp h1.txt apple@192.168.0.100:/Users/apple

Popular posts from this blog

script and validation for the lvm

Important concepts and bits

shell script to create and extending the volume