Which of the following can the chage command NOT change?
The chage command can change the following parameters related to user password expiry and aging:
The last password change date (-d or --lastday option)
The password expiry date (-E or --expiredate option)
The minimum number of days between password changes (-m or --mindays option)
The maximum number of days during which a password is valid (-M or --maxdays option)
The number of days of warning before password expires (-W or --warndays option)
The chage command cannot change the number of days of inactivity after a password has expired before the account is locked. This parameter is controlled by the -I or --inactive option of the usermod command, which modifies the user account information. The chage command only displays the current value of this parameter, but does not allow changing it.Reference:
chage command in Linux with examples - GeeksforGeeks
10 chage command examples in Linux [Cheat Sheet] - GoLinuxCloud
How to Use the Chage Command in Linux -- TecAdmin
How to Manage User Password Expiration and Aging in Linux - Tecmint
What is the difference between the commands test -e path and test -f path?
The test command is used to perform checks and comparisons on files and values. The -e option tests if a given path exists, regardless of its type (file, directory, link, etc.). The -f option tests if a given path exists and is a regular file, not a directory or a special file. For example, if we have a directory named dir and a file named file, we can use the test command as follows:
test -e dir && echo ''dir exists'' dir exists test -f dir && echo ''dir is a regular file'' (no output) test -e file && echo ''file exists'' file exists test -f file && echo ''file is a regular file'' file is a regular file
https://www.computerhope.com/unix/bash/test.htm
Which directory holds configuration files for xinetd services? (Specify the full path to the directory
Which file specifies the user accounts that can NOT submit jobs via at or batch? (Provide the full path and filename)
The /etc/at.deny file specifies the user accounts that can NOT submit jobs via at or batch. The format of the file is a list of usernames, one on each line. Whitespace is not permitted. The superuser may always use at. If the file /etc/at.allow exists, only usernames mentioned in it are allowed to use at.If /etc/at.allow does not exist, /etc/at.deny is checked12.The at and batch commands use the files /usr/lib/cron/at.allow and /usr/lib/cron/at.deny to restrict usage on some systems3.Reference:
at.allow(5) - Linux man page
at.deny(5) [linux man page] - The UNIX and Linux Forums
The at.allow and at.deny files - IBM
What is true regarding the command userdel --force --remove bob? (Choose TWO correct answers.)
The command userdel --force --remove bob is used to delete the user account named bob and all its associated files. The --force option forces the removal of the user account, even if the user is still logged in.The --remove option forces userdel to remove the user's home directory and mail spool, even if another user uses the same home directory or if the mail spool is not owned by the specified user12. Therefore, options A and B are true regarding this command.
The other options are not true because:
Option C is false because the locate database is not updated by the userdel command.The locate database is updated by the updatedb command, which is usually run by cron as a scheduled job3.
Option D is false because the userdel command does not remove all files owned by bob from all mounted filesystems. The userdel command only removes the user's home directory and mail spool, and it does not search for and delete the user files located in other file systems.You have to search for and delete the files manually1.
Option E is false because the userdel command does not delete the group with the same name as the user, unless the USERGROUPS_ENAB parameter is set to yes in the /etc/login.defs file and the group has no other members14.
How to Delete/Remove Users in Linux (userdel Command) | Linuxize
userdel(8) --- Linux manual page
updatedb(8) --- Linux manual page
Understanding the /etc/login.defs File | Linuxize
Amanda Morgan
7 days agoEmma Bailey
19 days agoMichael Nelson
11 days agoJohn Collins
1 day agoGeorge Brown
13 days agoRaina
1 month agoKaran
1 month agoVi
2 months agoLenita
2 months agoJesus
2 months agoGretchen
2 months agoOra
3 months agoDaniel
3 months agoCasie
3 months agoBernardo
3 months agoTruman
4 months agoLizette
4 months agoCary
4 months agoAdelina
4 months agoBrandee
5 months agoJustine
5 months agoAudria
5 months agoKeva
5 months agoDominga
6 months agoOnita
6 months agoChantay
6 months agoMargart
6 months agoJuan
7 months agoHerman
7 months agoHubert
7 months agoMabel
7 months agoKami
8 months agoElinore
8 months agoMattie
8 months agoMarleen
8 months agoVilma
10 months agoAltha
11 months agoJusta
11 months agoKerry
1 year agoLevi
1 year agoLonny
1 year agoMargurite
1 year agoSkye
1 year agoBurma
1 year agoFreeman
1 year agoRebecka
1 year agoErinn
1 year agoJennie
1 year agoRonald
1 year agoCharlena
1 year agoErick
1 year agoCheryl
1 year agoKizzy
1 year agoValentine
1 year agoMalcom
1 year agoDelsie
1 year agoNada
1 year agoJanna
2 years agoDenae
2 years agoMagdalene
2 years agoArthur
2 years agoDeja
2 years agoLorean
2 years agoAmos
2 years agoJonelle
2 years agoWilda
2 years agoAmos
2 years agoTemeka
2 years agoSabra
2 years agoTamekia
2 years agoAnika
2 years agoNatalie
2 years ago