Ftp permissions using vsftpd on FC4

The permissions for a number of files ftped into our FC4 server are rwx------.   I know it is dangerous, but I want all files created by ftp to have read, write, execute.  I have changed local_umask=777 in /etc/vsftpd/vsftpd.conf and "service restart vsftpd".  But, I'm not getting files created with full permissions.  Any ideas?
shannon_adamsAsked:
Who is Participating?
 
DonConsolioConnect With a Mentor Commented:
You might also want to check your SELinux settings

"Desktop" > "System Settings" > "Security Level"  >  "FTP" > "SELinux"
0
 
xDamoxCommented:
Hi,

Redhat remove the ability to have execute in the fire permissions for security reasons, rwx is no longer acceptable.
0
 
DonConsolioCommented:
try "local_umask=000" - umask is meant to subtract (i.e. remove) permission bits set, not to add the bits.
0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
xDamoxCommented:
DonConsolio, You cant have a umask of rwx execute has been removed for security pursoses
0
 
DonConsolioCommented:
for me (vsFTPd 2.0.3 on SUSE) this works:
-----------------------
local_umask=000
file_open_mode=0777
------------------------

Redhat may be different :-)
0
 
xDamoxCommented:
DonConsolio, you are able to get rwx on SuSE?
0
 
DonConsolioCommented:
"-rwxrwx---"  is what i got with local_umask=007 and file_open_mode=0777

SUSE 10.0 , vsftpd-2.0.3-6
0
 
xDamoxCommented:
Ok, thanks I didn't know SuSE allowed you to do this
0
 
shannon_adamsAuthor Commented:
DonConsolio, I added the two lines to the /etc/vsftpd/vsftpd.conf file and restarted the service.  However I am getting -rw-rw-r-- when ftping files to the server.  I am almost positive I am running vsftp as the ftp server, but how can I be sure?
0
 
DonConsolioCommented:
$  telnet 127.0.0.1 ftp
and read the banner

or

rpm -qa | grep -i ftp

0
 
DonConsolioCommented:
type "quit<enter>" to leave the telnet session
0
 
shannon_adamsAuthor Commented:
Here is what I see with the rpm command:
lftp-3.2.1-10_FC4  
ncftp-3.1.9-4.fc4  
ftp-0.17-26        
vsftpd-2.0.3-1    

Now, how can I tell which one is being used for ftp transfers?
0
 
shannon_adamsAuthor Commented:
Okay, tried the telnet:
Connected to webserver (127.0.0.1).
Escape character is '^]'.          
220 (vsFTPd 2.0.3)                  
0
 
DonConsolioCommented:
> vsftpd-2.0.3-1    

> 220 (vsFTPd 2.0.3)                  


so you have vsftpd 2.0.3
0
 
DonConsolioCommented:
do your SOURCE files havd 777 mode ?
0
 
xDamoxCommented:
Fedora does not allow rwx files.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.