AIX 5.3 FTP Folder Restriction


 
Thread Tools Search this Thread
Operating Systems AIX AIX 5.3 FTP Folder Restriction
# 1  
Old 10-19-2010
AIX 5.3 FTP Folder Restriction

Hi All,

How can I restrict the folder on an FTP USER on AIX 5.3? I don't want the ID to change folder other than his own home folder.

Thanks for any comment you may add.
# 2  
Old 10-19-2010
Google Search Results for chroot ftp | The UNIX and Linux Forums

---------- Post updated at 12:33 PM ---------- Previous update was at 12:05 PM ----------

Set up properly, a sym-link to root in the home dir will not allow escape, as is common!
# 3  
Old 10-20-2010
i found AIX 5.2/5.3 solution,

just do this

Code:
# cat /etc/ftpaccess.ctl
useronly: ftp1
#ls -la /etc/ftpaccess.ctl
-rw-------    1 root     system           18 Oct 20 13:49 /etc/ftpaccess.ctl

the only problem is, it doesn't show the sub folder. user need to have knowledge of the hidden sub folder, ugh...

Last edited by Scott; 10-20-2010 at 03:32 PM.. Reason: Code tags
# 4  
Old 10-20-2010
Yes, it has that option. What subfolder is this? Is it .hidden? A sym-link?

Help - ftpaccess.ctl

---------- Post updated at 02:32 PM ---------- Previous update was at 02:30 PM ----------

PS: Test to see if a sym link lets the ftp user out!

ln -s / ~/root
# 5  
Old 10-20-2010
it's just a regular sub folder and it doesn't show, i talk to support and he talk to an L3 developer who owns the code, it's really like that...
# 6  
Old 10-21-2010
Maybe AIX meant just the $HOME directory, not any subfolders! That's one way to defeat sym links out to other dirs: no dirs at all! Do any dirs show? Is this dir in any way different: mode, mount point, group, owner?
# 7  
Old 10-21-2010
@DGPickett
For a ftp only user there is no Shell and the user is locked into one directory.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

AIX Forum: FTP from AIX to Mainframe

This discussion thread is an extension to what was discussed in Shell scripting section. Please refer the post for the requirement: Requirement Post - Click Here The whole thread - Click Here I would like to know how I can use NDM to transfer file from AIX to Mainframe and to verify the... (3 Replies)
Discussion started by: TechGyaann
3 Replies

2. AIX

User restriction on C/C++ compiler on AIX

Hello, I am curious that is there a way I can restrict a user or a set of users to execute the C/C++ compiler, basically what I want is to lock it down to a particular user and none of the other users should be able to compile any code. Thanks in advance. (14 Replies)
Discussion started by: m6248m
14 Replies

3. UNIX for Dummies Questions & Answers

FTP Getting a Folder

I am a total noob assume i know nothing I have dabbed in it a little in the past but that was so long ago i have forgotten it all. Back story: (short version) Rented a web server from xenon servers. Need it to Grab some files from another server from xenon (minecraft server) (images of the map)... (4 Replies)
Discussion started by: RustyDagger
4 Replies

4. UNIX for Advanced & Expert Users

How to FTP a folder..?? is it possible..??

Is it possible to ftp a folder..?? If yes How to do it..?? If no Is there any way to ftp all files in a folder..?? or how to transfer large amount of files from another system to my system in unix..?? Please help.. Thanks.. (3 Replies)
Discussion started by: RRVARMA
3 Replies

5. Shell Programming and Scripting

ftp a files from a folder

Hi Can anyone give me a shell script to ftp all the files in a folder to a another machine .And if the ftp is sucees i want to move the files to the same to another folder in the same client m/c (2 Replies)
Discussion started by: dineshr85
2 Replies

6. Shell Programming and Scripting

Parse the .txt file for folder name and FTP to the corrsponding folder.

Oracle procedure create files on UNIX folder on a regular basis. I need to FTP files onto windows server and place the files, based on their name, in the corresponding folders. File name is as follows: ccyymmddfoldernamefile.txt; Folder Name length could be of any size; however, the prefix and... (3 Replies)
Discussion started by: MeganP
3 Replies

7. Shell Programming and Scripting

How to copy Folder with FTP

Dear All, I'm new in Unix System, can you help me about how to copy folder using FTP command. I have folder name "/heru" and I want copy this folder to my windows system. how to copy this folder? and how to copy all file that using 1 extesion to other divice using ftp for example I want... (1 Reply)
Discussion started by: heru_90
1 Replies

8. Solaris

FTP Restriction

I have a senario and i wonder how to do it ? i used NcFTPd and i dont think its applicable using that application or i didnt know how to configure it. i want to have a user for FTP that user is only restricted to put and get from a certain directory and all sub-directories for that directory,... (0 Replies)
Discussion started by: mduweik
0 Replies

9. UNIX for Dummies Questions & Answers

How do I FTP to my Web Folder?

I don't consider myself a newbie, but I am working on my first Unix thats not OS X. And I have a feeling this is a newbie question I'm asking. I installed MkLinux (redhad based) on my PowerMac 6100 (66 superfast MHz). I got apache up and running, and I can log in and ftp and download and upload... (15 Replies)
Discussion started by: l008com
15 Replies

10. UNIX for Advanced & Expert Users

Ftp Upload Folder

Hi! I'd like to upload a complete folder with subfolders with put. At the moment I always get the err-msg: aboutme: not a plain file Could anyone help me?? Thanx (3 Replies)
Discussion started by: roberthawke
3 Replies
Login or Register to Ask a Question