LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-12-2004, 03:34 PM   #1
JanDeMan
LQ Newbie
 
Registered: Apr 2004
Location: After PC
Distribution: Debian Woody 3.0
Posts: 26

Rep: Reputation: 15
ProFTPD


Hi,

i just was trying to make when log into my server with a FTPclient, that i saw 2 folder, my home folder and my http folder.
But that wouldn't work.

So i tryed to make a alias for jan
janweb and the http folder is /..../html/jan

/etc/proftpd.conf
Code:
# This is a basic ProFTPD configuration file (rename it to 
# 'proftpd.conf' for actual use.  It establishes a single server
# and a single anonymous login.  It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.

ServerName			"Jan's FTP server powerd by ProFTPD"
ServerType			standalone
DefaultServer			on

# Allow FTP resuming.
# Remember to set to off if you have an incoming ftp for upload.
AllowStoreRestart		on

# Port 21 is the standard FTP port.
Port				21

# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask				022

# To prevent DoS attacks, set the maximum number of child processes
# to 30.  If you need to allow more than 30 concurrent connections
# at once, simply increase this value.  Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd).
MaxInstances			30

# Set the user and group under which the server will run.
User				nobody
Group				nogroup

# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
#DefaultRoot ~

# Normally, we want files to be overwriteable.
<Directory />
  AllowOverwrite		on
</Directory>

# Needed for NIS.

PersistentPasswd              off

# Default root can be used to put users in a chroot environment.
# As an example if you have a user foo and you want to put foo in /home/foo
# chroot environment you would do this:
#
# DefaultRoot /home/foo foo
Include			/etc/proftpd-anonymous.conf
Include			/etc/proftpd-web.conf
/etc/proftpd-web.conf
Code:
# A basic anonymous configuration, alles mag
<Anonymous /var/www/html/jan>
  User				jan
  Group				jan
  # We want clients to be able to login with "janweb" as well as "jan"
  UserAlias			janweb jan

  # Limit the maximum number of anonymous logins
  MaxClients			10

  # Don't make it require a valid password or shell.
  RequireValidShell		off
  AnonRequirePassword		on

  # We want 'welcome.msg' displayed at login, and '.message' displayed
  # in each newly chdired directory.
  DisplayLogin			welcome.msg
  DisplayFirstChdir		.message

  # Limit WRITE everywhere in the anonymous chroot
  <Limit WRITE>
    AllowAll
  </Limit>

</Anonymous>
But, when i connect with smartFTP i get:
Code:
220 ProFTPD 1.2.9 Server (Schizo FTP server powerd by ProFTPD) [localhost]
    USER web
331 Password required for web.
    PASS (hidden)
530-Unable to set anonymous privileges.
530 Login incorrect.
    Connection closed.
When i change
Code:
<Anonymous /var/www/html/jan>
to
<Anonymous /var/www/html/>
than i can log in, but i can't access the jan folder

Who can help me ?


Jan D M
 
Old 04-12-2004, 04:27 PM   #2
JanDeMan
LQ Newbie
 
Registered: Apr 2004
Location: After PC
Distribution: Debian Woody 3.0
Posts: 26

Original Poster
Rep: Reputation: 15
OK i can now login like it must

by changen something the said here, THX dudes

http://www.linuxquestions.org/questi...hreadid=169226

But know i don't have permissions to write in that folder :s
chmod = 775

Wait, i think i got it.

The folder schizo is maded with the root account,

i must change the owner to jan.

..searching command...

Last edited by JanDeMan; 04-12-2004 at 04:30 PM.
 
Old 04-12-2004, 07:50 PM   #3
Inexactitude
Member
 
Registered: Oct 2003
Distribution: Slackware 12.2, Ubuntu 9.04
Posts: 477

Rep: Reputation: 30
The command to change the owner of a file or dir is chown. Do man chown for the details.
 
Old 04-14-2004, 06:45 AM   #4
j33px0r
LQ Newbie
 
Registered: Apr 2004
Posts: 10

Rep: Reputation: 0
For extra fun you can work with the 'mount --bind' option for extra fun user custimization. DOn't forget to add changes to your /etc/fstab for reboots.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 12:06 PM
[PROFTPD] Ldap and proftpd authentication wesleywest Linux - Software 1 02-22-2005 10:51 AM
Disabling the chroot in proftpd and enabling root logins on ssh/proftpd jon_k Linux - Software 1 06-16-2004 11:27 AM
proftpd help strider17 Linux - Newbie 2 02-08-2004 12:44 PM
proftpd --- need help? could someone post a working proftpd.conf i could look at ZooRoPa Linux - Networking 1 04-02-2003 07:56 PM


All times are GMT -5. The time now is 02:50 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration