LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-12-2015, 01:21 PM   #1
michasio
LQ Newbie
 
Registered: Apr 2013
Posts: 14

Rep: Reputation: Disabled
Proftpd


Hello,

Can You please help me. I need to configure Proftpd but only for some one directory.
I have 3 users created in my system with rights to login to ftp directory.
Everything is clear but when I'm trying to login ... I can log in but I not able to see that directory. Everytime I see users /home folder.

Mayby Can You please send me some example config file ....

Regards
michal
 
Old 10-12-2015, 07:24 PM   #2
robertdaleweir
Member
 
Registered: Jul 2006
Location: Canada
Distribution: Fedora
Posts: 93

Rep: Reputation: 11
Quote:
Originally Posted by michasio View Post
Hello,

Can You please help me. I need to configure Proftpd but only for some one directory.
I have 3 users created in my system with rights to login to ftp directory.
Everything is clear but when I'm trying to login ... I can log in but I not able to see that directory. Everytime I see users /home folder.

Mayby Can You please send me some example config file ....

Regards
michal
Hi michasio
What are the permissions on the Directory that you wish to enable and who owns it?
Code:
ls -la
while in the directory. Are you one of the 3 users you have set up? Have you set up the users through Proftpd as clients to Proftpd Server or as users of the OS within groups?
You might try changing "DefaultRoot /your-directory !adm" if it exists in your proftpd.conf file possibly under /etc/ directory.

Last edited by robertdaleweir; 10-12-2015 at 11:23 PM.
 
Old 10-13-2015, 01:24 AM   #3
michasio
LQ Newbie
 
Registered: Apr 2013
Posts: 14

Original Poster
Rep: Reputation: Disabled
Hello,

This is my part of config file.
At this moment I can obtain server... but:
- when I'm using first account I can log in to /ftp/firma but password in not necessary. I can type everything or nothing in password box and I can log in . I don't know why
- when I'm using next 2 accounts (1234 / 12345) password is necessary (pass must be correct) but I able to only /home folder.

What is wrong?

THX
michal



<Anonymous /ftp/firma>
User 123
User 1234
User 12345
Group users
#AccessGrantMsg "Anonymous login ok, restrictions apply."


<Limit LOGIN>
AllowUser 123
AllowUser 1234
AllowUser 12345
DenyAll
</Limit>

<Limit DELE>
AllowUser 123
AllowUser 1234
DenyAll
</Limit>

<Limit MKD>
AllowUser 123
#AllowUser 1234
DenyAll
</Limit>

<Limit STOR>
AllowUser 123
#AllowUser 1234
DenyAll
</Limit>

</Anonymous>
 
Old 10-13-2015, 10:50 AM   #4
robertdaleweir
Member
 
Registered: Jul 2006
Location: Canada
Distribution: Fedora
Posts: 93

Rep: Reputation: 11
Quote:
Originally Posted by michasio View Post
Hello,

This is my part of config file.
At this moment I can obtain server... but:
- when I'm using first account I can log in to /ftp/firma but password in not necessary. I can type everything or nothing in password box and I can log in . I don't know why
- when I'm using next 2 accounts (1234 / 12345) password is necessary (pass must be correct) but I able to only /home folder.

What is wrong?

THX
michal



<Anonymous /ftp/firma>
User 123
User 1234
User 12345
Group users
#AccessGrantMsg "Anonymous login ok, restrictions apply."


<Limit LOGIN>
AllowUser 123
AllowUser 1234
AllowUser 12345
DenyAll
</Limit>

<Limit DELE>
AllowUser 123
AllowUser 1234
DenyAll
</Limit>

<Limit MKD>
AllowUser 123
#AllowUser 1234
DenyAll
</Limit>

<Limit STOR>
AllowUser 123
#AllowUser 1234
DenyAll
</Limit>

</Anonymous>
Maybe you should set up logs within proftpd.conf as well as check system logs for errors.

Code:
ExtendedLog /var/log/ftp.log
TransferLog /var/log/xferlog
SystemLog /var/log/syslog.log
or as root
Code:
journalctl | grep ftp
and see if these help with your problem.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
proftpd: proftpd startup failed tumana Linux - Newbie 14 06-17-2012 11:06 AM
ProFTPd - Change proftpd.conf location ('not found' error) varney Linux - Newbie 1 02-22-2008 01:51 AM
[PROFTPD] Ldap and proftpd authentication wesleywest Linux - Software 1 02-22-2005 09:51 AM
Disabling the chroot in proftpd and enabling root logins on ssh/proftpd jon_k Linux - Software 1 06-16-2004 10:27 AM
proftpd --- need help? could someone post a working proftpd.conf i could look at ZooRoPa Linux - Networking 1 04-02-2003 06:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration