- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to restrict rcp to copy from/to a particular d...
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
06-18-2003 05:27 AM
06-18-2003 05:27 AM
how to restrict rcp to copy from/to a particular directory
Is it possible to restrict the rcp command such-a-way that it can copy the files only from /to a particular directory?
My requirement is as follows:
1. user 'test' from /home/test directory from 'hp-ux' host will copy some files daily to /home/test of 'aix' host.
Now the Aix system administrator doesnot want the 'test' user from 'hp-ux' to access anyother files otherthan /home/test directory in 'aix' host.
Can anybody give some tips ,how do i do this?
Regds
Ruban
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 05:30 AM
06-18-2003 05:30 AM
Re: how to restrict rcp to copy from/to a particular directory
If the rcp user can't access the directory, they can't put files on it.
The rcp command will let the user copy a file from anywhere they have appropriate rights on system a to anywhere they have appropriate rights on system b and vice versa.
If the user has read only rights to /tmp/mystuff then they won't be able to rcp anything to it.
This in my opinion is a scurity/sysadmin issue. The only commands you need are chmod and chown
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 05:42 AM
06-18-2003 05:42 AM
Re: how to restrict rcp to copy from/to a particular directory
I am with Steven on this one. I think the only way will be modifying the permissions and/or group.
Regards,
Dario
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 05:51 AM
06-18-2003 05:51 AM
Re: how to restrict rcp to copy from/to a particular directory
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 07:19 AM
06-18-2003 07:19 AM
Re: how to restrict rcp to copy from/to a particular directory
Or alternatively the other way around, get aix user to get the files as a cron job, using ftp?
Permissions still seems like the proper way.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 10:50 AM
06-18-2003 10:50 AM
Re: how to restrict rcp to copy from/to a particular directory
If you want that some user could do something
and something else could not it's 99% permissions will solve the problem.
Caesar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 01:12 PM
06-18-2003 01:12 PM
Re: how to restrict rcp to copy from/to a particular directory
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 01:41 PM
06-18-2003 01:41 PM
Re: how to restrict rcp to copy from/to a particular directory
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2003 06:09 AM
06-20-2003 06:09 AM
Re: how to restrict rcp to copy from/to a particular directory
thanks for all ur replies
Chris: what u mean by secure copy?
Ruban
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2003 06:29 AM
06-20-2003 06:29 AM
Re: how to restrict rcp to copy from/to a particular directory
secure copy is scp, part of the ssh or openssh package.
It lets you establish connection between two server, crypting it, and it has lots of option for specifying all you need.
HTH,
Massimo