#1  
Old 14th May 2008, 12:06
Shella Shella is offline
Junior Member
 
Join Date: May 2008
Posts: 28
Thanks: 4
Thanked 0 Times in 0 Posts
Default umask 007

Hi all, i tried to follow instruction to make an hardening on CentOs 5.1 with Bastille.
In the tutorial is suggested to set the umask as 007. Can please somebody explain me the advantages setting this umask in this way please?
If i understood it's work so:

if a file have permission like 0777, with the umask 007 i have back a permission like 770.... right?

If so... why it's suggested to set umask in this way?
Thanks a lot.
Reply With Quote
Sponsored Links
  #2  
Old 15th May 2008, 19:00
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
 
Default

Quote:
Originally Posted by Shella
Hi all, i tried to follow instruction to make an hardening on CentOs 5.1 with Bastille.
In the tutorial is suggested to set the umask as 007. Can please somebody explain me the advantages setting this umask in this way please?
If i understood it's work so:

if a file have permission like 0777, with the umask 007 i have back a permission like 770.... right?
Yes, when you upload a file via FTP, it will have 770 permissions. The umask has no effect on existing files.

Quote:
Originally Posted by Shella
If so... why it's suggested to set umask in this way?
770 means that the owner and the group have all permissions for that file, but everyone else has no permissions at all (not even read permissions) - it's a security measure.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
Shella (15th May 2008)
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ftp download failed tomt2002 Installation/Configuration 11 24th July 2007 13:48
Anonymous FTP fails with 503 error RAMilewski Installation/Configuration 12 16th April 2007 14:00
Web-FTP Directory Protection jmroth General 6 26th March 2007 23:34
Change default ftp umask r12dk Installation/Configuration 4 21st April 2006 17:21
Im thinking about throwing proftpd to the trashcan danf.1979 Installation/Configuration 2 23rd December 2005 09:27


All times are GMT +2. The time now is 06:08.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.