<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: vsftpd the same root directory, but different accounts in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/vsftpd-the-same-root-directory-but-different-accounts/m-p/3757774#M67950</link>
    <description>Probably, your configuration match exactly what you want, but I would do some suggestions that you may want to consider:&lt;BR /&gt;&lt;BR /&gt;Change the permissions for the ftp directory to 2750:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;drwxr-s--- 8 ftpadmin ftpusers 4096 2006-03-24 12:19 ftp&lt;BR /&gt;&lt;BR /&gt;So local interactive users cannot access to the directory if they are not in the ftpusers group.&lt;BR /&gt;&lt;BR /&gt;If you want to prevent another users in the ftpusers group from deleting files in another user directory, change the owner and permissions to 700 for: &lt;BR /&gt;&lt;BR /&gt;drwx------ 2 ftp1 ftpusers 4096 2006-03-24 12:31 ftp1&lt;BR /&gt;drwx------ 2 ftp2 ftpusers 4096 2006-03-24 12:23 ftp2&lt;BR /&gt;drwx------ 2 ftp3 ftpusers 4096 2006-03-24 12:24 ftp3&lt;BR /&gt;&lt;BR /&gt;Or use a private group, like this:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;drwxrwx--- 2 ftpadmin ftp1 4096 2006-03-24 12:31 ftp1&lt;BR /&gt;drwxrwx--- 2 ftpadmin ftp2 4096 2006-03-24 12:23 ftp2&lt;BR /&gt;drwxrwx--- 2 ftpadmin ftp3 4096 2006-03-24 12:24 ftp3</description>
    <pubDate>Fri, 24 Mar 2006 10:12:25 GMT</pubDate>
    <dc:creator>Ivan Ferreira</dc:creator>
    <dc:date>2006-03-24T10:12:25Z</dc:date>
    <item>
      <title>vsftpd the same root directory, but different accounts</title>
      <link>https://community.hpe.com/t5/operating-system-linux/vsftpd-the-same-root-directory-but-different-accounts/m-p/3757770#M67946</link>
      <description>hi&lt;BR /&gt;&lt;BR /&gt;following problem:&lt;BR /&gt;&lt;BR /&gt;I have vstpd server:&lt;BR /&gt;&lt;BR /&gt;# vsftpd -v&lt;BR /&gt;vsftpd: version 2.0.3 &lt;BR /&gt;&lt;BR /&gt;installed on debian sarge.&lt;BR /&gt;&lt;BR /&gt;I'd like to add some new ftp users, who can login to the same ftp root directory,&lt;BR /&gt;but every user has his own subdirectory, can see and write into.&lt;BR /&gt;other ftp users cannnot see or open these subdirectories.&lt;BR /&gt;&lt;BR /&gt;but I still have existing ftp users.&lt;BR /&gt;they log into their home dirctories and I don't want to change that.&lt;BR /&gt;&lt;BR /&gt;do I need virtual users ?&lt;BR /&gt;knows somone how it works ?&lt;BR /&gt;&lt;BR /&gt;mein config file:&lt;BR /&gt;&lt;BR /&gt;# Example config file /etc/vsftpd.conf&lt;BR /&gt;#&lt;BR /&gt;# The default compiled in settings are fairly paranoid. This sample file&lt;BR /&gt;# loosens things up a bit, to make the ftp daemon more usable.&lt;BR /&gt;# Please see vsftpd.conf.5 for all compiled in defaults.&lt;BR /&gt;#&lt;BR /&gt;# READ THIS: This example file is NOT an exhaustive list of vsftpd options.&lt;BR /&gt;# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's&lt;BR /&gt;# capabilities.&lt;BR /&gt;#&lt;BR /&gt;#&lt;BR /&gt;# Run standalone?  vsftpd can run either from an inetd or as a standalone&lt;BR /&gt;# daemon started from an initscript.&lt;BR /&gt;listen=YES&lt;BR /&gt;#&lt;BR /&gt;# Run standalone with IPv6?&lt;BR /&gt;# Like the listen parameter, except vsftpd will listen on an IPv6 socket&lt;BR /&gt;# instead of an IPv4 one. This parameter and the listen parameter are mutually&lt;BR /&gt;# exclusive.&lt;BR /&gt;#listen_ipv6=YES&lt;BR /&gt;#&lt;BR /&gt;# Allow anonymous FTP? (Beware - allowed by default if you comment this out).&lt;BR /&gt;anonymous_enable=NO&lt;BR /&gt;#&lt;BR /&gt;# Uncomment this to allow local users to log in.&lt;BR /&gt;local_enable=YES&lt;BR /&gt;#&lt;BR /&gt;# Uncomment this to enable any form of FTP write command.&lt;BR /&gt;write_enable=YES&lt;BR /&gt;#&lt;BR /&gt;# Default umask for local users is 077. You may wish to change this to 022,&lt;BR /&gt;# if your users expect that (022 is used by most other ftpd's)&lt;BR /&gt;local_umask=022&lt;BR /&gt;#&lt;BR /&gt;# Uncomment this to allow the anonymous FTP user to upload files. This only&lt;BR /&gt;# has an effect if the above global write enable is activated. Also, you will&lt;BR /&gt;# obviously need to create a directory writable by the FTP user.&lt;BR /&gt;#anon_upload_enable=YES&lt;BR /&gt;#&lt;BR /&gt;# Uncomment this if you want the anonymous FTP user to be able to create&lt;BR /&gt;# new directories.&lt;BR /&gt;#anon_mkdir_write_enable=YES&lt;BR /&gt;#&lt;BR /&gt;# Activate directory messages - messages given to remote users when they&lt;BR /&gt;# go into a certain directory.&lt;BR /&gt;dirmessage_enable=YES&lt;BR /&gt;#&lt;BR /&gt;# Activate logging of uploads/downloads.&lt;BR /&gt;xferlog_enable=YES&lt;BR /&gt;#&lt;BR /&gt;# Make sure PORT transfer connections originate from port 20 (ftp-data).&lt;BR /&gt;connect_from_port_20=YES&lt;BR /&gt;#&lt;BR /&gt;# If you want, you can arrange for uploaded anonymous files to be owned by&lt;BR /&gt;# a different user. Note! Using "root" for uploaded files is not&lt;BR /&gt;# recommended!&lt;BR /&gt;#chown_uploads=YES&lt;BR /&gt;#chown_username=whoever&lt;BR /&gt;#&lt;BR /&gt;# You may override where the log file goes if you like. The default is shown&lt;BR /&gt;# below.&lt;BR /&gt;xferlog_file=/var/log/vsftpd.log&lt;BR /&gt;#&lt;BR /&gt;# If you want, you can have your log file in standard ftpd xferlog format&lt;BR /&gt;xferlog_std_format=Yes&lt;BR /&gt;#&lt;BR /&gt;# You may change the default value for timing out an idle session.&lt;BR /&gt;idle_session_timeout=300&lt;BR /&gt;#&lt;BR /&gt;# You may change the default value for timing out a data connection.&lt;BR /&gt;data_connection_timeout=120&lt;BR /&gt;#&lt;BR /&gt;# It is recommended that you define on your system a unique user which the&lt;BR /&gt;# ftp server can use as a totally isolated and unprivileged user.&lt;BR /&gt;#nopriv_user=ftpsecure&lt;BR /&gt;#&lt;BR /&gt;# Enable this and the server will recognise asynchronous ABOR requests. Not&lt;BR /&gt;# recommended for security (the code is non-trivial). Not enabling it,&lt;BR /&gt;# however, may confuse older FTP clients.&lt;BR /&gt;#async_abor_enable=YES&lt;BR /&gt;#&lt;BR /&gt;# By default the server will pretend to allow ASCII mode but in fact ignore&lt;BR /&gt;# the request. Turn on the below options to have the server actually do ASCII&lt;BR /&gt;# mangling on files when in ASCII mode.&lt;BR /&gt;# Beware that turning on ascii_download_enable enables malicious remote parties&lt;BR /&gt;# to consume your I/O resources, by issuing the command "SIZE /big/file" in&lt;BR /&gt;# ASCII mode.&lt;BR /&gt;# These ASCII options are split into upload and download because you may wish&lt;BR /&gt;# to enable ASCII uploads (to prevent uploaded scripts etc. from breaking),&lt;BR /&gt;# without the DoS risk of SIZE and ASCII downloads. ASCII mangling should be&lt;BR /&gt;# on the client anyway..&lt;BR /&gt;#ascii_upload_enable=YES&lt;BR /&gt;#ascii_download_enable=YES&lt;BR /&gt;#&lt;BR /&gt;# You may fully customise the login banner string:&lt;BR /&gt;ftpd_banner="ftp server"&lt;BR /&gt;#&lt;BR /&gt;# You may specify a file of disallowed anonymous e-mail addresses. Apparently&lt;BR /&gt;# useful for combatting certain DoS attacks.&lt;BR /&gt;#deny_email_enable=YES&lt;BR /&gt;# (default follows)&lt;BR /&gt;#banned_email_file=/etc/vsftpd.banned_emails&lt;BR /&gt;#&lt;BR /&gt;# You may restrict local users to their home directories.  See the FAQ for&lt;BR /&gt;# the possible risks in this before using chroot_local_user or&lt;BR /&gt;# chroot_list_enable below.&lt;BR /&gt;chroot_local_user=YES&lt;BR /&gt;#&lt;BR /&gt;# You may specify an explicit list of local users to chroot() to their home&lt;BR /&gt;# directory. If chroot_local_user is YES, then this list becomes a list of&lt;BR /&gt;# users to NOT chroot().&lt;BR /&gt;#chroot_list_enable=YES&lt;BR /&gt;# (default follows)&lt;BR /&gt;#chroot_list_file=/etc/vsftpd.chroot_list&lt;BR /&gt;#&lt;BR /&gt;# You may activate the "-R" option to the builtin ls. This is disabled by&lt;BR /&gt;# default to avoid remote users being able to cause excessive I/O on large&lt;BR /&gt;# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume&lt;BR /&gt;# the presence of the "-R" option, so there is a strong case for enabling it.&lt;BR /&gt;#ls_recurse_enable=YES&lt;BR /&gt;#&lt;BR /&gt;#&lt;BR /&gt;# Debian customization&lt;BR /&gt;#&lt;BR /&gt;# Some of vsftpd's settings don't fit the Debian filesystem layout by&lt;BR /&gt;# default.  These settings are more Debian-friendly.&lt;BR /&gt;#&lt;BR /&gt;# This option should be the name of a directory which is empty.  Also, the&lt;BR /&gt;# directory should not be writable by the ftp user. This directory is used&lt;BR /&gt;# as a secure chroot() jail at times vsftpd does not require filesystem&lt;BR /&gt;# access.&lt;BR /&gt;secure_chroot_dir=/var/run/vsftpd&lt;BR /&gt;#&lt;BR /&gt;# This string is the name of the PAM service vsftpd will use.&lt;BR /&gt;pam_service_name=vsftpd&lt;BR /&gt;#&lt;BR /&gt;# This option specifies the location of the RSA certificate to use for SSL&lt;BR /&gt;# encrypted connections.&lt;BR /&gt;rsa_cert_file=/etc/ssl/certs/vsftpd.pem &lt;BR /&gt;&lt;BR /&gt;kind regards&lt;BR /&gt;chris</description>
      <pubDate>Thu, 23 Mar 2006 13:00:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/vsftpd-the-same-root-directory-but-different-accounts/m-p/3757770#M67946</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2006-03-23T13:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: vsftpd the same root directory, but different accounts</title>
      <link>https://community.hpe.com/t5/operating-system-linux/vsftpd-the-same-root-directory-but-different-accounts/m-p/3757771#M67947</link>
      <description>In your configuration you have chroot_local_user=YES. This will do most of the part of the configuration.&lt;BR /&gt;&lt;BR /&gt;Then create the users with a common home directory (/home/ftpusers) and common group (Example ftpusers). Set the owner for the directory permissions:&lt;BR /&gt;&lt;BR /&gt;/home/ftpusers root.ftpusers 770&lt;BR /&gt;&lt;BR /&gt;Create a new directory in /home/ftpusers for every user in the ftpusers group, set the permissions for this directory 700, and the owner the corresponding user.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Mar 2006 13:43:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/vsftpd-the-same-root-directory-but-different-accounts/m-p/3757771#M67947</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2006-03-23T13:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: vsftpd the same root directory, but different accounts</title>
      <link>https://community.hpe.com/t5/operating-system-linux/vsftpd-the-same-root-directory-but-different-accounts/m-p/3757772#M67948</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;I'd create a new group.&lt;BR /&gt;&lt;BR /&gt;Add all chosen users to the group.&lt;BR /&gt;&lt;BR /&gt;Then create a folder that has group ownership of the group and appropriate priviledges to read and write to the group.&lt;BR /&gt;&lt;BR /&gt;Then change the users home directory to this location.&lt;BR /&gt;&lt;BR /&gt;For chroot, you'll need binaries like ls in the jail with the users.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 23 Mar 2006 13:50:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/vsftpd-the-same-root-directory-but-different-accounts/m-p/3757772#M67948</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-03-23T13:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: vsftpd the same root directory, but different accounts</title>
      <link>https://community.hpe.com/t5/operating-system-linux/vsftpd-the-same-root-directory-but-different-accounts/m-p/3757773#M67949</link>
      <description>thanks,&lt;BR /&gt;&lt;BR /&gt;the problem is solved !&lt;BR /&gt;&lt;BR /&gt;I've done following:&lt;BR /&gt;&lt;BR /&gt;I've created a new directory /home/ftp&lt;BR /&gt;&lt;BR /&gt;I've created a new group: ftpusers&lt;BR /&gt;&lt;BR /&gt;I've add all new users to this group inklusive new ftp admin account: ftpadmin&lt;BR /&gt;&lt;BR /&gt;I've assigned the admin user: ftpadmin &lt;BR /&gt;and the new group to the new directory:&lt;BR /&gt;&lt;BR /&gt;chown ftpadmin:ftpusers ftp&lt;BR /&gt;&lt;BR /&gt;drwxr-sr-x   8 ftpadmin     ftpusers     4096 2006-03-24 12:19 ftp&lt;BR /&gt;&lt;BR /&gt;I've created subdirectories in /home/ftp for each user:&lt;BR /&gt;&lt;BR /&gt;drwxrwx---   2 ftpadmin ftpusers 4096 2006-03-24 12:31 ftp1&lt;BR /&gt;drwxrwx---   2 ftpadmin ftpusers 4096 2006-03-24 12:23 ftp2&lt;BR /&gt;drwxrwx---   2 ftpadmin ftpusers 4096 2006-03-24 12:24 ftp3&lt;BR /&gt;&lt;BR /&gt;I've changed user home directories:&lt;BR /&gt;&lt;BR /&gt;usermod -d /home/ftp  ftpadmin&lt;BR /&gt;usermod -d /home/ftp/ftp1 ftp1&lt;BR /&gt;usermod -d /home/ftp/ftp2 ftp2&lt;BR /&gt;usermod -d /home/ftp/ftp3 ftp3&lt;BR /&gt;&lt;BR /&gt;greetings&lt;BR /&gt;chris</description>
      <pubDate>Fri, 24 Mar 2006 09:01:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/vsftpd-the-same-root-directory-but-different-accounts/m-p/3757773#M67949</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2006-03-24T09:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: vsftpd the same root directory, but different accounts</title>
      <link>https://community.hpe.com/t5/operating-system-linux/vsftpd-the-same-root-directory-but-different-accounts/m-p/3757774#M67950</link>
      <description>Probably, your configuration match exactly what you want, but I would do some suggestions that you may want to consider:&lt;BR /&gt;&lt;BR /&gt;Change the permissions for the ftp directory to 2750:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;drwxr-s--- 8 ftpadmin ftpusers 4096 2006-03-24 12:19 ftp&lt;BR /&gt;&lt;BR /&gt;So local interactive users cannot access to the directory if they are not in the ftpusers group.&lt;BR /&gt;&lt;BR /&gt;If you want to prevent another users in the ftpusers group from deleting files in another user directory, change the owner and permissions to 700 for: &lt;BR /&gt;&lt;BR /&gt;drwx------ 2 ftp1 ftpusers 4096 2006-03-24 12:31 ftp1&lt;BR /&gt;drwx------ 2 ftp2 ftpusers 4096 2006-03-24 12:23 ftp2&lt;BR /&gt;drwx------ 2 ftp3 ftpusers 4096 2006-03-24 12:24 ftp3&lt;BR /&gt;&lt;BR /&gt;Or use a private group, like this:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;drwxrwx--- 2 ftpadmin ftp1 4096 2006-03-24 12:31 ftp1&lt;BR /&gt;drwxrwx--- 2 ftpadmin ftp2 4096 2006-03-24 12:23 ftp2&lt;BR /&gt;drwxrwx--- 2 ftpadmin ftp3 4096 2006-03-24 12:24 ftp3</description>
      <pubDate>Fri, 24 Mar 2006 10:12:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/vsftpd-the-same-root-directory-but-different-accounts/m-p/3757774#M67950</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2006-03-24T10:12:25Z</dc:date>
    </item>
  </channel>
</rss>

