- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: scp or sftp via multiple users to common desti...
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
12-13-2005 01:18 AM
12-13-2005 01:18 AM
scp or sftp via multiple users to common destination
The problem is that I would like to make our life easier and set all of the users who transfer the data to a common home directory. This also is no real problem, except when we get into the configuration of the .ssh subdirectory to store allowed authorized keys into. As I understand things, this has to be owned by the individual users and not have read access to anyone else. Conflict here.
Is there any way of getting scp and/or sftp to set a different default directory than the one set by /etc/passwd?
THis is between two HP-UX boxes, both running 11i (PA-RISC). In the near future, I will have to change the destination box to Windows Server 2000.
Additional details provided in request, and point will be awarded, of course.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2005 01:29 AM
12-13-2005 01:29 AM
Re: scp or sftp via multiple users to common destination
Create a generic account - one that can only scp/sftp and have the users su - genericid
That way you only need one .ssh, one set of keys, and only 1 userid on the remote server...
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2005 01:37 AM
12-13-2005 01:37 AM
Re: scp or sftp via multiple users to common destination
Wonderfull idea, and I would implement it now except for one small problem I did not mention in the original posting. Our IT Security folk are dead-set against **any** type of shared or group account unless there is a very significant business reason for having one. That solution could probably fly, but it would take me two months just to get the paperwork through to get permission to impelement it.
I'm still researchng it on my end, but it's not looking good right now
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2005 01:40 AM
12-13-2005 01:40 AM
Re: scp or sftp via multiple users to common destination
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2005 01:53 AM
12-13-2005 01:53 AM
Re: scp or sftp via multiple users to common destination
You can do sftp scripting to change the directory.
Its just like an ftp script just a little different.
ftp -v -n <
user $2 $3 0
$4 $5 $6
EOF
becomes
sftp user@hostname <
$password
cd $directoryname
get $filename
EOF
Something like that.
I think the shared user account is a better idea, but this can be individualized.
A good example of rigid policy causing problems as this method leaves a password hardcoded into a script. With additional code, you can read the password out of a secure file as well.
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
12-15-2005 10:46 PM
12-15-2005 10:46 PM
Re: scp or sftp via multiple users to common destination
I already have generated key pairs for all of the users and copied these to the correct files so that passwords will not be required, since the files are moved from one specific machine to another specific machine I feel this is acceptable and will convince the IT Security folks of this. Yes, I have had all of the users test this so I know I got it right this time.
The next start will be to write a generic script, when I get the time Real Soon Now, to do the copying, like the one Steven suggested above. Since I will not have to put passwords into it in clear text, it should be Good Enough.
Again, thanks for the help and I am sorry about leaving this thread open as long as I did. First I was allowing any more suggestions to be added, then I got interrupted to put out a fire or three.
tom