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

لطفاً به انجمن‌ها وارد شده و یا جهت ورود ثبت‌نام نمائید

لطفاً جهت ورود نام کاربری و رمز عبورتان را وارد نمائید




نویسنده موضوع: اشکال در ایجاد کاربر در اوبونتو جهت اتصال به سرور vsftp {حل شد}  (دفعات بازدید: 2380 بار)

0 کاربر و 2 مهمان درحال مشاهده موضوع.

آفلاین araz

  • Jr. Member
  • *
  • ارسال: 57
سلام دوستان عزیز
من می خواستم یک اکانت درست کنم که امکان لاگین از طریق 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


« آخرین ویرایش: 23 امرداد 1387، 12:57 ب‌ظ توسط araz »
Just believe in destiny

آفلاین Mehdi

  • ناظر ویژه انجمن
  • *
  • ارسال: 3284
  • جنسیت : پسر
    • هزاردستان
تو تنظیمات apache نیازی نیست کاری کنید این دو تا سرویس برخلاف ویندوز کاملا از هم مستقل هستند... شما فقط باید توی DNS تون یه A رکورد واسه ftp درست کنید و بعدش هم کاربرا رو کاربرای معمولی تعریف کنید یا یه گروه ftp-users مثلا درست کنید...
ضمنا این خطها رو هم تو فایل vsftpd.conf لازم دارید
chroot_local_user=YES
local_enable=YES
write_enable=YES
Of one Essence is the human race,
Thusly has Creation put the Base;
One Limb impacted is sufficient,
For all Others to feel the Mace.
~Saadi (persian poet) -1258
Hezardastan | Free As in Freedom