#1  
Old 26th January 2008, 19:32
malinens malinens is offline
Member
 
Join Date: Jan 2008
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default vsftpd permissions

Why all file permissions are set to 600 and folder permissions are set to 700 when I am uploading something
I must manually change permissions after uplaoding files

Last edited by malinens; 26th January 2008 at 20:05.
Reply With Quote
Sponsored Links
  #2  
Old 27th January 2008, 14:34
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

What's in /etc/vsftpd.conf?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 29th January 2008, 00:20
malinens malinens is offline
Member
 
Join Date: Jan 2008
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Code:
# Example config file /etc/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
#
# Run standalone?  vsftpd can run either from an inetd or as a standalone
# daemon started from an initscript.
listen=YES
#
# Run standalone with IPv6?
# Like the listen parameter, except vsftpd will listen on an IPv6 socket
# instead of an IPv4 one. This parameter and the listen parameter are mutually
# exclusive.
#listen_ipv6=YES
#
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=YES
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
# 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
#
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
#anon_upload_enable=YES
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
#anon_mkdir_write_enable=YES
#
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES
#
# If you want, you can arrange for uploaded anonymous files to be owned by
# a different user. Note! Using "root" for uploaded files is not
# recommended!
#chown_uploads=YES
#chown_username=whoever
#
# You may override where the log file goes if you like. The default is shown
# below.
#xferlog_file=/var/log/vsftpd.log
#
# If you want, you can have your log file in standard ftpd xferlog format
#xferlog_std_format=YES
#
# You may change the default value for timing out an idle session.
#idle_session_timeout=600
#
# You may change the default value for timing out a data connection.
#data_connection_timeout=120
#
# It is recommended that you define on your system a unique user which the
# ftp server can use as a totally isolated and unprivileged user.
#nopriv_user=ftpsecure
#
# Enable this and the server will recognise asynchronous ABOR requests. Not
# recommended for security (the code is non-trivial). Not enabling it,
# however, may confuse older FTP clients.
#async_abor_enable=YES
#
# By default the server will pretend to allow ASCII mode but in fact ignore
# the request. Turn on the below options to have the server actually do ASCII
# mangling on files when in ASCII mode.
# Beware that on some FTP servers, ASCII support allows a denial of service
# attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd
# predicted this attack and has always been safe, reporting the size of the
# raw file.
# ASCII mangling is a horrible feature of the protocol.
#ascii_upload_enable=YES
#ascii_download_enable=YES
#
# You may fully customise the login banner string:
#ftpd_banner=Welcome to blah FTP service.
#
# You may specify a file of disallowed anonymous e-mail addresses. Apparently
# useful for combatting certain DoS attacks.
#deny_email_enable=YES
# (default follows)
#banned_email_file=/etc/vsftpd.banned_emails
#
# You may restrict local users to their home directories.  See the FAQ for
# the possible risks in this before using chroot_local_user or
# chroot_list_enable below.
#chroot_local_user=YES
#
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
#chroot_list_enable=YES
# (default follows)
#chroot_list_file=/etc/vsftpd.chroot_list
#
# You may activate the "-R" option to the builtin ls. This is disabled by
# default to avoid remote users being able to cause excessive I/O on large
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
# the presence of the "-R" option, so there is a strong case for enabling it.
#ls_recurse_enable=YES
#
#
# Debian customization
#
# Some of vsftpd's settings don't fit the Debian filesystem layout by
# default.  These settings are more Debian-friendly.
#
# This option should be the name of a directory which is empty.  Also, the
# directory should not be writable by the ftp user. This directory is used
# as a secure chroot() jail at times vsftpd does not require filesystem
# access.
secure_chroot_dir=/var/run/vsftpd
#
# This string is the name of the PAM service vsftpd will use.
pam_service_name=vsftpd
#
# This option specifies the location of the RSA certificate to use for SSL
# encrypted connections.
rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
# This option specifies the location of the RSA key to use for SSL
# encrypted connections.
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
Reply With Quote
  #4  
Old 29th January 2008, 09:14
malinens malinens is offline
Member
 
Join Date: Jan 2008
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have one more problem. I can access ftp through online ftp (net2ftp.com) but I can not login to my ftp account through filezilla.

I tried to restart vsftpd (SSH):

Code:
login as: root
root@torrentz.lv's password:
Last login: Tue Jan 29 04:20:10 2008 from balticom-13-41.balticom.lv

Could not connect to database
Linux server1.torrentz2.oo.lv 2.6.22-14-generic #1 SMP Tue Dec 18 08:02:57 UTC 2                                          007 i686

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
root@server1:~# /etc/rc.d/init.d/ispconfig_tcpserver restart
-bash: /etc/rc.d/init.d/ispconfig_tcpserver: No such file or directory
root@server1:~# /etc/init.d/ispconfig_tcpserver restart
Stopping ispconfig_tcpserver
Starting ispconfig_tcpserver/home/admispconfig/ispconfig/tools/tcpserver/ispconf                                          ig_tcpserver: relocation error: /home/admispconfig/ispconfig/tools/tcpserver/isp                                          config_tcpserver: symbol errno, version GLIBC_2.0 not defined in file libc.so.6                                           with link time reference
/home/admispconfig/ispconfig/tools/tcpserver/ispconfig_tcpserver: relocation err                                          or: /home/admispconfig/ispconfig/tools/tcpserver/ispconfig_tcpserver: symbol err                                          no, version GLIBC_2.0 not defined in file libc.so.6 with link time reference
Reply With Quote
  #5  
Old 29th January 2008, 20:30
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Please enable
Code:
local_umask=022
in vsftpd.conf and restart vsftpd.conf.
What's the output of
Code:
netstat -tap
and
Code:
iptables -L
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 30th January 2008, 00:43
malinens malinens is offline
Member
 
Join Date: Jan 2008
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Code:
Proto Recv-Q Send-Q Local Address Foreign Address State       PID/Program name
tcp        0      0 *:63392                 *:*                     LISTEN     29683/LFS.exe
tcp        0      0 *:nfs                   *:*                     LISTEN     -
tcp        0      0 *:55938                 *:*                     LISTEN     -
tcp        0      0 *:42118                 *:*                     LISTEN     5500/rpc.mountd
tcp        0      0 *:mysql                 *:*                     LISTEN     5096/mysqld
tcp        0      0 *:netbios-ssn           *:*                     LISTEN     5621/smbd
tcp        0      0 *:sunrpc                *:*                     LISTEN     4283/portmap
tcp        0      0 *:www                   *:*                     LISTEN     -
tcp        0      0 server1.torrentz2.o:www 212.0.129.65:27674      SYN_RECV   -
tcp        0      0 *:webmin                *:*                     LISTEN     6663/perl
tcp        0      0 *:81                    *:*                     LISTEN     -
tcp        0      0 *:ftp                   *:*                     LISTEN     -
tcp        0      0 server1.torrentz:domain *:*                     LISTEN     -
tcp        0      0 server1.torrentz:domain *:*                     LISTEN     -
tcp        0      0 localhost.locald:domain *:*                     LISTEN     -
tcp        0      0 *:821                   *:*                     LISTEN     5733/rpc.rquotad
tcp        0      0 *:46167                 *:*                     LISTEN     4302/rpc.statd
tcp        0      0 *:3128                  *:*                     LISTEN     5982/(squid)
tcp        0      0 localhost.lo:postgresql *:*                     LISTEN     5174/postgres
tcp        0      0 *:smtp                  *:*                     LISTEN     28967/master
tcp        0      0 localhost.localdoma:953 *:*                     LISTEN     -
tcp        0      0 *:https                 *:*                     LISTEN     -
tcp        0      0 *:microsoft-ds          *:*                     LISTEN     5621/smbd

Code:
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
When I am trying to connect to my serveri with filezilla (from Windows XP):

Code:
Status:	Nosaka IP adresi my-domain.com
Status:	Savienojas ar MY-IP:21...
Status:	Nodibinats savienojums, gaida sagaidisanas zinojumu...
Atbilde:	220 (vsFTPd 2.0.5)
Komanda:	USER root
Atbilde:	331 Please specify the password.
Komanda:	PASS ********
Atbilde:	530 Login incorrect.
Kluda:	Nevar savienoties ar serveri (could not connect to server)
Status:	Nosaka IP adresi my-domain.com
Status:	Savienojas ar MY-IP:21...
Status:	Nodibinats savienojums, gaida sagaidisanas zinojumu...
Atbilde:	220 (vsFTPd 2.0.5)
Komanda:	USER juris
Atbilde:	331 Please specify the password.
Komanda:	PASS ********
Atbilde:	Could not connect to database
Kluda:	Nevar savienoties ar serveri
Status:	Gaida, lai atkartotu...
Status:	Nosaka IP adresi my-domain.com
Status:	Savienojas ar MY-IP:21...
Status:	Nodibinats savienojums, gaida sagaidisanas zinojumu...
Atbilde:	220 (vsFTPd 2.0.5)
Komanda:	USER juris
Atbilde:	331 Please specify the password.
Komanda:	PASS ********
Atbilde:	Could not connect to database
Kluda:	Nevar savienoties ar serveri
Status:	Gaida, lai atkartotu...
Kluda:	Savienosanas meginajumu partraucis lietotajs
Status:	Nosaka IP adresi my-domain.com
Status:	Savienojas ar MY-IP:21...
Status:	Nodibinats savienojums, gaida sagaidisanas zinojumu...
Atbilde:	220 (vsFTPd 2.0.5)
Komanda:	USER juris
Atbilde:	331 Please specify the password.
Komanda:	PASS ********
Atbilde:	Could not connect to database
Kluda:	Nevar savienoties ar serveri
Status:	Gaida, lai atkartotu...
Status:	Nosaka IP adresi my-domain.com
Status:	Savienojas ar MY-IP:21...
Status:	Nodibinats savienojums, gaida sagaidisanas zinojumu...
Atbilde:	220 (vsFTPd 2.0.5)
Komanda:	USER juris
Atbilde:	331 Please specify the password.
Komanda:	PASS ********
Atbilde:	Could not connect to database
Kluda:	Nevar savienoties ar serveri
Status:	Gaida, lai atkartotu...
Status:	Nosaka IP adresi my-domain.com
Status:	Savienojas ar MY-IP:21...
Status:	Nodibinats savienojums, gaida sagaidisanas zinojumu...
Atbilde:	220 (vsFTPd 2.0.5)
Komanda:	USER juris
Atbilde:	331 Please specify the password.
Komanda:	PASS ********
Atbilde:	Could not connect to database
Kluda:	Nevar savienoties ar serveri
Status:	Nosaka IP adresi my-domain.com
Status:	Savienojas ar MY-IP:21...
Status:	Nodibinats savienojums, gaida sagaidisanas zinojumu...
Atbilde:	220 (vsFTPd 2.0.5)
Komanda:	USER web1_admin
Atbilde:	331 Please specify the password.
Komanda:	PASS ********
Atbilde:	Could not connect to database
Kluda:	Nevar savienoties ar serveri
Status:	Gaida, lai atkartotu...
Status:	Nosaka IP adresi my-domain.com
Status:	Savienojas ar MY-IP:21...
Status:	Nodibinats savienojums, gaida sagaidisanas zinojumu...
Atbilde:	220 (vsFTPd 2.0.5)
Komanda:	USER web1_admin
Atbilde:	331 Please specify the password.
Komanda:	PASS ********
Atbilde:	Could not connect to database
Kluda:	Nevar savienoties ar serveri
Status:	Gaida, lai atkartotu...
Status:	Nosaka IP adresi my-domain.com
Status:	Savienojas ar MY-IP:21...
Status:	Nodibinats savienojums, gaida sagaidisanas zinojumu...
Atbilde:	220 (vsFTPd 2.0.5)
Komanda:	USER web1_admin
Atbilde:	331 Please specify the password.
Komanda:	PASS ********
Atbilde:	Could not connect to database
Kluda:	Nevar savienoties ar serveri
Status:	Nosaka IP adresi my-domain.com
Status:	Savienojas ar MY-IP:21...
Status:	Nodibinats savienojums, gaida sagaidisanas zinojumu...
Atbilde:	220 (vsFTPd 2.0.5)
Komanda:	USER root
Atbilde:	331 Please specify the password.
Komanda:	PASS ********
Atbilde:	530 Login incorrect.
Kluda:	Nevar savienoties ar serveri
Status:	Nosaka IP adresi my-domain.com
Status:	Savienojas ar MY-IP:21...
Status:	Nodibinats savienojums, gaida sagaidisanas zinojumu...
Atbilde:	220 (vsFTPd 2.0.5)
Komanda:	USER root
Atbilde:	331 Please specify the password.
Komanda:	PASS *******
Atbilde:	530 Login incorrect.
Kluda:	Nevar savienoties ar serveri
Status:	Nosaka IP adresi my-domain.com
Status:	Savienojas ar MY-IP:21...
Status:	Nodibinats savienojums, gaida sagaidisanas zinojumu...
Atbilde:	220 (vsFTPd 2.0.5)
Komanda:	USER root
Atbilde:	331 Please specify the password.
Komanda:	PASS ********
Atbilde:	530 Login incorrect.
Kluda:	Nevar savienoties ar serveri

Last edited by malinens; 30th January 2008 at 00:57.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
VSFTPD set up crazy8 HOWTO-Related Questions 1 13th September 2007 18:11
Logcheck Permissions Problems Drek Server Operation 1 7th September 2007 15:43
bind issues with permissions always changing djtremors General 3 11th March 2007 12:58
vsftpd difficulties teves Installation/Configuration 2 19th October 2006 09:51
VSFTPD & IDENT Lookups again trueshanti Installation/Configuration 5 3rd September 2006 14:36


All times are GMT +2. The time now is 04:05.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.