Tell me more ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I had some problems with the filepermissions when local users uploaded their files via vsftp to a server.

I wanted the files to have all 766 permissions. After a lot of trial and error I found out that I had to set the settings like this:

local_umask=011
file_open_mode=0777

But I don't know why this results in 766 permissions. Can anyone explain this?

share|improve this question

1 Answer

up vote 2 down vote accepted

Files are created as 0777. From that, 011 is subtracted. This results in 0766.

share|improve this answer
Yes I got that, I know the trick. But how does this work? Why can't I set just 766? – OrangeTux Jun 25 '12 at 22:37

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.