All for Joomla All for Webmasters

How add custom files to newly created user automatic


Procedure to auto transfer files to new created user

Below is the procedure, When you create a new user and you want some custom files or folder to newly created user automatically.

By default, when we are creating new user to Linux OS, all files from /etc/skel are copied to the new user’s home directory. There are few files included in /etc/skel/ by default.

* /etc/skel/.bash_logout

* /etc/skel/.bashrc

* /etc/skel/.profile

* /etc/skel/.cshrc

If you want to share some files, including rules and regulations to new users, simply add it to /etc/skel. For example, I want to share rules and regulations file called rules.txt to new users,

# cp /root/rules.txt /etc/skel/

Now create a test user to check above configuration,

# useradd test

# cd /home/test

# ls

rules.txt

Here you will see rules.txt file. You can add anything to share new users.


Like it? Share with your friends!

2 SHARES
0
2 SHARES, 0 points

How add custom files to newly created user automatic

log in

Become a part of our community!

reset password

Back to
log in
Choose A Format
Personality quiz
Trivia quiz
Poll
Story
List
Meme
Video
Audio
Image