How to Recreate Home Directory with Default Files and Shell Environment - mkdir and mkhomedir_helper

  Рет қаралды 1,281

DevLinux

DevLinux

Күн бұрын

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

Пікірлер: 2
@stanstanislas-lr8pv
@stanstanislas-lr8pv 2 жыл бұрын
Hello sir , i wish you could help me out with a video on how to restore my home directory (kali linux).
@DevLinux
@DevLinux 2 жыл бұрын
Hi, Stan! Check the Skeleton directory under "/etc/skel". An example is given below: # ls -la /etc/skel drwxr-xr-x. 2 root root 62 Apr 11 2018 . drwxr-xr-x. 91 root root 8192 May 31 23:43 .. -rw-r--r--. 1 root root 18 Oct 30 2018 .bash_logout -rw-r--r--. 1 root root 193 Oct 30 2018 .bash_profile -rw-r--r--. 1 root root 231 Oct 30 2018 .bashrc ---------------- Create the home direcoty and copy the contents of the above dirctory inside the user's home directory. Next, given ownership to the user by running this command: # chown -R userName:GroupName /home/userName Please note that group name can be the same as the user name. You need to be the root user to perform the above steps. If you still get stuck, we can have a Skype session and check it. My Skype Profile: join.skype.com/invite/UTTOpoDVsNyR
18 Commands That Will Change The Way You Use Linux Forever
29:50
Akamai Developer
Рет қаралды 1,2 МЛН
Worst flight ever
00:55
Adam W
Рет қаралды 7 МЛН
escape in roblox in real life
00:13
Kan Andrey
Рет қаралды 73 МЛН
SHAPALAQ 6 серия / 3 часть #aminkavitaminka #aminak #aminokka #расулшоу
00:59
Аминка Витаминка
Рет қаралды 244 М.
Systemd Deep-Dive: A Complete, Easy to Understand Guide for Everyone
47:41
Linux Command Line Basics Tutorials - Usermod Command in Linux
16:26
ProgrammingKnowledge
Рет қаралды 4,5 М.
How to Do 90% of What Plugins Do (With Just Vim)
1:14:03
thoughtbot
Рет қаралды 895 М.
Linux from Scratch
2:35:42
Titus Tech Talk
Рет қаралды 174 М.
Beginner's Guide to the Bash Terminal
1:14:37
Joe Collins
Рет қаралды 2,3 МЛН
Python - SQL Introduction with SQLite
2:20:39
Eli the Computer Guy
Рет қаралды 3,6 М.
Worst flight ever
00:55
Adam W
Рет қаралды 7 МЛН