permission problem - persistent 664

jeffz2009

Verified User
Joined
Aug 9, 2009
Messages
6
DirectAdmin v1.33.7 on CentOS 5
Apache 2.2.12
ProFTPd 1.3.1
---------------------------
problem description:
- all files uploaded by ftp client (tested with: DreamWeaver, FileZilla, CoreFTP) end up as 664 (I want 644)
- all files uploaded by DirectAdmin are OK (644)
- files uploaded by command line ftp are also OK (644)

---------------------------
tried solution:
Umask 022 in proftpd.conf does not help.

---------------------------
additional (most likely not relevant) info:
ftp client cannot apply/change permissions - access is denied.


Anyone have idea what may be a problem here?
Is it DA, or may be Apache itself? Or what else?

Jeff
 
I have no clue what your even asking or what the problem is. State your problem or question.
 
problem lies in permission

When I use ftp client (eg. filezilla, DreamWeaver, CoreFTP) uploaded files end up as 664.
To get it as 644 (which I want) I have to do it manually in DA.
There is no such problem when DA upload functionality is used. Also command line upload gives desired 644.

I found no way to change/set permissions for uploaded files in client, so I suspect that problem lies somewhere on the server, even thou only client-uploaded files are affected.
Same clients, with same setup, working with other 2 VDSs, which are almost same, do not experience such problem, so I doubt it is a problem with client setup.

So problem is: how to upload files via ftp clients with 644 not 664 as it happens now.

Does that make more sense?

Jeff
 
I think it comes from the parent folder permissions and also umask. You should read up on umask and set it to what you see appropriate.
 
SFTP causes 664 - FTP gets expected 644

But that observation does not get me any closer to pinpointing location of a problem :rolleyes:
 
Then you need to pay money to someone who knows what they are doing. Its not rocket science.
 
644 is the default, if your getting something different then you have something screwed up.

Try using winscp for example and see what you get. You can also set the permission default in winscp to whatever you want, by default it's doing 644 though.
 
jeffz2009: You are talking about 2 different things. FTP and SFTP are two totally different ways of transferring files.

First you say:
problem description:
- all files uploaded by ftp client (tested with: DreamWeaver, FileZilla, CoreFTP) end up as 664 (I want 644)

Then you say:
SFTP causes 664 - FTP gets expected 644

The two statements contradict one another. Please be clear on what your problem is. Are you having a problem with FTP or SFTP?
 
and where is the fun in that?

Then you need to pay money to someone who knows what they are doing. Its not rocket science.

And where's the fun in that?
This is my private VDS, so no "rocket science secrets there", so to speak:)
The real fun is to get the answer yourself, wouldn't you say?
My "area of expertise" lays elsewhere, but additional server knowledge is always very welcome.
Of course forum like this one can be very helpful to save time by "pushing" you in right learning direction, especially, if you are new in the field.
Anyway scsi thanks for taking time to write a few lines.
Very much appreciated (no sarcasm here).
Jeff
 
not yet ... problem is still there, but

... it may possibly be related to OpenSSH, not proftp.
It seems like in my particular setup openSSH handles sftp, not proftp itself.
(can't take credit for this observation:))

I'll try to fiddle with OpenSSH (when I'll find more time) and see what it comes down to.
If and when I get answer, I will post it here, as I suspect this may be quite wide, yet ignored, or overlooked nuisance by DA users.
664 and 644 look very same at first glance.

Jeff
 
... it may possibly be related to OpenSSH, not proftp.
It seems like in my particular setup openSSH handles sftp, not proftp itself.
(can't take credit for this observation:))

I indicated that in post #8. That is why I asked which one you were having a problem with. If its ftp then you need to look at the proftpd.conf file. If its sftp then you need to look at the sshd_conf file.

And its not your particular set up. It is all systems. sftp is always handled by ssh. ftps is handled by the ftp server.

Remember google is your friend. I don't normally do this because I believe people should put some effort into finding the solution but here it is:

Google "permissions on sftp"
The first link seems to be an easy solution but I have not tried it: http://blog.mrmason.net/2009/05/27/changing-default-file-permissions-for-sftp/

There are plenty of others to read and try.

This is really an off topic discussion since it has nothing at all to do with DirectAdmin itself.
 
thanks for an answer

reason for this post was to get some initial info set, for some meaningful reading.
I'm not a "college kid" and unfortunately I do not have time for "unrelated reading".
I wish I would thou.

My "area of expertise" lies sightly elsewhere.

So whenever I post anything anywhere, I only humbly expect a narrow-down info, not a solution.
So thank you all for replies.

Well, whole thing was sorted by my host.
If it wasn't against the rules, I would post their name here, as they are well worth it.

Regards to all,
Jeff
 
I do not have time for "unrelated reading".

Nobody suggested that you read things unrelated. But if you want us to help in any way then you have to answer the questions we ask.

Well, whole thing was sorted by my host.

If you are not the administrator of the server then that is probably where you should have started.
 
Back
Top