LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ProFTPD (https://www.linuxquestions.org/questions/linux-newbie-8/proftpd-169244/)

JanDeMan 04-12-2004 02:34 PM

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

JanDeMan 04-12-2004 03:27 PM

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...

Inexactitude 04-12-2004 06:50 PM

The command to change the owner of a file or dir is chown. Do man chown for the details.

j33px0r 04-14-2004 05:45 AM

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.


All times are GMT -5. The time now is 08:01 PM.