Lines 35-44
Link Here
|
35 |
# User properties |
35 |
# User properties |
36 |
USHELL="/bin/sh" |
36 |
USHELL="/bin/sh" |
37 |
UHOMES="/home/%u" # You may use %u for username here |
37 |
UHOMES="/home/%u" # You may use %u for username here |
38 |
CREATEHOMES="no" # Create home directories and set rights ? |
38 |
CREATEHOMES="no" # Create home directories and set rights ? |
|
|
39 |
ASK_GECOS="no" # ask user for gecos (full name)? prevents scripting, so the default is no. |
40 |
|
41 |
# Home directories |
42 |
# This is useful if you want to have a roaming home directory |
43 |
# that would be available on all clients your users login. |
44 |
CREATEHOMES="yes" # Should the script create home directories? |
45 |
SRV_HOMES="/homes/%u" # Where the user's home directory is located on the NFS server? |
46 |
HOME_SKEL="/etc/skel/" # Where is the skeleton home located? (If not defined, home is left empty) |
39 |
|
47 |
|
40 |
# User passwords generation |
48 |
# User passwords generation |
41 |
# Command-line used to generate a (random ?) password for the users (you may use %u for username here) |
49 |
# Command-line used to generate a (random ?) password for the users (you may use %u for username here) |
|
|
50 |
# !! Note that this is eval'd, and what command you place here, will be run .. |
42 |
PASSWORDGEN="head -c8 /dev/random | uuencode -m - | sed -n -e '2s|=*$||;2p' | sed -e 's|+||g' -e 's|/||g'" |
51 |
PASSWORDGEN="head -c8 /dev/random | uuencode -m - | sed -n -e '2s|=*$||;2p' | sed -e 's|+||g' -e 's|/||g'" |
43 |
#PASSWORDGEN="echo changeme" |
52 |
#PASSWORDGEN="echo changeme" |
44 |
#PASSWORDGEN="echo %u" |
53 |
#PASSWORDGEN="echo %u" |