New course! Every coder should learn Generative AI!
Try a free lesson+ 1
Has anybody faced this problem in Linux.
Creating a user using 'createuser' command and switching to the user and u don't find the Desktop directory along with all other directories that are usually created like documents, downloads etc? However these all will be created once we login through this user on a graphical environment. My question is how to do this when u have only command line access to the system
3 Answers
+ 1
All the directory gets created and set up only after you login to new user account.
You might need this to change account in the Terminal:
https://unix.stackexchange.com/questions/3568/how-to-switch-between-users-on-one-terminal
0
Thanks charan & niush. NIUSH, I have access to server through ssh and I have tried successful login using the new user... I didn't see all directories created...after login...
0
Sorry, But if you mean accessing other user folders may be this will help.
chmod -R a+r /home/user/