Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 19th January 2006, 19:56
Nejko Nejko is offline
Senior Member
 
Join Date: Jan 2006
Posts: 132
Thanks: 0
Thanked 0 Times in 0 Posts
Default proFTPd configuration

Hi!

I was wondering if anyone could post here some info, how to configure proftpd. WebAdmin gave me that;

Shell /bin/false for FTP users is not included in /etc/shells, which may prevent FTP access.

What should i do? Thanx for all your answers!

CU, Nejc
Reply With Quote
  #2  
Old 19th January 2006, 22:23
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,853
Thanks: 781
Thanked 1,558 Times in 1,477 Posts
Default

Quote:
Originally Posted by Nejko
Shell /bin/false for FTP users is not included in /etc/shells, which may prevent FTP access.

What should i do? Thanx for all your answers!
Put /bin/false into the file /etc/shells.
__________________
Falko
--
Follow me on:
Reply With Quote
  #3  
Old 19th January 2006, 22:29
Nejko Nejko is offline
Senior Member
 
Join Date: Jan 2006
Posts: 132
Thanks: 0
Thanked 0 Times in 0 Posts
Default

amm, stupid question, but which command should i use?
Reply With Quote
  #4  
Old 19th January 2006, 23:14
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,853
Thanks: 781
Thanked 1,558 Times in 1,477 Posts
Default

Code:
echo /bin/false >> /etc/shells
You can also use an editor like vi. Read here to find out how to use it: http://www.howtoforge.com/faq/12_15_en.html
__________________
Falko
--
Follow me on:
Reply With Quote
  #5  
Old 20th January 2006, 07:33
Nejko Nejko is offline
Senior Member
 
Join Date: Jan 2006
Posts: 132
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hmm, i did:
[root@localhost ~]# echo /bin/false >> /etc/shells
[root@localhost ~]#

, but in webmin still:

Shell /bin/false for FTP users is not included in /etc/shells, which may prevent FTP access.

Reply With Quote
  #6  
Old 20th January 2006, 08:01
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,853
Thanks: 781
Thanked 1,558 Times in 1,477 Posts
Default

Please post your /etc/shells here.
__________________
Falko
--
Follow me on:
Reply With Quote
  #7  
Old 20th January 2006, 14:50
Nejko Nejko is offline
Senior Member
 
Join Date: Jan 2006
Posts: 132
Thanks: 0
Thanked 0 Times in 0 Posts
Default

^?ELF^B^A^A^@^@^@^@^@^@^@^@^@^B^@>^@^A^@^@^@^@^O@^ @^@^@^@^@@^@^@^@^@^@^@^@^ĂA^@^@^@^@$
^@^@^@^H^@^@^@^@^@^@^@^@^@^@^@^U^@^@^@^X^@^@^@^L^@ ^@^@^@^@^@^@^G^@^@^@^@^@^@^@^S^@^@^$
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^R^@^@^@^@^@^@^@^E^@ ^@^@^O^@^@^@^B^@^@^@^K^@^@^@^T^@^@^$
^@x^Q@^@^@^@^@^@´^@^@^@^@^@^@^@h^@^@^@^R^@^@^@^@^ @^@^@^@^@^@^@Ă^A^@^@^@^@^@^@o^A^@^@^Âł^Ă;^@^@^@^A^ @^@^@^@^@^@^@èÿÿÿÿÿÿÿ^Ă
Âł^Ă;^@^@^@^A^@^@^@^@^@^@^@Ăÿÿÿÿÿÿÿ^P^NÂł^Ă ;^@^@^@^A^@^@^@^@^@^@^@¸ÿÿÿÿÿĂ^@^@^D^@Âť^A^@ ^@^P^@^@^@t^Yi ^@^@^C^@Ă
^@^@^@^@^@^@^@^@^@^@^@(3P^@^@^@^@^@^G^@^@^@^K^@^@^ @^@^@^@^@^@^@^@^@03P^@^@^@^@^@^G^@^$
^@^@^@^@^@^@^@^@^@^@^@83P^@^@^@^@^@^G^@^@^@^O^@^@^ @^@^@^@^@^@^@^@^@@3P^@^@^@^@^@^G^@^$
^@^@^@Ê@ÿÿÿÿ%b%^P^@h^K^@^@^@Ê0ÿÿÿÿ%Z%^P^ @h^L^@^@^@Ê ÿÿÿÿ%R%^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^D^H 'I^Ă H^ĂL$XĂ^D^A'I^ĂĂ^CAž'Âż ^U^Ă
^@^@H^ĂL$hHĂD$p^A^@^@^@ĂD$|^A^@^@^@ĂŠĂøÿÿH^ĂD$X Ă^@'Aš^A^@^@^@H^Ă
^@^@H^ĂT$hHĂD$p^A^EX^X^P^@H9Ă^@^@^@ĂŠ^ĂøÿÿE1ĂL9 L$Pv H^ĂL$XB^Ă^D I^ĂĂ^AB^OÂś^D^t^OH^ĂïèK^\^LL^Ăïè^Ă^E^@^@H^ĂĂ
H^ĂC^HM$Ăø^E ^W^P^@H9Ăt=^ĂĂŽHĂĂŚ^DH^ĂĂèB^E^@^@H^Ă^Ev^W^P^@^Ă=l ^W^P^@^ĂĂŞ)ĂşHĂâ^DHĂç^DH^Ă@H^Ă D$ĂHĂD$Ă^@^@^@^@HĂ@^H^@^@^@^@HĂ@^P^@^@^@^@HĂ@^$żĂż ĂŠ^QÞÿÿH^ĂĂž1ÿÊãÿÿÿ^Ăt$ĂH^Ă
^@^@1ÿèèÎÿÿH^ĂĂŠH^Ăž^A^@^@^@H^ĂĂè^EÎÿÿH ^ĂC(H;C0^O^Ă^\^A^@^@Ă^@
H^ĂĂ^AH^ĂC(H^ĂĂH^Ă^E^B^S5-^@H^Ă8èjÎÿÿH^ĂC(H;C0^O^Ă^C^A^@^@Ă^@
H^ĂĂ^AH^ĂC(Âş^E^@^@^@H^Ă
^@^@1ÿè~Ă5H ^@^@ĂŠ$^ĂĂè35EÿÿH^ĂĂ 5^Ă ^@^@ĂŠeÿÿÿº^@^@ÊÿÞÿÿº^E^@^@^@H^Ă5$ []A\ĂèüĂ*ÿÿº^E^@^@^@H^Ă
^@^@ÊÎÞÿÿº^E^@^@^@H^Ă
^@^@ĂŠĂ
^@^@ž^A^@^@^@H^ĂĂ1Ăè°ÏÿÿÊ^ĂÞÿÿž
^@^@^@H^ĂĂè^^ÎÿÿÊà ^Ă ^D^Ă ^U^B^E.^@^@^@I)ĂH^Ă@^$$^ĂĂè^LÎÿÿÊÜÞÿÿH^ĂĂ ŹĂ^@^@^@L^ĂD$@L^ĂL$HD^OÂśĂJ^Ă
^P^@H^Ă@L^Ă
^P^@H)ĂI^ĂĂ
or: %s OPTIONCu^SH^Ă^\$H^Ăl$^HL^Ăd$^PH^ĂĂ
Exit with a status code indicating failure. ^XĂ1Ă*H^ĂĂff^Ăff^ĂHĂżĂ
Ăż^SH^ĂĂ^HL9ĂĽròH^Ă^\$H^$
These option names may not be abbreviated.

^@^@^@ --help display this help and exit
^@^@^@^@ --version output version information and exit
^@
Report bugs to <%s>.
^@bug-coreutils@gnu.org^@/usr/share/locale^@POSIXLY_CORRECT^@--help^@--version^@Jim Meyering^@5.2.1^@GNU coreutils^@false^@write error$
and %s.
^@Written by %s, %s, %s,
%s, and %s.
^@^@^@^@^@Written by %s, %s, %s,
%s, %s, and %s.
^@Written by %s, %s, %s,
%s, %s, %s, and %s.
^@^@^@^@^@Written by %s, %s, %s,
%s, %s, %s, %s,
and %s.
^@Written by %s, %s, %s,
%s, %s, %s, %s,
%s, and %s.
^@^@^@^@^@Written by %s, %s, %s,
%s, %s, %s, %s,
%s, %s, and others.
^@^@^@^@^@This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
^@%s (%s) %s
^@%s %s
^@Written by %s.
^@Written by %s and %s.
^@Written by %s, %s, and %s.
^@^@^@Þôÿÿ^ĂþÿÿzþÿÿiþÿÿXþÿÿGþÿÿ 6þÿÿ%þÿÿ^Tþÿÿ^Cþÿÿmemory exhausted^@^@^@^@^A^[^C;(^A^@^@$^@^@^@^ĂäÿÿD^^@^@^@^@^@^@^@^@^@^@^@^ T^@^@^@Ăź^A^@^@^Lïÿÿ^S^@^@^@^@^@^@^@^@^@^@^@^T^ @^@^@^T^B^@^@^Gïÿÿ ^B^@^@^@^@^\$@^@^@^@^@^@^@^@^T^@^@^@,^B^@^@ÚÎÿà żX^@^@^@^@^@^@^@^@^@^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^@ ^@^@^@^@^@^@^@^@^@^@^@^@^@b^@^@^@^A^@^@^@^F^@^@^@^ @^@^@^@
@^@^@^@^@^@
^@^@^@^@^@^@Ă ^A^@^@^@^@^@^@^@^@^@^@^@^@^@^@^D^@^@^@^@^@^@^@^P^@ ^@^@^@^@^@^@m^@^@^@^A^@^@^@^F^@^@^@^@^@^@^@^@^O@^@ ^@^@^@^@^@^O^@^@^@^@^/bin/false


something like that


edit: after restart, that massage has gone away hope now ftp will work. if not, be sure that 'll post here

edit #2: ftp not working. here's my conf:

# This is the ProFTPD configuration file
# $Id: proftpd.conf,v 1.1 2004/02/26 17:54:30 thias Exp $

ServerName "ProFTPD server"
ServerIdent on "FTP Server ready."
ServerAdmin root@localhost
ServerType standalone
#ServerType inetd
DefaultServer on
AccessGrantMsg "User %u logged in."
#DisplayConnect /etc/ftpissue
#DisplayLogin /etc/ftpmotd
#DisplayGoAway /etc/ftpgoaway
DeferWelcome off

# Use this to excude users from the chroot
DefaultRoot ~ !adm

# Use pam to authenticate (default) and be authoritative
AuthPAMConfig proftpd
AuthOrder mod_auth_pam.c* mod_auth_unix.c

# Do not perform ident nor DNS lookups (hangs when the port is filtered)
IdentLookups off
UseReverseDNS off

# 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

# Default to show dot files in directory listings
ListOptions "-a"

# See Configuration.html for these (here are the default values)
#MultilineRFC2228 off
#RootLogin off
#LoginPasswordPrompt on
#MaxLoginAttempts 3
#MaxClientsPerHost none
#AllowForeignAddress off # For FXP

# Allow to resume not only the downloads but the uploads too
AllowRetrieveRestart on
AllowStoreRestart on

# 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 20

# Set the user and group that the server normally runs at.
User nobody
Group nobody

# This is where we want to put the pid file
ScoreboardFile /var/run/proftpd.score

# Normally, we want users to do a few things.
<Global>
AllowOverwrite yes
<Limit ALL SITE_CHMOD>
AllowAll
</Limit>
</Global>

# Define the log formats
LogFormat default "%h %l %u %t \"%r\" %s %b"
LogFormat auth "%v [%P] %h %t \"%r\" %s"

# TLS
# Explained at http://www.castaglia.org/proftpd/modules/mod_tls.html
#TLSEngine on
#TLSRequired on
#TLSRSACertificateFile /usr/share/ssl/certs/proftpd.pem
#TLSRSACertificateKeyFile /usr/share/ssl/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

# A basic anonymous configuration, with an upload directory.
#<Anonymous ~ftp>
# User ftp
# Group ftp
# AccessGrantMsg "Anonymous login ok, restrictions apply."
#
# # We want clients to be able to login with "anonymous" as well as "ftp"
# UserAlias anonymous ftp
#
# # Limit the maximum number of anonymous logins
# MaxClients 10 "Sorry, max %m users -- try again later"
#
# # Put the user into /pub right after login
# #DefaultChdir /pub
#
# # We want 'welcome.msg' displayed at login, '.message' displayed in
# # each newly chdired directory and tell users to read README* files.
# DisplayLogin /welcome.msg
# DisplayFirstChdir .message
# DisplayReadme README*
#
# # Some more cosmetic and not vital stuff
# DirFakeUser on ftp
# DirFakeGroup on ftp
#
# # Limit WRITE everywhere in the anonymous chroot
# <Limit WRITE SITE_CHMOD>
# DenyAll
# </Limit>
#
# # An upload directory that allows storing files but not retrieving
# # or creating directories.
# <Directory uploads/*>
# AllowOverwrite no
# <Limit READ>
# DenyAll
# </Limit>
#
# <Limit STOR>
# AllowAll
# </Limit>
# </Directory>
#
# # Don't write anonymous accesses to the system wtmp file (good idea!)
# WtmpLog off
#
# # Logging for the anonymous transfers
# ExtendedLog /var/log/proftpd/access.log WRITE,READ default
# ExtendedLog /var/log/proftpd/auth.log AUTH auth
#
#</Anonymous>

Last edited by Nejko; 20th January 2006 at 14:57.
Reply With Quote
  #8  
Old 20th January 2006, 17:02
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 19,805
Thanks: 285
Thanked 1,805 Times in 1,357 Posts
Default

Thats weird. /etc/shells is normally a text file and looks like this:

Code:
# /etc/shells: valid login shells
/bin/ash
/bin/bash
/bin/csh
/bin/sh
/usr/bin/es
/usr/bin/ksh
/bin/ksh
/usr/bin/rc
/usr/bin/tcsh
/bin/tcsh
/usr/bin/zsh
/bin/sash
/bin/zsh
/usr/bin/esh
/bin/rbash
/bin/dash
You posted the content of a binary file. Are you sure you did not accidently replace /etc/shells with a binary?
__________________
Till Brehm
--
http://www.projektfarm.com/en/
Reply With Quote
  #9  
Old 20th January 2006, 17:30
Nejko Nejko is offline
Senior Member
 
Join Date: Jan 2006
Posts: 132
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hmm, no.. i used mv command and it asked something

edit: ok, changed with yours. which info should i use for login?

Last edited by Nejko; 20th January 2006 at 18:03.
Reply With Quote
  #10  
Old 20th January 2006, 19:43
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,853
Thanks: 781
Thanked 1,558 Times in 1,477 Posts
Default

Quote:
Originally Posted by Nejko
edit: ok, changed with yours. which info should i use for login?
You mean for the FTP login? A valid system username and the password.
__________________
Falko
--
Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Loading configuration file lance Kernel Questions 2 28th February 2007 21:40
Im thinking about throwing proftpd to the trashcan danf.1979 Installation/Configuration 2 23rd December 2005 10:27
ISPConfig pop3 problem mphayesuk General 21 31st October 2005 11:53
The Perfect Setup Fedora Core 4 Proftpd error Nu2Linux HOWTO-Related Questions 3 29th October 2005 21:26
ISPConfig ProFTPD changes? ProTrooper Installation/Configuration 3 9th September 2005 19:13


All times are GMT +2. The time now is 04:27.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Sponsored Links: Unified Communications: Thoughts, Strategies and Predictions
Join the discussion.
www.seamlessenterprise.com

IP Convergence
Integrate your wireless and wireline networks.
Learn how from the experts at Sprint.
www.seamlessenterprise.com

Wireless & Wireline Integration
Thoughts, strategies and solutions: join the discussion
www.seamlessenterprise.com

Unified Communications 2009
Join the Discussion. Now.
www.seamlessenterprise.com

Red Hat Virtual Experience - a free virtual event. Dec. 9th