Skip to main content

Posts

Showing posts with the label skel

LPI E - skel default

Take Control of Your User Creation Process with useradd's -k Option The -k option on the useradd command allows you to specify a different SKEL directory than the default one when creating a new user account. The SKEL directory is the skeleton directory that contains default files and directories that will be copied to the new user's home directory when the user account is created. By default, the SKEL directory is usually set to /etc/skel/, but if you use the -k option, you can specify a different directory that contains the default files and directories that are appropriate for the new user's job function. For example, if you have users with different roles, such as developers, designers, and managers, each group may require different default files and directories. By using the -k option with a different SKEL directory for each group, you can create new user accounts with the appropriate default files and directories for their job function. Scenarios Scenario: A company h...