From: "Alexandr R. Ogurtzoff" <aogurtsov@hostopia.com> To: community@altlinux.ru Subject: [Comm] vsftp for bouth virtual and local users Date: Thu, 23 Sep 2004 22:23:29 +0300 Message-ID: <200409232223.29898.aogurtsov@hostopia.com> (raw) Здравствуйте, уважаемые сообщественники! Может кто сталкивался расскажите как решить такую задачу. Имею vsftp. приятный во всех отношениях. Сейчас работает для анонимного и локальных пользователей. Хочу добавить двух виртуальных пользователей один пишет - второй читает... Почти что получается. не получается следующее: Добавляю в /etc/vsftpd.conf # GUEST LOGIN guest_enable=YES guest_username=virtual И локальные пользователи вместо своих домашних папок попадают в папку для пользователя virtual. добавляю из примера к документации cat vsftpd.pam >> /etc/pam.d/vsftpd И они уже не проходят авторизацию, авторизуются только пользователи из /etc/vsftpd_login.db Можно ли это как то обойти средствами самого vsftp или при помощи pam? Заранее большое спасибо за помощь. PS дело происходит на SUSE 9.1, но надеюсь разница с нашим дистрибутивом не значительна Конфиги: cat /etc/passwd | grep virtual virtual:x:1034:100::/home/ftpsite:/bin/bash cat /etc/vsftpd.conf | grep -v ^# | grep -v ^\s*$ write_enable=YES dirmessage_enable=YES ftpd_banner="Welcome to ftp service." ls_recurse_enable=YES deny_email_enable=YES banned_email_file=/etc/vsftpd.banned_emails hide_ids=YES local_enable=YES local_umask=022 chroot_local_user=YES local_max_rate=0 anonymous_enable=YES anon_world_readable_only=YES chown_uploads=YES chown_username=ftp anon_max_rate=72000 guest_enable=YES guest_username=virtual syslog_enable=YES xferlog_enable=YES vsftpd_log_file=/var/log/vsftpd.log dual_log_enable=YES connect_from_port_20=YES idle_session_timeout=600 pam_service_name=vsftpd cat /etc/pam.d/vsftpd | grep -v ^# | grep -v ^\s*$ auth required pam_listfile.so item=user sense=deny file=/etc/ftpusers onerr=succeed auth sufficient pam_ftp.so auth required pam_unix2.so auth required pam_shells.so account required pam_unix2.so password required pam_unix2.so session required pam_unix2.so auth required /lib/security/pam_userdb.so db=/etc/vsftpd_login account required /lib/security/pam_userdb.so db=/etc/vsftpd_login -- Best regards Alexandr R. Ogurtzoff { UNIX is user friendly, it's just picky about who its friends are }
reply other threads:[~2004-09-23 19:23 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=200409232223.29898.aogurtsov@hostopia.com \ --to=aogurtsov@hostopia.com \ --cc=community@altlinux.ru \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git