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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

file from ftp with default permission format 664, help pls...

Status
Not open for further replies.

h3nd

Programmer
Jul 1, 2006
147
AU
Hi guys,

I need to have the file to be format 664 when the files are coming from ftp.

The current default that I've got is 644, even after I changed the umask value into 002.

So do you guys have any idea to change the permission with data coming from ftp ?

Thx guys
 
On AIX you need to change the call to the ftp daemon to include the flag
Code:
-u 002
This can be changed using
Code:
smitty inetdconf
change/show characteristics of an inetd subserver

I'm not sure how it's done on other flavours of Unix but start by looking in /etc/inetd.conf

Ceci n'est pas une signature
Columb Healy
 
what about in Redhat flavour man.

Is it the same ?
 
Sorry, I don't run ftp on my RH boxes, but there's no inetd.conf so it can't be there.
Anyone else?

Ceci n'est pas une signature
Columb Healy
 
Are you using vsftp ? /etc/vsftpd/vsftpd.conf change the umask value in the config and restart the service

on most recent redhats :
service vsftpd restart

all should be well.

if some other ftp daemon, no clue soz.

______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.
 
the files are coming from ftp
With get or put ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
with put,

because I got data transfered from NT server.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top