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.
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 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
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.
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.
*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.
If you forgot to add any settings while creating Linux User, simply use this video method to modify existing user properties. usermod command.
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.
Its appended you can check using chage -l username
how I can change password inactivity period for all users in the file rhel 9
use the chage command to do that.
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
what permissions you want to give?
chown Test1:Test1 /Test1
setfacl -m user:rwx /Test1
@@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
setfacl it the command to granular permissions. if test user has capability to provide access.
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.
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.
@@TechArkit thank you
How to set the password expiry
use chage command.
how to see all the existing groups ? thanks
cat /etc/groups
*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.
groupadd -g 6000 lnxgrp
useradd -u 5000 -g 6000 user5000
passwd user5000
chage -m 4 -M 30 -W 10 user5000
Thanks for sharing knowledge
Thanks for watching.
Hi sir
welcome
🙏🙏🙏👍
Thanks
ou ou yes
Thanks