Рет қаралды 1,281
Lost or deleted home directories for user accounts? No, worries! Follow this lab exercise to recreate home directories for user accounts.
____________
Please Note: We are not discussing how to restore lost data or files for a user account in Linux. For that purpose we would need a backup available to restore from or a disk utility to restore lost files.
____________
Follow this lab exercise you to understand:
- how to create a home directory manually
- how to change ownership of a directory recursively
- how to setup the default home directory environment for a user account
- how to run a command in the "for" loop to save time and effort
- how to use "mkhomedir_helper" command to recreate or make again home directory with an associated user account
- how to user "awk" command to filter selected columns and fields and test values based upon a criteria and save output to a text file