sftp - permission setting check


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting sftp - permission setting check
# 1  
Old 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.
# 2  
Old 05-13-2008
The umask is related to the shell, if you want sftp's umask to change, you'll need to adjust the sftpd's config (or sshd, depending on your implimentation of sftp).
# 3  
Old 05-19-2008
Hello,

Could you please let me know the procedure to adjust the sftpd's config (or sshd, depending on your implimentation of sftp) ?
# 4  
Old 05-22-2008
It depends on the implementation you are using, but it could be under /etc/ssh.
Find the relevant config file and locate an entry for umask.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Linux sftp — how to add new user to access exist directory with write permission?

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

2. UNIX for Beginners Questions & Answers

Setting write permission for particular user

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

3. Red Hat

Permission on SFTP

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

4. Solaris

Permission on sftp

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

5. Shell Programming and Scripting

Check for file permission

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

6. Shell Programming and Scripting

Permission Denied in SFTP

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

7. Shell Programming and Scripting

SFTP show Permission is denied

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

8. Shell Programming and Scripting

File permission check in SFTP mode

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

9. Shell Programming and Scripting

SFTP setting with a remote server - need help

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

10. UNIX for Dummies Questions & Answers

sftp: Could'nt get handle: permission denied

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
Login or Register to Ask a Question