Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.security.ssh > #37
| Date | 2011-04-08 01:32 -0500 |
|---|---|
| From | zyg <montjoy@visi.com> |
| Newsgroups | comp.security.ssh |
| Subject | File locking in SFTP |
| Message-ID | <hoqdnXx5R9GfMQPQnZ2dnUVZ_j6dnZ2d@posted.visi> (permalink) |
Hello list - After much googling around and not finding the answer I
come to you. From what I've read at various places SFTP supports file
locks. However, when I test for file locks during an upload I'm not
seeing the uploaded file get locked during transmission. Is there a
setting that needs to be enabled in sshd_config for this? I'm uploading
to an NFS3 filesystem. I have confirmed that locking works otherwise in
NFS with both flock() and fcntl().
Thank you.
config:
RHEL5.5 64bit
Openssh 5.6p1, compiled from source
sshd_config:
Protocol 2
SyslogFacility AUTHPRIV
LogLevel INFO
LoginGraceTime 600
PermitRootLogin no
StrictModes no
RSAAuthentication yes
RhostsRSAAuthentication no
IgnoreRhosts yes
X11Forwarding no
X11DisplayOffset 10
TCPKeepAlive yes
UsePrivilegeSeparation yes
ClientAliveInterval 300
Subsystem sftp internal-sftp -f local5 -l DEBUG
Match group client
ForceCommand internal-sftp -f local5 -l DEBUG
ChrootDirectory %h
X11Forwarding no
AllowTcpForwarding no
Back to comp.security.ssh | Previous | Next | Find similar
File locking in SFTP zyg <montjoy@visi.com> - 2011-04-08 01:32 -0500
csiph-web