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 upload problem

Status
Not open for further replies.

jthenry

IS-IT--Management
Jan 25, 2002
8
CA
When users upload, the files are given permissions of rxw------. This makes it difficult for other users to download the files as only the owner has access to it. How can I change it so that the default permissions are rwxr-xr-x?

My box is RH 8.0, VSFTP, and users are chrooted.

Thanks
John.
 

chmod 1755 incoming

Cheers Henrik Morsing
Certified AIX 4.3 Systems Administration
& p690 Technical Support
 
Thanks,

But how can I set it so that the permissions are set at 755 by default when uploaded. Without having the users chmod each file.
 
You need to set the default 'umask' setting in vsftpd.conf. I don't run this particular program, but to paste from a post (Google!):
Code:
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
local_umask=022
Learn to love the Google :)
--
JR
 
Thanks,

local_umask=022 worked perfectly.

Cheers,
John.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top