[ale] Help with chmod

Geoffrey esoteric at 3times25.net
Fri Sep 12 20:13:03 EDT 2003


If I recall, historically, umask will not set the execute bit on a file, 
for just the reason Mark has noted.

Mark Angeli wrote:
> Yea, that seems that creating a file that could be executed would open a
> huge hole in the system.
> 
> 
> 
> -----Original Message-----
> From: ale-bounces at ale.org [mailto:ale-bounces at ale.org]On Behalf Of Rick
> Huebner
> Sent: Friday, September 12, 2003 2:53 PM
> To: 'Atlanta Linux Enthusiasts'
> Subject: RE: [ale] Help with chmod
> 
> 
> That did the trick however I can only get 664, not 774...not that it really
> matters, but it seems that umask on a file subtracts from 666, not 777 which
> is only for directories.  It looks like you can't make a new file be created
> with execute permissions.
> 
> ---
> Rick Huebner
> www.rhuebner.com
> 
> 
> 
> -----Original Message-----
> From: ale-bounces at ale.org [mailto:ale-bounces at ale.org] On Behalf Of Chris
> Ricker
> Sent: Friday, September 12, 2003 11:28 AM
> To: Atlanta Linux Enthusiasts
> Subject: Re: [ale] Help with chmod
> 
> 
> On Fri, 12 Sep 2003, Rick Huebner wrote:
> 
> 
>>I've been trying to setup a directory /var/www/html/foodir so that any
>>new files created(usually by ftp) have 774 permissions.  I set the
>>owner to foo and the group to foogroup.  When foo ftp's a file into
>>foodir, it ends up 644.  I set umask for foo to 003 and chmod -R g+s
>>foodir to no avail.  I'm missing something here and can't find
>>it....sigh
> 
> 
> You have to configure that in your ftp server -- most let you control the
> permissions and ownership w/ which files are created
> 
> later,
> chris
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
> 
> 
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
> 
> 
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
> 
> 

-- 
Until later: Geoffrey		esoteric at 3times25.net

The latest, most widespread virus?  Microsoft end user agreement.
Think about it...



More information about the Ale mailing list