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
If you forgot to add any settings while creating Linux User, simply use this video method to modify existing user properties. usermod command.
how I can change password inactivity period for all users in the file rhel 9
use the chage command to do that.
Thanks for sharing knowledge
Thanks for watching.
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
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
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.
*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
how to see all the existing groups ? thanks
cat /etc/groups
How to set the password expiry
use chage command.
Hi sir
welcome
🙏🙏🙏👍
Thanks
ou ou yes
Thanks