Where can you add files so that new users will automatically have them upon first login?

Prepare for the LPI Linux Essentials Exam with multiple choice questions and detailed explanations. Enhance your Linux skills and boost your confidence for the real exam!

The correct location to add files so that new users will automatically receive them upon first login is the /etc/skel directory.

When a new user account is created in a Linux system, the contents of the /etc/skel directory are copied over to the new user's home directory, typically located at /home/username. This ensures that every new user starts with a set of predefined files and directories such as configuration files (e.g., .bashrc, .profile) that help configure the user’s environment.

This mechanism is crucial for system administrators, as it allows for consistent user environments across different accounts, simplifying user management and ensuring that essential files are in place right from the start.

In contrast, the /home directory is the base directory where user home folders reside and does not serve the function of providing default files during user creation. The /etc/passwd file is a critical system file that contains user account information but not user-specific starting files. Lastly, /usr/share is generally used for architecture-independent data files, such as documentation and help files, and is not intended for providing initial user configuration files.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy