When a new user is created and it logs in the first time, those default folders in the home are created. How are they created?

If changing the scripts/configurations that create them so that they are not created anymore, would that cause a problem?


The defaults can be examined using:

$ cat /etc/xdg/user-dirs.defaults
# Default settings for user directories
# The values are relative pathnames from the home directory and
# will be translated on a per-path-element basis into the users locale
# Another alternative is:

If you don't want a specific subdirectory created put a # in front of it to comment out the line.

The sub-directories aren't created until the user logs in with a GUI: Create default home directory for existing user in terminal


As @steeldriver commented, the answer is to edit /etc/xdg/user-dirs.defaults so the variables point to your home directory.

Not sure about any problem this would cause.

  • 1
    Actually I think the right way to have them not be created would be to set enabled=False in the /etc/xdg/user-dirs.conf file – steeldriver Aug 12 '18 at 1:17

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.