[prev in list] [next in list] [prev in thread] [next in thread]
List: wuftpd-questions
Subject: Re: no dirs not working
From: "Peter Dumpert" <pdumpert () innovativebusiness ! net>
Date: 2003-05-21 13:43:21
[Download RAW message or body]
Have you tried restricted-uid or restricted-gid in the ftpaccess file?
On 20 May 2003 at 8:15, CJ wrote:
> I made some good progress last night then came in and
> the mgr decided he wanted me to do something
> different. It figures.
>
> Right now when I have the users log in they get logged
> into the /home/ftp/ftpusr dir then they have to cd to
> their home dir. I did this because of reading the how
> to guide and they said if you do not want to put the
> etc, bin, usr in every users dir you could do it that
> way.
>
> What I want is for the user to get logged in, then I
> want them to automagicaly get deposited in the upload
> dir under their home dir. No cding to the dir just
> put them their
>
> In the ftpaccess file I have the
> guest-root /home/ftpusr
> So they get deposited in the / dir of that file
> system. This works as designed.
>
> In the /etc/passwd file (real one)and the
> ftpusr/etc/passwd I have the following entry:
>
> test1:!:405:405:test ftp
> id:/home/ftpusr/test1/upload/./:/usr/bin/ksh
>
> The user does not get put in the upload dir. They
> still get put in the pseudo / dir of /home/ftpusr.
>
> I am guessing the ftpaccess rule is over riding
> the/etc/passwd file entry.
>
> I remove the guest-root clause and created one for the
> individual user and that gets them to the upload dir.
> This works and put them in the upload dir.
>
> However ls does not work now because they are not in
> the root dir where the bin dir is.
> I guess I have to create a etc, bin usr dir under
> their upload dir to get this to work.
>
>
> If I put /etc/ftponly it will not allow logins. This
> is not a big issue for me as the telnet and other
> connection methods will be turned off and or
> controlled by a firewall rule.
>
> If this cannot be done do I need to create a
> guest-root for every user?
> I am only having 6 users on this system. So it is not
> a public server with many users.
>
> Also it looks like my defumask 0337 is being ignored
> No matter what I put I get rw,r,r and the user can
> still get a file from the upload dir.
>
> I could create a dir in test1/uploads dir. This is a
> bad thing.
> The nodirs is still not working. This is the line I am
> using in the ftpaccess :
>
> upload /home/ftpusr/test1/uploads yes ftpadmin
> ftpadmin 0440 nodirs
> and I tried
> upload class=guest /home/ftpusr/test1/uploads yes
> ftpadmin ftpadmin 0440 nodirs
>
> I tried the following and it did not work either
> noretrieve /home/ftpusr/test1/uploads
> so I put a * at the end and it does not allow the
> files to be retrieved.
> What I dont understand it that my noretrieve
> /home/ftpusr/bin works with out the * on the end.
>
>
>
>
>
>
> =====
> There are two major products to come out of Berkeley: LSD and
> UNIX. We don't believe this to be a coincidence.
> Blessed are the pessimists, for they make backups!
> Tell me and I forget. Show me and I remember. Involve me and I learn."
> 10101010011100101001001000011010000001000100101010101010
> 0011001010100010110010101000010001010000
>
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Search - Faster. Easier. Bingo.
> http://search.yahoo.com
>
--
Peter A. Dumpert
Innovative Computer Services LLC - web design/e-pubs/consulting
Innovative BusinessNet - an ISP for Business
www.innovativebusiness.net
Phone: 732-683-0092 ext 102 Fax: 732-577-9390
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic