Modify Linux User Properties | Linux Password Policy | RHCSA Certification #9 | Tech Arkit | EX200

Поделиться
HTML-код
  • Опубликовано: 7 фев 2025
  • In this video i have explained How to modify Linux user properties Like change user login shell after user creation likewise change user home path, Lock user , Unlock User, Set User expiry date and so an.
    #RHCSA #Linux #TechArkit
    Setting User password age policy Like
    Last password change : May 01, 2018
    Password expires : never
    Password inactive : never
    Account expires : never
    Minimum number of days between password change : 0
    Maximum number of days between password change : 99999
    Number of days of warning before password expires : 7
    RUclips PlayLists
    Shell-Scripting: goo.gl/a1Hu3s
    Linux-Commands: goo.gl/QDoL7h
    RHCSA Certification: goo.gl/X2Ksqn
    Putty Software Tricks: goo.gl/MB1Do2
    Linux OS: goo.gl/62p8s9
    Follow Us on Social Media
    Telegram Group: goo.gl/KPvMda
    arkit.co.in/on...
    Reddit: bit.ly/redditark
    goo.gl/mcUvef
    Mailing List: bit.ly/feedburn...
    goo.gl/fb/WAU7JG
    Facebook: linuxarkit
    goo.gl/2QN4sD
    LinkedIn: bit.ly/linkedark
    goo.gl/ZLcikC
    Twitter: / aravikumar48

Комментарии • 25

  • @TechArkit
    @TechArkit  6 лет назад +4

    If you forgot to add any settings while creating Linux User, simply use this video method to modify existing user properties. usermod command.

  • @dipankarroy7350
    @dipankarroy7350 Год назад +1

    how I can change password inactivity period for all users in the file rhel 9

    • @TechArkit
      @TechArkit  Год назад +1

      use the chage command to do that.

  • @jinumnair8722
    @jinumnair8722 5 лет назад +1

    Thanks for sharing knowledge

  • @RoshanKumar-my4ff
    @RoshanKumar-my4ff 5 лет назад +1

    At 07:56 I did not fond it to be appended for that particular date.
    Can you explain a bit I am trying to learn setting up date for password expiry.
    As per ur video at 07:55 the date should reflect in last line of output of grep command.

    • @TechArkit
      @TechArkit  5 лет назад +2

      Its appended you can check using chage -l username

  • @sajinprasad8711
    @sajinprasad8711 3 года назад +1

    why append -a option is used with -G option. We can add a user to multiple groups with -G so why we should use -a. I didnt understand that. please explain bro.

    • @TechArkit
      @TechArkit  3 года назад +2

      if you do not use -a it will overtwrite existing groups. Example if user is part of group1. if you add that user to group2 without -a group1 membership will go off.

    • @sajinprasad8711
      @sajinprasad8711 3 года назад +1

      @@TechArkit thank you

  • @kishore90088
    @kishore90088 3 года назад +1

    Could u please let me know how to give the permissions to the directory or files. Logged with some test user and suppose the give the permissions to the Test1 user. please give me the correct command.
    it is possible to give with chmod or setfacl commands

    • @TechArkit
      @TechArkit  3 года назад +1

      what permissions you want to give?
      chown Test1:Test1 /Test1
      setfacl -m user:rwx /Test1

    • @kishore90088
      @kishore90088 3 года назад +2

      @@TechArkit test & test1 both are users I logged with the user test want to give the access to one of the directory for test1 user pls tell what is the command

    • @TechArkit
      @TechArkit  3 года назад +1

      setfacl it the command to granular permissions. if test user has capability to provide access.

  • @anandgolatkar5921
    @anandgolatkar5921 3 года назад +1

    *TASK 1:* As root on server1, create group lnxgrp with GID 6000. Create user user5000
    with UID 5000 and GID 6000. Assign this user a password, and establish
    password aging attributes so that this user cannot change their password
    within 4 days after setting it and with a password validity of 30 days. This user
    should start getting warning messages for changing password 10 days prior to account lock down. This user account needs to expire on the 20th of December, 2021.

    • @TechArkit
      @TechArkit  3 года назад +2

      groupadd -g 6000 lnxgrp
      useradd -u 5000 -g 6000 user5000
      passwd user5000
      chage -m 4 -M 30 -W 10 user5000

  • @ibrahimmohammad9925
    @ibrahimmohammad9925 4 года назад +1

    how to see all the existing groups ? thanks

  • @swapnilraul4192
    @swapnilraul4192 3 года назад +1

    How to set the password expiry

    • @TechArkit
      @TechArkit  3 года назад +1

      use chage command.

  • @prasaths2570
    @prasaths2570 5 лет назад +1

    Hi sir
    welcome

  • @VijayKumar-ek7wn
    @VijayKumar-ek7wn 4 года назад +1

    🙏🙏🙏👍

  • @saytrillion
    @saytrillion 4 года назад +1

    ou ou yes