- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Restriction on ftp conection
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
01-14-2003 03:27 AM
01-14-2003 03:27 AM
It's possible to perform a ftp connection from host1 to host2, but only with user1?
Namely, if the user2 try to connect from host1, the connection is refused; but user2 is able to perform ftp connections from an other host (host3).
TIA
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 03:41 AM
01-14-2003 03:41 AM
Re: Restriction on ftp conection
If you are on 11.0 you need define /etc/ftpd/ftpaccess, inside of this file you must be include users that couldn't be ftp connection, each line in this file must contain just user name. For detailed info:
#man ftpusers
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 03:48 AM
01-14-2003 03:48 AM
Re: Restriction on ftp conection
TIA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 03:56 AM
01-14-2003 03:56 AM
Re: Restriction on ftp conection
Try with de /var/adm/inetd.sec ftp "allow|deny" service configuration.
#man inetd.sec
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 05:57 AM
01-14-2003 05:57 AM
Re: Restriction on ftp conection
1) You want to make it so that user1 on host1 can ftp to host2, but not to any other host.
This sounds impossible, unless you are severely restricting user1's access to a shell.
2) You want to allow user1 on host1 to use an ftp client, but disallow any other user on host1 from using an ftp client.
Again, this is client-side ftp restrictions, which will be impossible if the user can run a shell (since they could then install their own client, etc.).
3) On host2, you want to allow user1 from host1, but disallow user2 from host1.
As Jose points out, this is accomplished via ftpusers(4).
But this method won't work if you want host2 to accept ftp connections from user2 on host3. If this is what you need, you may be in trouble. I don't see a solution to it off the top of my head, at any rate. wu-ftpd (HP-UX's standard ftp server, as of late) supports denying hosts, and it supports denying users, but I don't think it supports denying specific users of specific hosts. [Someone please correct me if I'm wrong.]
Maybe if you tell us *why* you want to do this, we can be of more assistance.
-Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 06:58 AM
01-14-2003 06:58 AM
Re: Restriction on ftp conection
A lot of thanks!
Tim as you says my problem is the point 3 of your exposition.
We want to create an ftp users with restrictions by machine, directory access, etc. for a punctual purpose. But for this test we must to enable the access to our server from an other host out of "habitual network". We want no access from this external hosts with an other user that the specified. We desire to controle this. We have checked ftpaccess, ftpd, ftp an others commands but...
No ideas?
TIA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 07:03 AM
01-14-2003 07:03 AM
Re: Restriction on ftp conection
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 11:12 AM
01-14-2003 11:12 AM
Re: Restriction on ftp conection
If the problem is that your external user's username conflicts with a local user's username, then create a new one for the external user.
You're not talking about anonymous FTP, are you?
Are you worried about restricting access to your server by a mere password? (If so, consider sshd, sftp, and public key authentication.)
I still don't feel I've grasped your problem. Am I getting closer?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 11:08 PM
01-14-2003 11:08 PM
Re: Restriction on ftp conection
I think that isn't possible.
I don't know it's full explained...
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2003 04:31 AM
01-15-2003 04:31 AM
Re: Restriction on ftp conection
Use /var/adm/inetd.sec to deny/allow ip-adresses or subnets for ftp :
ftp allow 1.2.3.4 2.3.4.45-68 host1 host2
Use /etc/ftpd/ftpaccess to set rules :
class local real,guest,anonymous *.domain 0.0.0.0
class remote real,anonymous *
class remote guest /etc/ftpd/ftp_in.allow ## Put in your ip-adres from host1
## Don't know if you can define class --> user1 here.
Use /etc/ftpusers to allow only these users :
user1 Should not be in the file, as he is allowed to ftp!! root should be.
Use /etc/passwd to only allow ftp for this user:
user1:*:1001:401:User1 ftp acount:/ftp/ftp_in:/usr/bin/false
I think these are about the options you have. Maybe this makes it some easier to see what you can and what you can't. I confirm an easier use of allow/deny user/hosts would be preffered.
Regs David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2003 05:40 AM
01-15-2003 05:40 AM
Re: Restriction on ftp conection
As several of the responses indicate, you may be able to rig something using regular ftp (well, sort of). However, each of these methods fundamentally rely on ip-based authentication (claiming to be user1 from host2 is sufficient to 'prove' that you are user1 from host2). ip-based authentication is fundamentally easy to beat, so if you don't trust the other user on your network to play nicely, then all of your efforts are in vain anyway.
scp/sftp use a fundamentally more secure authentication technique in addition to being more configurable. hp-ux secure shell would need to be installed on host1, host2, and host3, and if you want more details on configuring these, there are lots of people on this forum who can help there too.
Hope that helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2003 05:47 AM
01-15-2003 05:47 AM
SolutionI used to use TCP wrappers in HP-UX 10, but this was 3 years ago. Perhaps tcp wrappers has been updated for 11.x of HP-UX.
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2003 06:46 AM
01-15-2003 06:46 AM
Re: Restriction on ftp conection
Thank you very much!
The functionality Shannon comments, the combination user@host rule, is the solution. It is no easy to implement, but...
Bye!