Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm looking for example additional configuration done on new user creation, the kind of stuff that goes beyond /etc/skel. For example, has anyone written a script to set public_html set-GUID?

share|improve this question

1 Answer 1

Here's a trivial script I wrote to change permissions, because adduser discards permissions when copying from /etc/skel.

#!/bin/sh
# This script is executed at the end of adduser
# USAGE:
# adduser.local USER UID GID HOME

chgrp www-data $4/public_html    
chmod g+s $4/public_html
share|improve this answer

Your Answer

 
discard

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.