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 10-20-2003, 12:02 PM   #1
hct224
Member
 
Registered: Jun 2003
Distribution: Redhat
Posts: 87

Rep: Reputation: 15
ProFTPD Umask question.....


Is it possible to set Umask more than 1 time in proftpd.conf file?
For example:
<directory /home/dir1/ *>
Umask 022
..............................
</directory>

<directory /home/dir2/ *>
Umask 002
..............................
</directory>

<directory /home/dir3/ *>
Umask 007
..............................
</directory>
..........


Thanks
 
Old 10-21-2003, 03:35 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Probably... However, it will probably depend also a lot on your <LIMIT> and <ALLOW> code to ensure those directories contain the necessary permissions... Or I could be just guessing.. Yeah, that's most likely

If this is necessary I'd personally (if it's not time intensive) set up a cron job to adjust the permissions on the files in X directory every hour; assuming that the umask in each directory doesn't end up working as shown above.

Good Luck, and let us know how things go!

Cool
 
Old 10-21-2003, 11:03 AM   #3
hct224
Member
 
Registered: Jun 2003
Distribution: Redhat
Posts: 87

Original Poster
Rep: Reputation: 15
I just tested and it does work.
 
  


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
vsftp umask question bkali4nia Linux - Software 11 12-31-2013 03:59 AM
ProFTPD: Set umask so that directories are created with 'sticky bit' on. dutch2005 Linux - Software 1 09-06-2005 06:06 AM
About umask of proftpd tommyliu Linux - Software 2 03-16-2005 09:05 PM
simple umask question danahata Linux - General 8 08-26-2003 12:04 PM
umask Question gauge73 Linux - Newbie 2 07-09-2003 08:16 PM


All times are GMT -5. The time now is 02:00 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration