Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Limiting FTP access

Status
Not open for further replies.

wizzer

IS-IT--Management
Sep 20, 2000
86
GB
Hello, i have a SCO Unix system running Openserver 5.0.6 with FTP access. I want to stop ALL users from accessing the system by FTP, except for one account. What is the easiest way to accomplish this? I've had a look through the man pages and it seems that you can only set the FTP program to deny access by entering each of the individual names that you don't want, is this actually the case?

Thanks for any advice!
James.
 
James

Thats the only way.
However these a quick & dirty way to do this.
cd to /usr, run ls > /etc/ftpusers, the edit ftpusers and remove the user that you want to have access.

hth

Tom
 
Try something like this:
Code:
awk -F: '$1!="Account"{print $1}' /etc/passwd >/etc/ftpusers

Hope This Help
PH.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top