New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VRootAlias not working (unix permissions ???) #59
Comments
What are the permissions on all of the directories leading up to /storage/0001a/10001a/encoding/input?
|
Hello, Castaglia. Thanks for your attention. This topic is given me headaches. I still cannot make VRootAlias work normally. [20:28:17] root@vm-st:~# id 0001a [20:28:19] root@vm-st:~# ls -aldn /storage /storage/0001a /storage/0001a/10001a /storage/0001a/10001a/encoding |
What's the full path to the home directory for the user that is having this issue? |
/storage/encodingcom [13:11:49] root@vm-st:/storage# ll |
Hi Castaglia.
First off all, thanks for you support with all ProFTPD docummentation. I have learned a LOT with your contributions.
There is just one thing that is really giving me headaches.. VRootAlias
Here they are:
this one I can access, list/create files/directories
VRootAlias /tmp ~/tmp-vroot-alias
and this I CAN JUST ACCESS... I cannot list/create files/directories
VRootAlias /storage/0001a/10001a/encoding/input ~/0001a-input
FTP USER:
encodingcom:x:514:500::/storage/encodingcom:/sbin/nologin
And here they are in the filesystem (EXT4 - LVM).
/tmp (WORKING)
Directory
drwxrwxrwt. 3 root root 4096 Oct 14 21:58 tmp
Directory Files
-rw-r--r--. 1 encodingcom storage 0 Oct 10 01:40 teste
-rw-------. 1 root root 0 Sep 5 14:47 yum.log
-rw-------. 1 root root 4195 Sep 5 15:30 yum_save_tx-2014-09-05-15-30XPmgVj.yumtx
-rw-------. 1 root root 15507 Sep 16 18:14 yum_save_tx-2014-09-16-18-14eymISj.yumtx
-rw-------. 1 root root 268 Sep 25 16:16 yum_save_tx-2014-09-25-16-163gt7om.yumtx
/storage/0001a/10001a/encoding/input (NOT WORKING)
drwxrwxrwx. 2 encodingcom storage 4096 Oct 14 21:38 input
Directory Files
-rwxrwxrwx. 1 encodingcom storage 0 Oct 14 21:39 123
-rwxrwxrwx. 1 encodingcom storage 5 Oct 8 15:42 asgard
Running proftpd with -dn10 (no daemonize + debug 10), I've got this message when I sent a refresh command in the encoding/input directory, thorugh FileZilla. I belive that Filezilla tries to list the directory, but debug mode informs about filename too long (???)
The proftpd.log records this message when a I try to crate a file..
I have set SELINUX as disabled in my CentOS.
About the /storage directory, I have created another directory inside of it, and performed a VRootAlias inside a VirtualHost, as well as inside this VirtualHost, I've also created a VRootAlias to the same CURSED /storage/0001a/10001a/encoding/input. The cursed, is still cursed.. and the new VRootAlias, works fine. Why?
/storage/teste (VRootAlias working)
Directory
drwxr-xr-x. 3 root root 4096 Oct 14 21:40 teste
Directory files
-rwxrwxrwx. 1 root root 0 Oct 14 21:39 123
-rwxrwxrwx. 1 root root 0 Oct 10 03:32 1234
-rw-r--r--. 1 root root 0 Oct 10 04:55 123456
-rwxr-xr-x. 1 root root 5 Oct 14 21:40 asgard
drwxrwxrwx. 2 root root 4096 Oct 10 03:32 qaz
Also, here is my config file. PLEASE, help me :(.
+++++++++++++++++++++++++++++++++++++
ServerName "VM Ivan"
ServerIdent on "testing proftpd"
ServerAdmin ivan.leon@azion.com
DefaultServer on
DefaultAddress 192.168.50.59
SocketbindTight on
Umask 022
DefaultRoot ~ !adm
VRootEngine on
VRootAlias /tmp ~/tmp-vroot-alias
VRootAlias /storage/0001a/10001a/encoding/input ~/0001a-input
Log options
LogFormat default "%h %l %u %t "%r" %s %b --- %J"
LogFormat default "%t %a user:%U [%m %f %s] pid:%P"
LogFormat auth "%v [%P] %h %t "%r" %s"
UseReverseDNS off
MaxInstances 200
MaxClientsPerUser 35
AuthPAMConfig proftpd
AuthOrder mod_auth_unix.c
AuthOrder mod_auth_unix.c mod_sql.c
User nobody
Group nobody
UseSendfile off
Timeout options
TimeoutLogin 120
Fake permissions
DirFakeUser on ~
DirFakeGroup on ftp
Store options
DeleteAbortedStores on
HiddenStores on
<VirtualHost 192.168.50.99>
ServerAdmin ivan.leon@azion.com
ServerName "FTP encodingcom VH"
ServerIdent on "VH for VRootAlias"
Set Umask: FILE (base mode 666) + DIRECTORY (base mode 777)
jail the user to its home directory (encodingcom)
proftp virtual chroot
VRootAlias log file, for all operations realated with aliases
allow symlinks
last parameters are directories which will point to folders outside of the home directory
list all files including those whose names start with "."
ExtendedLog /var/log/proftpd/access.log WRITE,READ default
ExtendedLog /var/log/proftpd/auth.log AUTH auth
ExtendedLog /var/log/proftpd/proftpd.log ALL default
DebugLevel 10
AllowOverwrite yes
AllowAllAllowAll
+++++++++++++++++++++++++++++++++++++
The text was updated successfully, but these errors were encountered: