انجمن‌های فارسی اوبونتو

کمک و پشتیبانی => شبکه و سرویس‌ دهنده‌ها => نویسنده: araz در 22 امرداد 1387، 09:47 ب‌ظ

عنوان: اشکال در ایجاد کاربر در اوبونتو جهت اتصال به سرور vsftp {حل شد}
ارسال شده توسط: araz در 22 امرداد 1387، 09:47 ب‌ظ
سلام دوستان عزیز
من می خواستم یک اکانت درست کنم که امکان لاگین از طریق ftp  به سرور ایجاد کنم
کارهای که کردم اینها بودن
1-با useradd -c /home/user/public_html  یک کاربر درست کردم و بعدش پسورد براش ست کردم
2- توی تنظیمات apache و availeable-sites هم این دایرکتوری تنظیم کردم  که درست کار می کنه
3-از طریق dreamweaver  توی ویندوز کانت میشم ولی لیست دایرکتوریها را هم می تونم ببینم ولی امکان ایجاد فولدر را ندارم
4-لازم به ذکر است که با دستور chown  پرمیژن را به کاربر اصلی سیستم داده ام
5-توی کانفیگ vsftpd کاربری که به chroot  داده ام همونی که از طریق اکانت ftp به سایت وصل می شم.
به نظر شما من کجای کار را اشتباه کردم


کانفیگ  vsftpd.conf این است




#
# 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  Ftp.
#
# 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


عنوان: پاسخ به: اشکال در ایجاد کاربر در اوبونتو جهت اتصال به سرور vsftp
ارسال شده توسط: Mehdi در 22 امرداد 1387، 10:17 ب‌ظ
تو تنظیمات apache نیازی نیست کاری کنید این دو تا سرویس برخلاف ویندوز کاملا از هم مستقل هستند... شما فقط باید توی DNS تون یه A رکورد واسه ftp درست کنید و بعدش هم کاربرا رو کاربرای معمولی تعریف کنید یا یه گروه ftp-users مثلا درست کنید...
ضمنا این خطها رو هم تو فایل vsftpd.conf لازم دارید
chroot_local_user=YES
local_enable=YES
write_enable=YES