Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FTP default file permission 1

Status
Not open for further replies.

sendhilk

IS-IT--Management
Joined
Mar 29, 2001
Messages
109
Location
US
Hi,

When i FTP a file to a server i want the default permission of the file to be set to 664 but instead it is set to 644. I tried setting umask to 002 in my profile with no luck.
Could anyone please suggest a way i could do this.

Thanks,
Sendhil
 
You could try using the SITE UMASK 002 FTP command before sending the files, but it may not be supported by your FTP server. Or SITE CHMOD 664 filename. Annihilannic.
 
Actually, from ftpd's man page:

[tt]
in.ftpd's umask (which it uses to create files during
PUT operations) may be adjusted by adding the line

UMASK=nnn


to /etc/default/ftpd[/tt]

That should do the trick! Annihilannic.
 
Works Great !

Thank you :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top