I think you will find that you only need to have the public_html directory and below with those ownerships. You can do that by changing the permissions on the /etc/skel/public_html dir to the ones you need and it should preserve the values you have setup. You will also then need to change the default permissions in your ftpd config.

Adam.


On Monday, July 21, 2003, at 04:17 PM, Phillipus Gunawan wrote:


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


-------------------------------------------------------
Adam Hewitt - CCNA, LCP
Senior Network Engineer
Global Dial
1300 130 710
-------------------------------------------------------

--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to