05-09-2008
sftp - permission setting check
Hello,
I am doing a transfer of a file from one HP-UX ( umask : 033 ) server to another HP-UX server ( umask : 033 ) and file got transferred sucessfully. However I could see the file permission gets changed at the receiving end. Would like to know the reason for that?
Details below:
Sending end file permission:
-rw-r--r-- <file>
Receiving end file permission:
-rw-r----- <file>
Could you please let me know how & why does this change happen? Also what exactly is the functionality of sftp with regard to file permission?
Thanks.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all,
I tried to google this issue but I wound up having more questions; so I'm posting here. =)
I have a client who connects to my unix server via sftp to pick up a file nightly. Usually, they have no issue doing this but today was different. Here's their log:
MA_OFAC_RECEIVE module:... (1 Reply)
Discussion started by: gseyforth
1 Replies
2. Shell Programming and Scripting
Hi All,
i want to setup a STPF setting to a remote server.
Could you please help on this. The setting i have done but its still asking for password.
Could anyone throw some light on the same?
Thanks in advance.
Pankaj (1 Reply)
Discussion started by: panknil
1 Replies
3. Shell Programming and Scripting
Hi,
I have requirement to get a file from a remote location using SFTP only if the file has read/write permission either to the user or to the group.
Currently i m taking the ls of the required file and storing it in a flat file to check the file permission.
Please advice is there any... (3 Replies)
Discussion started by: ravin
3 Replies
4. Shell Programming and Scripting
Hi.
I am running this line in AIX unix and I am getting the error Permission is denied.
Could you help me on this please.
rcp -p rgranado@sniux01:/homeusr/ven/edi/procesados/asn/* gisadm@sniux03:/gentran/SI51/install/HD_XML/OUT
Please use next time
code tags for your code and data (2 Replies)
Discussion started by: cucosss
2 Replies
5. Shell Programming and Scripting
Hello Guys,
I am SFTPing from Solaris to Windows and accessing a softlink pointing to another server path (\\server\path).
The same was working properly but I have made this connection passwordless and after that it show below error while accessing solftlink,
couldn't canonicalise:... (9 Replies)
Discussion started by: Deei
9 Replies
6. Shell Programming and Scripting
Hi,
I have an array that has several directory paths and file paths.
I use a for loop to traverse through the array and check for files and not directories using the if condition.
I wish to display all files that have permissions lesser than what the user has specified.
For example:
... (14 Replies)
Discussion started by: mohtashims
14 Replies
7. Solaris
Hi
I want copy file from redhat 6.5 to solaris10 with sftp, but i want any file with any permission auto change to 774 after copy.
Tank-you. (1 Reply)
Discussion started by: goodgood
1 Replies
8. Red Hat
Dear concern,
We want to send files in remote machine through "sftp test@ipaddress" command. But our intention is to change the owner of files from "test" user to "dev" user while uploding files through sftp. Is there any feature in sshd server to do the activity. Please advise. (2 Replies)
Discussion started by: makauser
2 Replies
9. UNIX for Beginners Questions & Answers
Hi All,
We have a scenario in production where we want only one user from a group to modify the file. The file is not set to write permission for application manager.
-r--r--r-- 1 amgr u00 15661716 Aug 30 00:06 DCI.dat
So here amgr will have permission to edit the file. We want a... (10 Replies)
Discussion started by: arunkumar_mca
10 Replies
10. UNIX for Beginners Questions & Answers
I have built a website and I can access and edit the website'files on server via the root user. The current file and directory structures are not changeable. Now I am hiring a webpage designer to help me re-design some pages, I am going to let the designer edit the files directly on the server. So... (5 Replies)
Discussion started by: uwo-g-xw
5 Replies
LEARN ABOUT V7
sftp-server
sftp-server(1M) System Administration Commands sftp-server(1M)
NAME
sftp-server - SFTP server subsystem
SYNOPSIS
/usr/lib/ssh/sftp-server
DESCRIPTION
sftp-server implements the server side of the SSH File Transfer Protocol as defined in the IETF draft-ietf-secsh-filexfer.
sftp-server is a subsystem for sshd(1M) and must not be run directly. There are no options or config settings.
To enable the sftp-server subsystem for sshd add the following to /etc/ssh/sshd_config:
Subsystem sftp /usr/lib/ssh/sftp-server
See sshd_config(4) for a description of the format and contents of that file.
There is no relationship between the protocol used by sftp-server and the FTP protocol (RFC 959) provided by in.ftpd.
EXIT STATUS
The following exit values are returned:
0 Successful completion.
>0 An error occurred.
FILES
/usr/lib/sftp-server
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWsshdu |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO
sftp(1), ssh(1), ssh-add(1), ssh-keygen(1), sshd(1M), sshd_config(4), attributes(5)
To view license terms, attribution, and copyright for OpenSSH, the default path is /var/sadm/pkg/SUNWsshdr/install/copyright. If the
Solaris operating environment has been installed anywhere other than the default, modify the given path to access the file at the installed
location.
AUTHOR
Markus Friedl
SunOS 5.10 30 Jul 2003 sftp-server(1M)