LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-26-2007, 12:19 PM   #1
Hambone_20003
Member
 
Registered: Feb 2005
Posts: 42

Rep: Reputation: 15
FTP File Permissions


Hi I have just installed PureFtpd on FC7. I have almost everything up and running the way that I want. The only snag that I am running into is with one user. I have added user1 and his passwd. What I need to know is there anyway that I can allow him the ability to upload and download files but not move or delete anything. I can not figure out the file permission for this. If allow him upload then he is able to delete files and directories as well.

So I just wanted to know if anyone had any idea on what file permission I would need to set user1 to in order to only give him the upload and download ability.

If you need any other information from me about my current setup I will be more than happy to give you what you need.

Thank You

Brian
 
Old 07-26-2007, 04:58 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
You can use umask to set the file mode creation. I'm not familiar with pureftpd, but vsftpd and proftpd that I've used let you define a umask. You can set it to
Code:
umask 277
so the files are r-x by that user.
 
Old 07-26-2007, 06:06 PM   #3
Hambone_20003
Member
 
Registered: Feb 2005
Posts: 42

Original Poster
Rep: Reputation: 15
Okay I don't want to sound to dumb here but do you happen to know what command should read in order to set the Umask?
 
Old 07-26-2007, 06:24 PM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
I didn't know that pure-ftpd uses commands to alter its configuration!!! Reading the documentation you need to use the -U switch. So I guess "-U 277:077" will do.
 
  


Reply



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
FTP File Permissions Issue KrGAce Linux - Newbie 6 01-12-2006 07:22 AM
FTP File Permissions Issue KrGAce Linux - Networking 1 01-11-2006 06:33 PM
ftp changes file permissions! seran Linux - General 2 07-13-2005 07:34 AM
File/Folder Permissions with FTP scottpioso Linux - Security 8 03-12-2004 02:19 PM
locking a usage policy file/ftp file permissions gbow Linux - Newbie 0 02-16-2004 05:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:23 PM.

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
Open Source Consulting | Domain Registration