LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-26-2019, 03:53 AM   #1
dijsill
LQ Newbie
 
Registered: Aug 2007
Posts: 6

Rep: Reputation: 0
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
 
Old 02-26-2019, 06:21 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 10,987

Rep: Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250
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.
 
Old 02-26-2019, 07:17 AM   #3
dijsill
LQ Newbie
 
Registered: Aug 2007
Posts: 6

Original Poster
Rep: Reputation: 0
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.
 
Old 02-26-2019, 07:50 AM   #4
wpeckham
Senior Member
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, Vsido, tinycore, Q4OS
Posts: 3,187

Rep: Reputation: 1380Reputation: 1380Reputation: 1380Reputation: 1380Reputation: 1380Reputation: 1380Reputation: 1380Reputation: 1380Reputation: 1380Reputation: 1380
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.
 
Old 02-26-2019, 10:58 AM   #5
dijsill
LQ Newbie
 
Registered: Aug 2007
Posts: 6

Original Poster
Rep: Reputation: 0
I use filezilla as a client and I think Ftpd as a server
 
Old 02-26-2019, 12:53 PM   #6
jorgeflh
LQ Newbie
 
Registered: Apr 2013
Posts: 4

Rep: Reputation: Disabled
Try to set the umask 002 in ftpd config file
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
File permissions question - Cento & Ubuntu / same file / same permissions but... Robert.Thompson Linux - Newbie 10 03-17-2016 10:49 AM
[SOLVED] Permissions Permissions Permissions! makem Linux - Newbie 13 07-30-2015 12:54 PM
File Permissions- Once again the Permissions questions?? fusionstate Linux - Newbie 2 01-04-2014 01:47 PM
File permissions v. directory permissions Completely Clueless Linux - Newbie 7 07-09-2009 09:33 AM
file permissions OK, but command permissions? stabu Linux - General 2 10-05-2005 01:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration