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

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ม.ค. 2025

ความคิดเห็น • 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.

  • @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

  • @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.

  • @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.

  • @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

  • @swapnilraul4192
    @swapnilraul4192 3 ปีที่แล้ว +1

    How to set the password expiry

    • @TechArkit
      @TechArkit  3 ปีที่แล้ว +1

      use chage command.

  • @ibrahimmohammad9925
    @ibrahimmohammad9925 4 ปีที่แล้ว +1

    how to see all the existing groups ? thanks

    • @TechArkit
      @TechArkit  4 ปีที่แล้ว +2

      cat /etc/groups

  • @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

  • @jinumnair8722
    @jinumnair8722 5 ปีที่แล้ว +1

    Thanks for sharing knowledge

    • @TechArkit
      @TechArkit  5 ปีที่แล้ว

      Thanks for watching.

  • @prasaths2570
    @prasaths2570 5 ปีที่แล้ว +1

    Hi sir
    welcome

  • @VijayKumar-ek7wn
    @VijayKumar-ek7wn 4 ปีที่แล้ว +1

    🙏🙏🙏👍

  • @saytrillion
    @saytrillion 4 ปีที่แล้ว +1

    ou ou yes