Thx fo rthe reply,

yes its works. But the apche requires that even the
home folder have an id of 711 instead of 700.

How can I change this? So whenever admin add user with
command 'useradd' the user hom's folder will have id
of 711.

And is this a save method? considering that id 711
will allow other group and user to execute any file in
the home folder.


--- Jamie Wilkinson <[EMAIL PROTECTED]> wrote:
> 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


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to