Solved

AIX FTP server setup

Posted on 2009-05-06
2
2,991 Views
Last Modified: 2013-12-02
I need to setup a AIX FTP server for multiple FTP logins.  Each user must go to a specific home directory and be restricted to that directory only.  Each user must be able to read, write, re-name all files in the home directory.  I have been able to setup users to go to specific home directory, but have not been able to restrict their movement.  I have done a chmod 777 to the home directory, but still cannot rename files through FTP.
0
Comment
Question by:tsaa
2 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 400 total points
ID: 24320654
Hi,

do you have to stay with FTP?

I think the best way to do what you want would be to switch to SFTP, which uses a more secure protocol (SSH), and there is, by using it in combination with rssh, a very convenient way to do "chrooting". rssh allows not only sftp, but also scp, rsync, rdist and cvs. I installed this a few weeks ago, and it works pretty well.

If you must use ftp, however, we could

1) use /etc/ftpaccess.ctl, and use an IBM provided script, /usr/samples/tcpip/anon.users.ftp [username]
to configure the users' home directories (some subdirs and some binaries are needed there, e.g. bin/ls and the like).

2) use some third party FTP server, like proftpd (AIX toolbox).

Please tell me which of the above alternatives you prefer.

rssh is here -

http://www.pizzashack.org/rssh/index.shtml

You need gcc (AIX toolbox) and openssh (AIX expansion pack)


I have to leave for a few hours, will be back soon.

Cheers

wmp





0
 
LVL 61

Assisted Solution

by:gheist
gheist earned 100 total points
ID: 24324113
Install ProFTPD or compile PureFTPD
Remember that FTP protocol specification does not provide means to handle files with spaces in filenames. You have to choose server and client carefully
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Have you ever stumbled upon a software that is so great that you just love? It happened to me. Love at first sight. Filezilla Server.   Ok its not the most advanced ftp server I've came across. But its a fairly simple piece of software to get the …
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now