LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-02-2006, 08:26 AM   #1
jeucken
Member
 
Registered: May 2002
Location: Alphen aan den Rijn, The Netherlands
Distribution: SuSE 10.1
Posts: 87

Rep: Reputation: 15
FTP permissions


Hi,

I'm about to set up my FTP server.
What will be a good default permission for the files in my FTP server?
 
Old 01-03-2006, 05:07 PM   #2
ak99505
Member
 
Registered: Feb 2005
Location: Missouri
Distribution: Archlinux
Posts: 85

Rep: Reputation: 17
umask 022

that will give owner read/write and every one else read, that's pretty much what you'd want for an anonymous I believe. even if you'd need an account to log on to the server that is they way i'd go, unless you only want
to give owner and group read permissions
umask 027 will give other no permissions, group read only and user read/write i'd go with one of those
 
Old 01-04-2006, 02:44 AM   #3
jeucken
Member
 
Registered: May 2002
Location: Alphen aan den Rijn, The Netherlands
Distribution: SuSE 10.1
Posts: 87

Original Poster
Rep: Reputation: 15
Thanks.

I will be installing Proftp this weekend.
Or do you have any suggestions for a better FTP deamon?
 
Old 01-04-2006, 08:53 AM   #4
ak99505
Member
 
Registered: Feb 2005
Location: Missouri
Distribution: Archlinux
Posts: 85

Rep: Reputation: 17
if you're doing anonymous ftp then no I don't, I've never set one up. but if you are going to require loging then I'd stick to ssh.
 
Old 01-04-2006, 08:58 AM   #5
Mishra100
Member
 
Registered: Jan 2005
Posts: 44

Rep: Reputation: 15
You know... I've never really been happy with any ftp application. Every ftp program has some kind of downfall in my eyes.
 
Old 01-04-2006, 10:37 AM   #6
jeucken
Member
 
Registered: May 2002
Location: Alphen aan den Rijn, The Netherlands
Distribution: SuSE 10.1
Posts: 87

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by ak99505
if you're doing anonymous ftp then no I don't, I've never set one up. but if you are going to require loging then I'd stick to ssh.
???
How can I use SSH as an FTP deamon?
 
Old 01-04-2006, 11:37 AM   #7
jeucken
Member
 
Registered: May 2002
Location: Alphen aan den Rijn, The Netherlands
Distribution: SuSE 10.1
Posts: 87

Original Poster
Rep: Reputation: 15
I've installed pureftp.

Where can I define the location of the FTP root.
I want this to be the same for ALL users that login. (/srv/www)
It now is /srv/ftp, but I can't seem to find where this is configured. (it's not in the pure-ftpd.conf)
 
Old 01-04-2006, 08:22 PM   #8
ak99505
Member
 
Registered: Feb 2005
Location: Missouri
Distribution: Archlinux
Posts: 85

Rep: Reputation: 17
Quote:
Originally Posted by jeucken
???
How can I use SSH as an FTP deamon?
you wouldn't be using a ssh client with the ftp service, you'd be using a client called sftp with a ssh service
sftp I believe comes with the ssh suite, so if you just set up ssh and people can get a interactive prompt then
they can also use sftp for file transfers or scp for file transfers.
 
Old 01-04-2006, 08:27 PM   #9
ak99505
Member
 
Registered: Feb 2005
Location: Missouri
Distribution: Archlinux
Posts: 85

Rep: Reputation: 17
Quote:
Originally Posted by jeucken
I've installed pureftp.

Where can I define the location of the FTP root.
I want this to be the same for ALL users that login. (/srv/www)
It now is /srv/ftp, but I can't seem to find where this is configured. (it's not in the pure-ftpd.conf)
found this on pure-ftp's website, is this what you are wanting to do
http://www.pureftpd.org/
Code:
 
Shared directories and chroot.

-> I have a directory, say /var/incoming, that I want to be shared by every
user. But I want my users to be chrooted. So /var/incoming should be visible
in 'joe' and 'john' accounts, but those are chrooted. So, how to have the
content of /var/incoming visible in these accounts?

Making a symbolic link won't work, because when you are chrooted, it means
that everything outside a base directory (your user's home directory) won't
be reachable, even though a symbolic link.

But all modern operating systems can mount local directories to several
locations. To have an exact duplicate of your /var/incoming directory
available in /home/john/incoming and /home/joe/incoming, use one of these
commands:

* Linux   : mount --bind /var/incoming /home/john/incoming
            mount --bind /var/incoming /home/joe/incoming

* Solaris : mount -F lofs /var/incoming /home/john/incoming
            mount -F lofs /var/incoming /home/joe/incoming

* BSD     : mount_null /var/incoming /home/john/incoming
            mount_null /var/incoming /home/joe/incoming

Warning: FreeBSD's mount_null is broken and causes kernel crashes with all
FreeBSD systems prior to release 4.4 .
 
Old 01-05-2006, 10:29 AM   #10
jeucken
Member
 
Registered: May 2002
Location: Alphen aan den Rijn, The Netherlands
Distribution: SuSE 10.1
Posts: 87

Original Poster
Rep: Reputation: 15
But I checked and tested with multiple users and all of them point to /srv/ftp.
I just want to change this to /srv/www.
 
Old 01-05-2006, 06:05 PM   #11
ak99505
Member
 
Registered: Feb 2005
Location: Missouri
Distribution: Archlinux
Posts: 85

Rep: Reputation: 17
I don't know what to tell you. I went to their website and read through the readme file, all it says is you can chroot the people to there home directory or to the servers directory I didn't see any docs on the config file though, only on command line parameters. and there was no parameter for changing its directory. I'd try reading through any docs that came with it see if it says any more than the website says.
 
Old 01-09-2006, 06:44 AM   #12
jeucken
Member
 
Registered: May 2002
Location: Alphen aan den Rijn, The Netherlands
Distribution: SuSE 10.1
Posts: 87

Original Poster
Rep: Reputation: 15
Well I couldn't find it myself and even a support request at the pure ftp site gave no reply.
So I installed proftpd instead and it works pretty good.

Thanks for your help anyway.

Last edited by jeucken; 01-09-2006 at 06:47 AM.
 
  


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
FTP Permissions varunbihani Linux - General 2 03-24-2005 09:34 AM
ftp permissions on Konqueror geomatt Linux - Networking 3 04-07-2004 03:48 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 Permissions Wynd Linux - General 4 11-04-2003 08:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:50 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
Open Source Consulting | Domain Registration