LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   File Permissions (https://www.linuxquestions.org/questions/linux-newbie-8/file-permissions-4175649070/)

dijsill 02-26-2019 02:53 AM

File Permissions
 
I have a debian server and I am still a newbie.

is it possible to amend permissions on a folder and everytime I upload a file into this folder via ftp permissions are updated instead of amending the permissions everytime

Need to give owner and group 775 permissions to a folder

business_kid 02-26-2019 05:21 AM

Yes, it's possible. But it's bad practice, especially if your server is in any way online. It allows them delete anything they like
Can I gather from your question that your uploaders are having trouble writing what they upload? If you state what you've got, and what you're trying to do, others here will tell you how it's done.

dijsill 02-26-2019 06:17 AM

basically I have an empty folder which a particular software picks up the data from,(once a month I upload 2 files in it and need to put the above mentioned permissions each time) the folder will just have 2 files so it is safe and its just internally not outside the internet.

wpeckham 02-26-2019 06:50 AM

Some of the better ftp/sftp clients allow you to specify the permissions in the settings or on the command line.
Settings and permissions can be overridden by the server, so what ftp server you are running and how it is configured should be considered first.

dijsill 02-26-2019 09:58 AM

I use filezilla as a client and I think Ftpd as a server

jorgeflh 02-26-2019 11:53 AM

Try to set the umask 002 in ftpd config file


All times are GMT -5. The time now is 06:33 AM.