[NTLUG:Discuss] Force permissions on a directory?

Neil Aggarwal neil at JAMMConsulting.com
Wed Jun 1 11:37:50 CDT 2005


Fred:

My umask is already set to 755.  Running 
umask -S gives me: u=rwx,g=rx,o=rx

But, unfortunately when I sftp my files, they do
not have 755 mode.

Any other ideas?

Thanks,
	Neil

--
Neil Aggarwal, JAMM Consulting, (214) 986-3533, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by
17% or more in 6 months or less! http://newsletter.JAMMConsulting.com

> -----Original Message-----
> From: discuss-bounces at ntlug.org 
> [mailto:discuss-bounces at ntlug.org] On Behalf Of Fred James
> Sent: Sunday, May 29, 2005 10:00 PM
> To: NTLUG Discussion List
> Subject: Re: [NTLUG:Discuss] Force permissions on a directory?
> 
> 
> Neil Aggarwal wrote:
> 
> >Hello:
> >
> >On my web server, I have a directory public_html in my
> >home directory.  I have the public_html and all files
> >in it set to mode 755.
> >
> >When I upload files using SFTP, they do not have mode 755
> >and the web server gives me permission denied until I 
> >go to the shell and change them to mode 755.
> >
> >Is there any want to force a directory to have all its
> >files always be mode 755?
> >
> >Thanks,
> >	Neil
> >
> >  
> >
> Neil Aggarwal
> I may be wrong, but isn't that a function of the 'umask' of 
> the user you 
> log on as?
> 
> Failing that, 'sftp' has a 'chmod' command which you could 
> use (see below).
> Regards
> Fred James
> 
>  From 'man sftp' on Mandrake/Mandriva 9.1:
> <snip>
>      chmod mode path
>              Change permissions of file path to mode.
> </snip>
> 
> _______________________________________________
> https://ntlug.org/mailman/listinfo/discuss
> 





More information about the Discuss mailing list