This one time, at band camp, Phillipus Gunawan wrote: >G'day, > >How to make an auto generate script that will create >the public_html folder for the user, inside their >home's directory? > >For example, if I add user 'donald' from command >'adduser donald mygroup' it will create the >public_html folder inside his home's folder.
/etc/skel contains a skeleton home directory layout, that gets copied to the new user's home directory when adduser and useradd create a user. Create /etc/skel/public_html, set the permissions you want there. When adduser runs, it will keep those permissions and set the user/group correctly. -- [EMAIL PROTECTED] http://spacepants.org/jaq.gpg -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
