Well, actually you need to change the rights of all folders and files on the server or a specific one, do you need to change when adding a new user to ftp or something else?
1 answer
If you have enough rights, this is done with the commands:
A) Folders:
sudo find /home/user/myfolder -type d -exec chmod 0755 {} \; B) Files:
sudo find /home/user/myfolder -type f -exec chmod 0644 {} \; File masks are standard.
The second part of the question - about ftp access depends heavily on how you set up an ftp server, I once described a few typical cases , it may be useful.
- Damn, I added this line. sudo find / -type d -exec chmod 0755 {} \; And all flew away. Even I can not connect to ftp. - Albert Ushakov
- one@Albert, well, yes, because you changed the rights for ALL files in the system. And on their own and on the system. You would even after the "format c:" complained that the Windows flew. AK led the way as an example, and you thoughtlessly corrected and executed. - don Rumata
- oneNow pull out files, configs and rearrange OS. - don Rumata
- Damn all day killed it. Everything works, but these rights. Configured by the user and for folders and files, but I can not do anything through FileZilla. Displays when attempting to create a folder: 550 Create directory operation failed. - Albert Ushakov
|