LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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-13-2012, 11:20 AM   #1
windstory
Member
 
Registered: Nov 2008
Posts: 489

Rep: Reputation: 36
proftpd virtualhost's user's directory


My box is scientific linux 6.2 x64.

I installed proftp by "yum" command, and added "Virtualhost" at webmin.

After logging in server, the "member1" is locked at "member1's" home directory. I want to open "member1's /var/www/html/member1".

Please let me know how to open "member1's /var/www/html/member1".

Code:
ServerName			"My FTPD server"
ServerIdent			on "My FTP Server ready."
ServerAdmin			root@localhost
DefaultServer			on
VRootEngine			on
DefaultRoot			~ !adm
VRootAlias			/etc/security/pam_env.conf etc/security/pam_env.conf

AuthPAMConfig			proftpd
AuthOrder			mod_auth_pam.c* mod_auth_unix.c
UseReverseDNS			off

User				nobody
Group				nobody
MaxInstances			20

UseSendfile			off

LogFormat			default	"%h %l %u %t \"%r\" %s %b"
LogFormat			auth	"%v [%P] %h %t \"%r\" %s"

<IfDefine TLS>
  TLSEngine			on
  TLSRequired			on
  TLSRSACertificateFile		/etc/pki/tls/certs/proftpd.pem
  TLSRSACertificateKeyFile	/etc/pki/tls/certs/proftpd.pem
  TLSCipherSuite		ALL:!ADH:!DES
  TLSOptions			NoCertRequest
  TLSVerifyClient		off
  #TLSRenegotiate		ctrl 3600 data 512000 required off timeout 300
  TLSLog			/var/log/proftpd/tls.log
  <IfModule mod_tls_shmcache.c>
    TLSSessionCache		shm:/file=/var/run/proftpd/sesscache
  </IfModule>
</IfDefine>

<IfDefine DYNAMIC_BAN_LISTS>
  LoadModule			mod_ban.c
  BanEngine			on
  BanLog			/var/log/proftpd/ban.log
  BanTable			/var/run/proftpd/ban.tab

  BanOnEvent			MaxLoginAttempts 2/00:10:00 01:00:00

  BanControlsACLs		all allow user ftpadm
</IfDefine>

<Global>

  Umask				022

  AllowOverwrite		yes
  <Limit ALL SITE_CHMOD>
    AllowAll
  </Limit>

</Global>

<IfDefine ANONYMOUS_FTP>
  <Anonymous ~ftp>
    User			ftp
    Group			ftp
    AccessGrantMsg		"Anonymous login ok, restrictions apply."

    UserAlias			anonymous ftp
    MaxClients			10 "Sorry, max %m users -- try again later"
    DisplayLogin		/welcome.msg
    DisplayChdir		.message
    DisplayReadme		README*

    DirFakeUser			on ftp
    DirFakeGroup		on ftp

    <Limit WRITE SITE_CHMOD>
      DenyAll
    </Limit>

    <Directory uploads/*>
      AllowOverwrite		no
      <Limit READ>
        DenyAll
      </Limit>

      <Limit STOR>
        AllowAll
      </Limit>
    </Directory>

    WtmpLog			off
    ExtendedLog			/var/log/proftpd/access.log WRITE,READ default
    ExtendedLog			/var/log/proftpd/auth.log AUTH auth

  </Anonymous>
</IfDefine>

<VirtualHost myserver.info.gf>
ServerName "myserver.info.gf"

  <Limit LOGIN>
   AllowAll
  </Limit>

  <Anonymous /path/to/your/documents>
    User                        defaultuser
    Group                       defaultuser
    UserAlias                   additionaluser defaultuser

    <Limit LOGIN>
      AllowAll
    </Limit>

    <Limit WRITE>
      AllowAll
    </Limit>

    <Directory incoming>
      <Limit WRITE>
        AllowAll
      </Limit>
    </Directory>
  </Anonymous>
</VirtualHost>
Thanks in advance.

Last edited by windstory; 04-13-2012 at 11:32 AM.
 
Old 04-13-2012, 11:45 AM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
Change the member1 home directory in the /etc/passwd file.
 
1 members found this post helpful.
Old 04-13-2012, 12:26 PM   #3
windstory
Member
 
Registered: Nov 2008
Posts: 489

Original Poster
Rep: Reputation: 36
Kustom42/ Thanks a lot.
 
  


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
Apache2 VirtualHost non-recurring Directory treznik Programming 1 10-15-2010 09:03 AM
VirtualHost directing to the wrong directory. SeaborneClink Linux - Server 5 02-17-2009 03:11 AM
Proftpd user directory permissions Th3_J3st3R Linux - Server 1 10-19-2007 08:54 AM
proftpd virtualhost bmarx Linux - Newbie 2 05-29-2006 12:12 PM
ProFTPD and VirtualHost problems Osten Linux - Software 1 12-04-2003 11:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:30 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