LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 05-08-2007, 10:58 AM   #1
andpol
LQ Newbie
 
Registered: May 2007
Distribution: Debian
Posts: 3

Rep: Reputation: 0
Any way to automatically assign permissions??


I'm running Debian 4.0r0 and right now i'm running vsftpd and apache2. I was wondering if I can somehow make all files in a directory automatically have certain permissions.

I have a directory with http access with a user and password through apache2. I want files that are uploaded with the ftp user from vsftpd to have the "read" permission for "others"




Thanks,
 
Old 05-08-2007, 03:24 PM   #2
cgjones
Member
 
Registered: Nov 2005
Location: Central New York
Distribution: Ubuntu
Posts: 405

Rep: Reputation: 30
I'm not sure, but you might need to modify the following option in vsftpd.conf.

Quote:
file_open_mode

The permissions with which uploaded files are created. Umasks are applied on top of this value. You may wish to change to 0777 if you want uploaded files to be executable.

Default: 0666
 
Old 05-14-2007, 11:01 AM   #3
andpol
LQ Newbie
 
Registered: May 2007
Distribution: Debian
Posts: 3

Original Poster
Rep: Reputation: 0
thanks,

I got it working,

local_umask=002
file_open_mode=0777


now the default permissions for ftp user are:
directory:drwxrwxr-x
files:-rwxrwxr-x


Thanks,
 
  


Reply

Tags
assign, automatic, permission


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
Automatically set permissions of new files created within a specific folder Lorian Linux - Desktop 2 03-03-2007 03:17 PM
Automatically set permissions on /dev/ttyUSB0 MicahCarrick Linux - Software 1 03-22-2006 08:20 AM
FOLDER permissions change automatically Echo Kilo Linux - Newbie 5 08-21-2005 03:09 AM
Permissions home dir reset automatically Marco Vermunt Linux - Newbie 1 01-24-2005 01:50 PM
Automatically Setting File Permissions in a Directory maneeshsethi Linux - Security 2 05-27-2004 07:42 PM


All times are GMT -5. The time now is 07:00 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration