AIX - read only FTP | Unix Linux Forums | AIX

  Go Back    


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

AIX - read only FTP

AIX


Tags
aix, unix

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 04-16-2012
henriette's Avatar
henriette henriette is offline
Registered User
 
Join Date: Apr 2011
Last Activity: 5 September 2014, 3:22 AM EDT
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
AIX - read only FTP

Hi,

I want to set FTP server on AIX to read only mode. I found out manual page for /etc/ftpaccess.ctl (manual page ).

I tried put
Code:
readonly: ALL

or

Code:
readonly: ALL
writeonly: NONE

and nothing happened (of course, I restart FTP server by stopsrc -t ftp; startsrc -t ftp)
Sponsored Links
    #2  
Old 04-17-2012
kah00na's Avatar
kah00na kah00na is offline
Registered User
 
Join Date: Jul 2007
Last Activity: 15 October 2014, 11:26 AM EDT
Location: Kansas
Posts: 298
Thanks: 21
Thanked 24 Times in 21 Posts
With "readonly: ALL" in the ftpaccess.ctl file, can users still upload files with "put" even if they have write access to the directory? They should not be able to.
Sponsored Links
    #3  
Old 04-17-2012
henriette's Avatar
henriette henriette is offline
Registered User
 
Join Date: Apr 2011
Last Activity: 5 September 2014, 3:22 AM EDT
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks for reply.

I tried it and I get error (great!):


Code:
ftp> put core
200 EPRT command successful.
550 Write access denied

but when I try to make directory, it's OK and directory is created..


Code:
ftp> mkdir testfolder
257 MKD command successful.
ftp> ls -la
200 EPRT command successful.
150 Opening data connection for /bin/ls.
total 0
drwxr-x---    3 xxx      xxx             256 Apr 17 17:23 .
drwxr-x---    7 xxx      xxx             256 Apr 17 17:18 ..
drwxr-x---    2 xxx      xxx             256 Apr 17 17:23 testfolder

Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Help with Bash piped while-read and a read user input at the same time MyMorris Shell Programming and Scripting 8 02-26-2012 01:50 PM
When reading a csv file, counter to read 20 lines and wait for minute then read next 20 till end victor.s UNIX for Dummies Questions & Answers 3 11-09-2011 09:41 AM
Read Embedded Newline characters with read (builtin) in KSH93 a_programmer Shell Programming and Scripting 6 01-11-2011 01:56 PM
read() wont allow me to read files larger than 2 gig (on a 64bit) monkeyking UNIX for Advanced & Expert Users 14 01-11-2010 01:46 PM
ls while read loop - internal read picking up wrong input dkieran Shell Programming and Scripting 2 05-14-2007 03:02 PM



All times are GMT -4. The time now is 09:34 PM.