LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-24-2005, 05:11 AM   #1
varunbihani
Member
 
Registered: Jul 2003
Location: indore, india
Posts: 69

Rep: Reputation: 15
FTP Permissions


How do I give FTP permisions to the user of my system.
I need to connect to my Linux server throug FTP client (Cute FTP, WsFTP) on my windows machine.

How do I allow my Linux users to connect through FTP clients?? right now I am not even able to connect throug root..
 
Old 03-24-2005, 07:02 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 246Reputation: 246Reputation: 246
Well first you have to setup an FTP server on the machine... and don't login as root, from remote locations.. its really bad security habits most should break out of.
 
Old 03-24-2005, 09:34 AM   #3
wesleywestervel
LQ Newbie
 
Registered: Aug 2004
Posts: 13

Rep: Reputation: 0
First off lets install a FTP-server on your linux machine
go to non-grapichal mode ( textmode) login.

#download proftpd

command:

Code:
wget ftp://ftp.proftpd.org/distrib/source...1.2.10.tar.bz2
this will store proftpd in the direcotry where you executed this command
#installing/configureing proftpd
in the direcotry where you download proftpd

Code:
tar -xzvf proftpd-1.2.10.tar.bz2
cd proftpd-1.2.10 ( or the mapname of proftpd)
make
make install
#now proftpd is installed you have to configure the config file (proftpd.conf) that is located at /usr/local/etc/:

Code:
cd /usr/local/etc/
vi proftpd.conf
edit the following

Code:
# A basic anonymous configuration, no upload directories.  If you do not
# want anonymous users, simply delete this entire <Anonymous> section.
<Anonymous ~ftp>
  User				ftp
  Group				ftp

  # 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

  # 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>
    DenyAll
  </Limit>
</Anonymous>
change <Anonymous ~ftp> into <Anonymous /your/direcorty/you/want/to/share> for example <Anonymous /home>

hit esc
shift + :
w
q

#now for the finishing touch

#give right to the map for testing ( nog save chmod)

Code:
chmod 777 path_of_the_map_you_gave_above
for example
chmod 777 /home
create 2 users with a group ( if then don't exist )

Code:
groupadd ftp
groupadd nogroup

useradd -g ftp ftp
useradd -g nogroup nobody
now you can start proftpd
Code:
cd /usr/local/sbin/
./proftpd -c /usr/local/etc/proftpd.conf
P.S.
all above works local. if you want some friends to access your ftp sever from outside your local lan, you have to edit IPTABLES if your running those, forward a port.
http://www.portforward.com/ here is some info about your router/modem.
you should forward 20 21 to the IP that your linux machine is running

Last edited by wesleywestervel; 03-24-2005 at 09:46 AM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
ftp user permissions rkemp Linux - Networking 1 10-05-2004 02:53 PM
ftp permissions race Linux - Networking 0 01-15-2004 01:33 PM
Permissions on FTP ntloser Linux - Security 1 12-28-2003 12:10 PM
ftp acct/permissions zoa artcc chief Red Hat 1 11-20-2003 11:08 AM
FTP Permissions Wynd Linux - General 4 11-04-2003 08:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:48 AM.

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