betaftpd configuration


Forum: Networking
Topic: betaftpd configuration
started by: Error403

Posted by Error403 on June 13 2004,05:52
Hi again!
So now here's another problem..  How do you configure betaftpd?  such as, I don't want people being able to access .. or / then go fiddle in other user's homedirs..

Or I might just need another ftp server?

Thanks for the help

Posted by Error403 on June 21 2004,04:13
... anyone?  please?
Posted by Grim on June 21 2004,12:23
What version of betaftpd comes with DSL?  I forget.  Here's the docs from 0.0.8pre17:
Quote
3. Set up a `betaftpd.users' file in GLOBAL_ROOT_DIR, with the following
  format:

uid username password homedir rootdir gid(s)

uid: The user's uid (note that these fields do NOT have to match those
in /etc/passwd, you're your own boss here).
username: The user's username, of course.
password: The password, encrypted with crypt().
homedir: The directory the user starts in. MUST BE UNDER ROOTDIR.
rootdir: The directory the user sees as /. (Note that homedir and
rootdir is seen from a chroot()ed perspective. So if
you had set GLOBAL_ROOT_DIR to be `/betaftpd' and wanted
a user to have the home directory `/betaftpd/foo/', you
would use just `/foo/'.)

Both directory names must be ended with a slash (/).
gids: Any groups the user is member of, separated with a space.
Should be at least one.

Note: No blank lines or comments allowed. The fields are in a bit unusual
order. This is to reduce parsing overhead.

4. Set up a `betaftpd.groups' file in GLOBAL_ROOT_DIR, with the following
  format:

gid groupname

These fields should be self-explanatory.

5. Set up a `.rights' file in every directory you want to be accessible.
  More details are in the file `README.rights'.


Does this help?

Posted by ReTeP on May 06 2005,09:53
Call me stupid but what is the GLOBAL_ROOT_DIR and where can I find/define it?
Posted by arew264 on May 08 2005,18:17
From what I've read researching the same problem, I think you'll just want to find another FTP server as it appears that betaftpd is unconfigurable.
Posted by samsocal on Nov. 16 2005,07:33
I've posted a solution at
< http://damnsmalllinux.org/cgi-bin....t=0;r=1 >
samsocal

Posted by dreamcarrior on Dec. 07 2005,02:38
I think another way to figure this user privilege problem is to create different users, and make sure you let the users know that they will have to set the permission of their files to be -rw-------. This means only user who created the file can read and write their files and group members and all other users don't have right to even read their files. Roots however have the superuser power to access all files maintained in the system. Make sure you add /home/users, /opt/shadow, and /opt/passwd in your .filetool.lst so that you won't lose your settings after reboot.
Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.