Re: [Proftpd-user] proftpd-1.3.6c on centos8: When mod_quotatab_file is enable, the get command give "get: Access failed: 550 aa.sh: No such file or directory"

Dario Lesca <[email protected]>
Newsgroups gmane.network.proftpd.user
Organization Solinos
Message-ID <[email protected]>
I found that if I disable mod_vroot, client ftp get command and quota
work fine.

But I need mod_vroot module, there are some other bypass for this bug?

Many thanks
Dario

Il giorno dom, 10/05/2020 alle 23.32 +0200, Dario Lesca ha scritto:
> I have try to configure and use the sql quota module but the problem
> is
> the same: if I do a get for some file the file is looked for under /
> 
> It seems that the problem is not related to the quota module used but
> to some other reason.
> 
> Someone can help me?
> 
> Many thanks
> Dario
>  
> Il giorno sab, 09/05/2020 alle 11.51 +0200, Dario Lesca ha scritto:
> > Hello every body! this is my first post on this ML
> > 
> > I have install (via dnf) and configure proftpd-1.3.6c on centos 8.1
> > up
> > to date without modify the basic configuration file and add my
> > modules
> > configuration file under include folder /etc/proftpd/conf.d/
> > 
> > Then I have enable the mod_quotatab_file, configure it and
> > initialize
> > the Quota*Table file
> > 
> >    QuotaLimitTable file:/etc/proftpd/ftpquota.limittab
> >    QuotaTallyTable file:/etc/proftpd/ftpquota.tallytab
> > 
> > All work fine except get command, when I try get a existent file
> > uploaded, i obtain this error:
> > 
> >    "get: Access failed: 550 aa.sh: No such file or directory"
> > 
> > The aa.sh file exist and it have the right access, see this example
> > session:
> > 
> >    $ lftp -uftpste:mypass ftp://localhost -e 'site quota;ls
> > aa.sh;lcd
> > /tmp;get aa.sh;exit'
> >    200-The current quota for this session are [current/limit]:
> >    Name: ftpste
> >    Quota Type: User
> >    Per Session: False
> >    Limit Type: Hard
> >      Uploaded Mb:          0.69/5000.00
> >      Downloaded Mb:        unlimited
> >      Transferred Mb:       unlimited
> >      Uploaded files:       unlimited
> >      Downloaded files:     unlimited
> >      Transferred files:    unlimited
> >    200 Please contact root@localhost if these entries are
> > inaccurate
> >    -rw-r--r--   1 ftpste   gftpste        33 Dec  3 14:31 aa.sh
> >    lcd ok, local cwd=/tmp
> >    get: Access failed: 550 aa.sh: No such file or directory
> > 
> > I have investigate with debug enable and "strace -p" during get
> > sessionand I have realize that when this modules is enable (if it's
> > disable get work fine), the  file is searched under / (/aa.sh)
> > rather
> > than into folder in which it is located: theuser's home in this
> > case
> > 
> > lstat("/aa.sh", 0x7ffe6dce9ed0) = -1 ENOENT (No such file or
> > directory)
> > 
> > If I create a empty file under / (touch /aa.sh) the get command
> > work
> > and the file obtained is the right file present into home folder.
> > 
> > Is this a bug or there is some misconfiguration in my files?
> > 
> > Many thanks for reply.
> > 
-- 
Dario Lesca
(inviato dal mio Linux Fedora 32 Workstation)



_______________________________________________
ProFTPD Users List   <[email protected]>
Unsubscribe problems?
http://www.proftpd.org/list-unsub.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.