RE: vsftpd problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Title: RE: vsftpd problem

Jeff,
If I understand your problem correctly, you presently
have users ftping to their /home/username directory, but
you want to change their ftp login to /filesystem.
The way I get my users to login to /filesystem are the
following:
1.  Add the username dir. to /filesystem and modify the /etc/passwd file to
    reflect the change.  Copy the "." files (dot) files from
    /home/username to /filesystem/username.
1A. Go to steps 5 thru 10.
OR
2.  I also create a group named ftponly, and give it a group number of 5000.
3.  All of my ftp username start at UID 1000.
4.  I use "useradd -d /filesystem/username -u 1000 -g 5000 -s /bin/bash username".
5.  vi /etc/vsftpd.conf
    chroot_list_enable=YES   ##Uncomment this line.
6.  Add the username to the /etc/vsftpd.chroot_list file.
7.  chmod 600 /etc/vsftpd.chroot_list
8.  chown root:root /etc/vsftpd.chroot_list
9.  chmod 777 /filesystem
10. chmod 700 /filesystem/username

I use a script that automates all of the above, plus allots each user
a quota from 100MB to 10GB.

> Is there a per-user config file?
YES.

That can be configured like so:
    In this example the account, johndoe, requires that the user can only
    download files.  The upload and modification files, creation of directories,
    and the deletion of directories are not allowed.
    1. vi /etc/vsftpd.conf
          #This powerful option allows the override of  any  config  option
          #specified in the manual page, on a per-user basis.
          user_config_dir=/etc/vsftpd_user_conf  #Uncomment this line.
    2. mkdir /etc/vsftpd_user_conf
    3. vi /etc/vsftpd_user_conf/johndoe  <--The account name is johndoe
          write_enable=NO
          ascii_download_enable=YES
          ascii_upload_enable=NO
          ls_recurse_enable=NO
          pasv_enable=NO
    4. Re-start the xinetd process.
       A. service restart xinetd


I hope this helps,
Robert Richardson
Activision Studios


-----Original Message-----
From: redhat-list-admin@xxxxxxxxxx
[mailto:redhat-list-admin@xxxxxxxxxx]On Behalf Of Jeff
Sent: Tuesday, December 02, 2003 4:38 AM
To: Redhat List
Subject: Re: vsftpd problem



On Mon, 2003-12-01 at 14:46, David Goode wrote:
> Jeff wrote:
>
> > Hi Guys,
> > 
> > Im having a few problems with vsftpd - users can login ok (no anon
> > access) and start in their home directory. How do I get them to
> > start in another directory. i.e. when they log in, i want them to go
> > to /fileserv not /home/username
> >
> > I have turned off chroot so they already have access to the files.
> > 
> > TIA
> > Jeff
> >
> >
>
>
> There are several ways to do this, but perhaps the most
> direct is via "Local_root", which will try to cd to the
> listed directory after local login.
> --
> -David Goode 
> Solutions Center
>

Where do I set this, I cant see any references in the vsftpd.conf. Is
there a per-user config file?

Thanks again
Jeff



[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux