A problem for uploading permission

My OS:FreeBSD 7.2-RELEASE (GENERIC)
After I use "adduser" to create another user account~
mkdir /home/useraccount/www~
The command "chmod 777 /home/useraccount/www" doesn`t work
I have to chmod that again!

The problem is:
when I upload files to the directory,the permission always shows "640",I think that`s wrong,because when I browse from browser,it will show error message "Permission Deny".

Anyone can help me to solve this problem?
Thanks!
 
I use dreamweaver to upload my website files and directories.And I use CuteFTP to try again.The result is the same.

I use "umask" command and it show 22.
 
That's weird, with an umask 022, you should be creating new files as 755 (with read-execute permissions for all other users).

What is the output of
Code:
grep umask /etc/login_conf /home/useraccount/.login_conf
?
 
I test every user directory,and show:

Code:
/etc/login.conf:        :umask=022:
/etc/login.conf:#       :umask=022:\
/etc/login.conf:#       :umask=002:\
/etc/login.conf:#       :umask=022:\
/etc/login.conf:#       :umask=022:\
 
I was actually asking what FTP server software you were using, sorry for not being clear. Maybe your configuration has a setting that sets the umask for uploads.

Read the documentation and find out whether this is the case.
 
Sorry~
but I don`t set another FTP SERVER just open the port @ /etc/inetd.conf
Code:
ftp     stream  tcp     nowait  root    /usr/libexec/ftpd       ftpd -l
#ftp    stream  tcp6    nowait  root    /usr/libexec/ftpd       ftpd -l

I don
 
Which ftp client is used? Or is dreamweaver able to upload? Check if dreamweaver has a setting for default permissions.
 
Sorry~
But I do the same actions to another SERVER with FreeBSD 7.1,and it`s OK~
I just would like to build a new server then I face to this.FTP,client,dreamweaver, are all in the same way working.
 
Back
Top