LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 02-17-2003, 05:21 AM   #1
Goggen
LQ Newbie
 
Registered: Feb 2003
Location: SWE
Posts: 4

Rep: Reputation: 0
Server with slackware


I need an total newbieguide to how to set up an server running Linux Slackware... Anyone? The server will be used as an FTP...

 
Old 02-17-2003, 09:03 AM   #2
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 57
Delete me

Last edited by fancypiper; 02-17-2003 at 12:51 PM.
 
Old 02-17-2003, 10:21 AM   #3
Goggen
LQ Newbie
 
Registered: Feb 2003
Location: SWE
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by fancypiper
Would the FTP HOWTO help you?
Hmm, I don't know... I'll check it out. Thanks anyway...
 
Old 02-17-2003, 10:43 AM   #4
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Don't go by that link fancypiper posted, it only explains how to use FTP, not setup a server.

Slackware comes with two preinstalled FTP servers, wu-ftp and proftpd. I would suggest using proftpd as it has a better track performance than wu-ftp. You might want to look into something like sftp if your wanting a secure ftp server..

Basically the first step is to edit your /etc/rc.d/rc.inet2 file and make sure the inetd is uncommented to start at boot time:

Will look something like this:
Code:
# Start the inetd server:
if [ -x /usr/sbin/inetd ]; then
  echo "Starting Internet super-server daemon:  /usr/sbin/inetd"
  /usr/sbin/inetd
else
  echo "WARNING:  /usr/sbin/inetd not found."
fi
Now you'll need to make sure proftpd is uncommented in your /etc/inetd.conf file like this:

Code:
# Washington University FTP Daemon:
#ftp    stream  tcp     nowait  root    /usr/sbin/tcpd  wu.ftpd -l -i -a
# ProFTPD FTP Daemon:
ftp     stream  tcp     nowait  root    /usr/sbin/tcpd  proftpd
#telnet stream  tcp     nowait  root    /usr/sbin/tcpd  in.telnetd
In most cases proftpd is already there by default along with wu-ftp which is the Washington University FTP Daemon. Just uncomment the proftpd line like above... uncommenting by removing the # mark in front of it. A # in front of config files will be ignored if you didn't already know.

If your wanting anonymous FTP server make sure you edit your /etc/ftpusers file and uncomment ftp in that file which the default ftp diectory will be /home/ftp. You can change the default home directory for user ftp in /etc/passwd to any other directory if you want to change it to another location. Regular users you might have setup that have a login to your server, their default will be their own home directory as well.. /home/username

Now if you want to have users with their own ftp directory to their home directory, but not have a shell access just edit the /etc/passwd file and make their default shell something like /bin/false
Then edit the /etc/shells file and add /bin/false to the list of shells. This will not enable them to login to the server by other means like ssh or telnet, or even at the machine itself.. only basically giving them FTP access to upload or download files on the server.

Hope this helps in setting up your FTP server on Slackware.

Last edited by trickykid; 02-17-2003 at 10:45 AM.
 
Old 02-17-2003, 10:54 AM   #5
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 57
Delete me

Last edited by fancypiper; 02-17-2003 at 12:52 PM.
 
Old 02-17-2003, 11:00 AM   #6
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Quote:
Originally posted by fancypiper
Server section of link I posted

http://www.tldp.org/HOWTO/mini/FTP-6.html
Only explains HOW FTP server works.. doesn't go into details..
 
Old 02-17-2003, 12:39 PM   #7
Goggen
LQ Newbie
 
Registered: Feb 2003
Location: SWE
Posts: 4

Original Poster
Rep: Reputation: 0
Yeah, I think trickykid is right... Thanks trickykid for your tips, I was thinking of using proFTP. But what programs more will I have to install? A complete list would be usefull.
 
Old 02-17-2003, 01:41 PM   #8
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Quote:
Originally posted by Goggen
But what programs more will I have to install? A complete list would be usefull.
None that I know of, should already be installed. Like I said Slack 8.1 comes by default with proftpd, and if you installed it during the initial install like with the networking packages which I'm sure you did install, then all you have to do is configure it like I have above.
 
Old 02-17-2003, 02:19 PM   #9
Goggen
LQ Newbie
 
Registered: Feb 2003
Location: SWE
Posts: 4

Original Poster
Rep: Reputation: 0
Alright, I'll try that...
 
  


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
DHCP server on Slackware mikz Slackware 19 01-31-2005 11:15 AM
Telnet server for slackware mabarnes Linux - Networking 7 11-29-2003 10:42 PM
DHCP server in slackware 9.1? Blag-foo Linux - Newbie 4 09-30-2003 09:18 AM
slackware x server nakkaya Slackware 1 01-29-2003 06:32 PM
X Server under Slackware 8.1 bestiuta Linux - Hardware 1 12-12-2002 07:56 AM


All times are GMT -5. The time now is 09:59 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration