Cool Solutions

Setting a Common Root Directory for FTP Users using Pure-FTPd



By:

May 8, 2008 11:20 am

Reads:16,245

Comments:0

Score:Unrated

Introduction:

OES2 Linux natively integrates existing Linux services with eDirectory, so network administrators don’t have to manage multiple identities separately for each service.

One good example is the Pure-Ftpd service. By installing the package Novell FTP during the OES2 Linux install, the Pure-Ftpd is automatically configured to authenticate users against eDirectory.

However, if you need to setup your server as an authenticated FTP server (not anonymous login), pure-ftp does not have a specific configuration to set a common ftp root directory for the whole system. Users always get into their home directories when they log in to the pure-ftp server.

Problem Example:

On this customer specific scenario, they have a system that relies on the FTP service. The system authenticates against the FTP server using three different users, which should read and write to the same directory. They need to use different users so they can track who modify/create/delete files.

Solution:

To accomplish this, we setup these user’s home directory to point to a common location in their LUM configuration:

  1. Setup a common directory to share files:

    In this example we create the /srv/ftp/common directory.
    And give the needed access on the directory:

    chmod 771 /srv/ftp/common
    *Note – In this case we give a posix permission to a standard Linux directory but it could be a NSS volume mount point. The trustees could be configurated using the Files and Folders plugin within iManager. NSS trustees assignments do have effect on directories accessed via ftp.
  2. Using iManager, select Modify to change the user’s settings, under the Users menu.

    Click to view.

    Figure 1 – Selecting the user to be edited

  3. Change the home directory for the user within the Linux Profile tab. Point the location you setup above.

    Click to view.

    Figure 2 – Changing the home directory

  4. Repeat steps 2 and 3 for all the users you need. Always point the home directory to /srv/ftp/common.
  5. You are done!

General Considerations:

This document assume that you have already setup these users as Linux enabled.
LUM and pure-ftpd are working properly.
This configuration will also affect other Linux-enabled applications/access, for example SSH.
This configuration will NOT affect the user home directory access via a standard NCP connection (Novell Client). Users will keep accessing their home directories (if configured) independently.

0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this post.
Loading ... Loading ...

Tags:
Categories: Uncategorized

Disclaimer: This content is not supported by Novell. It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test it thoroughly before using it in a production environment.

Comment

RSS