- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Restrict FTP
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2007 10:51 PM
04-15-2007 10:51 PM
Restrict FTP
OS - 11.23
I am aware that user logins needs to be added to the /etc/ftpd/ftpusers but as we have nearly 2000 users it becomes difficult to manage this file because only few users need ftp access.
Is there a way you can reverse it
i.e a file like ftpusers where you just add the user logins you want to give access to FTP.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2007 11:42 PM
04-15-2007 11:42 PM
Re: Restrict FTP
what I would do is create a file with the user names that I want to have ftp access ie /etc/ftp.allow.
then run a small script that creates a list of users from the systems user list and output the data into /etc/ftpusers thus creating the list of users that do not have access:
cat passwd | cut -d':' -f1 | egrep -v -f /etc/ftp.allow | sort >
/etc/ftpusers
run this everytime a new user is created
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2007 11:57 PM
04-15-2007 11:57 PM
Re: Restrict FTP
ftp allow 172.....
or
---------
Try wu_ftpd
---------
or
awk -F: '{print $1}' /etc/passwd > outputfle
vi outputfile and redirect to /etc/ftpd/ftpusers
You are done.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2007 12:23 AM
04-16-2007 12:23 AM
Re: Restrict FTP
When a user tries to open an ftp session, his/her shell (defined in passwd) is checked against /etc/shells (which holds a list of 'legal' shells). Users whose shell is not in this list will not be able to start an ftp session.
Some years ago I learned about this 'the hard way': I couldn't FTP to one of our machines while all my colleagues could. Turned out my dear ksh was not in the shells file.
If your situation allows it, you could perhaps use this as a workaround.. although I'm unsure about how 'clean' a solution I would call this myself ;-)
Cheers,
Wout
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2007 12:39 AM
04-16-2007 12:39 AM
Re: Restrict FTP
http://www.proftpd.org/docs/directives/configuration_full.html#ALLOWGROUP
You could setup an ftp group and allow access to that group. Just a suggestion.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2007 12:51 AM
04-16-2007 12:51 AM
Re: Restrict FTP
Just add the users I need to give ftp access and deny all in last line
example as below
allow test1 * (or Hostname)
allow test2 *
allow ftp1 *
deny * *
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2007 01:59 AM
04-16-2007 01:59 AM
Re: Restrict FTP
Just checked the man pages and it looks you're right.
Points to yourself ;-)
Cheers