Sponsored Content
Full Discussion: Permission on SFTP
Operating Systems Linux Red Hat Permission on SFTP Post 302959454 by makauser on Tuesday 3rd of November 2015 01:13:12 AM
Old 11-03-2015
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.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

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: ... (3 Replies)
Discussion started by: jansat
3 Replies

2. 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

3. 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

4. Shell Programming and Scripting

SFTP-how to log individual sftp command error while executing shell script

Hi, I have situation where i need to automate transferring 10000+ files using sftp. while read line do if ; then echo "-mput /home/student/Desktop/folder/$line/* /cygdrive/e/folder/$line/">>sftpCommand.txt fi done< files.txt sftp -b sftpCommand.txt stu@192.168.2.1 The above... (1 Reply)
Discussion started by: noobrobot
1 Replies

5. 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

6. Red Hat

Chroot sftp users, remote sftp login shows wrong timestamp on files

Hello, I have a weird issue, I have RHEL 5.7 running with openssh5.2 where sftpgroup OS group is chroot. I see the difference difference in timestamp on files, when I login via ssh and SFTP, I see four hour difference, is something missing in my configuration. #pwd... (8 Replies)
Discussion started by: bobby320
8 Replies

7. Shell Programming and Scripting

Sftp : not able to print the echo statements after the sftp transfer

I had the below sftp script working perfectly but the problem is I am not able to send the echo statements . #!/bin/sh echo "Starting to sftp..." sftp admin@myip << END_SCRIPT cd /remotepath/ lcd /localpath/ mget myfiles*.csv bye END_SCRIPT echo "Sftp successfully." echo echo... (11 Replies)
Discussion started by: scriptscript
11 Replies

8. 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

9. 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

10. 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
SFTP-SERVER(8)						    BSD System Manager's Manual 					    SFTP-SERVER(8)

NAME
sftp-server -- SFTP server subsystem SYNOPSIS
sftp-server [-ehR] [-f log_facility] [-l log_level] [-u umask] DESCRIPTION
sftp-server is a program that speaks the server side of SFTP protocol to stdout and expects client requests from stdin. sftp-server is not intended to be called directly, but from sshd(8) using the Subsystem option. Command-line flags to sftp-server should be specified in the Subsystem declaration. See sshd_config(5) for more information. Valid options are: -e Causes sftp-server to print logging information to stderr instead of syslog for debugging. -f log_facility Specifies the facility code that is used when logging messages from sftp-server. The possible values are: DAEMON, USER, AUTH, LOCAL0, LOCAL1, LOCAL2, LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7. The default is AUTH. -h Displays sftp-server usage information. -l log_level Specifies which messages will be logged by sftp-server. The possible values are: QUIET, FATAL, ERROR, INFO, VERBOSE, DEBUG, DEBUG1, DEBUG2, and DEBUG3. INFO and VERBOSE log transactions that sftp-server performs on behalf of the client. DEBUG and DEBUG1 are equivalent. DEBUG2 and DEBUG3 each specify higher levels of debugging output. The default is ERROR. -R Places this instance of sftp-server into a read-only mode. Attempts to open files for writing, as well as other operations that change the state of the filesystem, will be denied. -u umask Sets an explicit umask(2) to be applied to newly-created files and directories, instead of the user's default mask. For logging to work, sftp-server must be able to access /dev/log. Use of sftp-server in a chroot configuration therefore requires that syslogd(8) establish a logging socket inside the chroot directory. SEE ALSO
sftp(1), ssh(1), sshd_config(5), sshd(8) T. Ylonen and S. Lehtinen, SSH File Transfer Protocol, draft-ietf-secsh-filexfer-00.txt, January 2001, work in progress material. HISTORY
sftp-server first appeared in OpenBSD 2.8. AUTHORS
Markus Friedl <markus@openbsd.org> BSD
January 9, 2010 BSD
All times are GMT -4. The time now is 01:37 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy