Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to added public_html and private_html folders for users of my web server (Fedora 8 or 10 or something). Where is the script that will create those folders for them when they log on? Is there one script for first logon and a different script for subsequent logons? What is the normal way this is accomplished?

share|improve this question
up vote 14 down vote accepted

Fedora will copy the contents of /etc/skel into your newly created home directories upon account creation. You can just toss empty public_html and private_html directories there.

share|improve this answer
It's not just Fedora - that's a standard location for Linux/Unix distributions in general. – baumgart Jul 28 '09 at 18:41

In debian you can provide a script that is run after adduser is called. Perhaps fedora has something analog. You can use this script, if you have further things to do...

Here a snippet from man adduser

If the file /usr/local/sbin/adduser.local exists, it will be executed  
after the user account has been set up in order to do any local setup.  
The  arguments passed to adduser.local are:
username uid gid home-directory
The environment variable VERBOSE is set according to the following rule:

0 if --quiet is specified

1 if neither --quiet nor --debug is specified

2 if --debug is specified

(The same applies to the variable DEBUG, but DEBUG is deprecated 
and will be removed in a later version of adduser.)
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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