I just created a new user & its home folder & need to delete it now & also I cant find my old user's Downloads,Documents,Pictures,etc folder in /home/olduser
& also .Xauthority
file. Dont know how it deleted. I executed startx
command by pressing Alt+Ctrl+F3
when new user wasnt able to log in.
I deleted user from Users & Groups
but its home folder didnt get deleted. How can I fix this?
How can I delete new user's home folder safely?
How can restore my old documents,downloads,folder?
If not then how can I create brand new /home folder & link with OS?
to list all users :
cut -d: -f1 /etc/passwd
To remove user :
sudo userdel username
To remove home directory :
sudo rm -r /home/username
To add a home directory to an existing user :
create a home directory
chown this directory for the user
sudo usermod -d /home/directory user
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments