On Wed, Mar 21, 2007 at 01:50:27PM +0100, Miklos Szeredi wrote:
> > Relative symlinks, for example symlinks to files in the same directory are
> > not readable. I get an error "Operation not permitted".
> > 
> > Example:
> > 
> > [EMAIL PROTECTED]:~$ ssh s touch a
> > [EMAIL PROTECTED]:~$ ssh s ln -s a b
> > [EMAIL PROTECTED]:~$ ssh s ls -l b
> > lrwxrwxrwx   1 cek      gi             1 Mar 16 08:25 b -> a
> > [EMAIL PROTECTED]:~$ mkdir s
> > [EMAIL PROTECTED]:~$ sshfs s: s
> > [EMAIL PROTECTED]:~$ ls -l s/b
> > ls: cannot read symbolic link s/b: Operation not permitted
> > lrwxrwxrwx 1 4627 4600 1 2007-03-16 08:25 s/b
> > 
> > Since they are relative they should be readable.
> > 
> > Mounting with -o workaround all doesn't fix this.
> 
> My guess is that this is an old/different sftp-server than the usual
> one supplied in OpenSSH.  Can please send the output of:
> 
>   sshfs -odebug,sshfs_debug,loglevel=debug s: s &
>   ls -l s/b
> 
> Thanks,
> Miklos
> 

Yes, the machine whose fs I'm trying to mount is a Sun, 
the SSH server returns: SSH-2.0-Sun_SSH_1.0.1.

[EMAIL PROTECTED]:~$ sshfs -odebug,sshfs_debug,loglevel=debug s: s &
[1] 7083
[EMAIL PROTECTED]:~$ debug1: Reading configuration data /home/c/.ssh/config
debug1: Applying options for s
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 131.174.16.134 [131.174.16.134] port 22.
debug1: Connection established.
debug1: identity file /home/c/.ssh/id_rsa type 1
debug1: identity file /home/c/.ssh/id_dsa type 2
debug1: Remote protocol version 2.0, remote software version Sun_SSH_1.0.1
debug1: match: Sun_SSH_1.0.1 pat Sun_SSH_1.0*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.3p2 Debian-9
debug1: Miscellaneous failure
No credentials cache found

debug1: Miscellaneous failure
No credentials cache found

debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: sending SSH2_MSG_KEXDH_INIT
debug1: expecting SSH2_MSG_KEXDH_REPLY
debug1: Host '131.174.16.134' is known and matches the RSA host key.
debug1: Found key in /home/c/.ssh/known_hosts:21
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering public key: /home/c/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 277
debug1: read PEM private key done: type RSA
debug1: Authentication succeeded (publickey).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Sending environment.
debug1: Sending env LANG = pl_PL
debug1: Sending subsystem: sftp
Server version: 2
unique: 1, opcode: INIT (26), nodeid: 0, insize: 56
INIT: 7.6
flags=0x00000001
max_readahead=0x00020000
   INIT: 7.8
   flags=0x00000001
   max_readahead=0x00020000
   max_write=0x00020000
   unique: 1, error: 0 (Success), outsize: 40
unique: 2, opcode: GETATTR (3), nodeid: 1, insize: 40
[00001] LSTAT
  [00001]          ATTRS       41bytes (1ms)
   unique: 2, error: 0 (Success), outsize: 112

[EMAIL PROTECTED]:~$ ls -l s/b
unique: 3, opcode: LOOKUP (1), nodeid: 1, insize: 42
LOOKUP /b
[00002] LSTAT
  [00002]          ATTRS       41bytes (5ms)
   NODEID: 2
   unique: 3, error: 0 (Success), outsize: 136
unique: 4, opcode: READLINK (5), nodeid: 2, insize: 40
   unique: 4, error: -1 (Operation not permitted), outsize: 16
ls: cannot read symbolic link s/b: Operation not permitted
lrwxrwxrwx 1 4627 4600 1 2007-03-21 13:52 s/b



Apart from symbolic links all other operations seem to work
with this server with sshfs.

Regards,

Cezary


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to