- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- sftp files-------hp-ux 11i v2
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp
Knowledge Base
Discussions
Forums
Discussions
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
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
09-11-2006 05:10 AM
09-11-2006 05:10 AM
one of our application is sending batch files via sftp to another server. The receiving server is not able to access those files, it is created using the source server umask of 640. Is there a way to change the file permission to 666 before doing the SFTP PUT TO the other server? Is there any sftp configuration file one can modify? If so where is it located?
Thanks for your help.
RAJIM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2006 05:21 AM
09-11-2006 05:21 AM
Solution/etc/ssh/ssh_config
or
/etc/ssh/sshd_config
The files are both well documented and you will need to restart sshd in order to have the changes take effect.
This needs to be done on the receiving server.
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
09-11-2006 05:25 AM
09-11-2006 05:25 AM
Re: sftp files-------hp-ux 11i v2
# sftp-server umask control
#SftpUmask
SftpUmask 022
This will change the umask for sftp, as stated you will need to recycle ssh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2006 05:27 AM
09-11-2006 05:27 AM
Re: sftp files-------hp-ux 11i v2
put -P local-path remote-path
Hope this helps
Kofi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2006 07:05 AM
09-11-2006 07:05 AM
Re: sftp files-------hp-ux 11i v2
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2006 11:49 AM
09-11-2006 11:49 AM
Re: sftp files-------hp-ux 11i v2
With permissions, you ask the questions:
1. Are these files executable scripts? If no, then do *not* set the execute bit anywhere.
2. Are these files supposed to changed by any user on the system. If no, then do not set the write bit for the world.
3. Are these files supposed to be read by anyone on the system? If no, do not set the read bit for4 the world.
I think what you want is 644, not 666. Every file that has 666 permissions cannot be trusted - it will be eventually trashed either accidentally or on purpose.
Bill Hassell, sysadmin