Permissions on files in site directory

prophecy

Verified User
Joined
Jul 8, 2003
Messages
205
Could someone let me know what permissions the files in a site should have?

ex: USER.GROUP

thanks.
 
/home/username/domains/

all directories are username.username apart from:

/logs/
/stats/

which are both root.root

all files in the other directories should also be username.username

Chris
 
Thanks, just got a response from DA support that says it's

username.apache

but i think both will work?
 
Hello,

The only directory that currenly has username:apache 710 is:

/home/username/domains/domain.com

all files below that are username:username and 755.

For the next release however /home/username/domains/domain.com will be back to username:username 755 and the new username:apache 710 directory will be:

/home/username/domains/domain.com/public_html

The reason for this is that the public_ftp directory won't work with anonymous ftp unless it has "world" executable on all directories above it.

confused? :)

John
 
For some reason, it still won't allow me to upload with ftp logging in as the user.user login?
 
Hello,

Did you try setting /home/username/domains/domain.com to 711?

Chec the logs in /var/log/proftpd/* for clues.

John
 
Ya,

could you post what each directory should be leading into it.

Like

/home/USERNAME/ and all below

example: /home/username/ permissions and owners

/home/username/domains/
/home/username/domains/domain.com
 
Ok, get this:

When I ftp into an account, if the user I ftp in as owns the directory /home/USER/
Then nothing gets listed in the ftp.

If the owner is not the correct user, ie, some other user that is for a completely different site, then the ftp listing shows up.

ex: /home/userA/ is userA.userA
Then no listing
if /home/userA/ is userX.userX
then the listing comes up fine.

??
 
Hello,

I had a look at the /etc/proftpd.passwd file and the uig:gid for the account in question didn't match the username. (someone elses). So I changed the UID:GID back to the actual value for that user and then it worked.

John
 
Hi,

I have done the chmod 711 command for the domain directory and now the anonymous ftp works. But it cannot create directory's in the incoming directory. When you create it, it will not show a error. The will be created but with the nobody:nobody restrictions and I think that's why I don't see them in my incoming directory.

What should I do?
 
Hello,

I think they *are* being created, but they just won't show up. The incoming folder is:

drwx--x-wx 2 user user 4096 Oct 21 2002 incoming

So "nobody" should have permission to write to it, but doesn't have permission to see what they did.

If you set incoming to 777, then they'll be able to see as well as write.

John
 
Back
Top