UNSOLVED

samwyse

updated

9 years ago

S

samwyse

1 Rookie

•

25 Posts

0

1161

November 2nd, 2017 13:00

How do I set file permissions for a non-root Isilon user?

My Isilon cluster doesn't allow root access via SSH.  I have set everything up so I can log in using an LDAP account.  I would like to skip entering my password each time, so I created an authorized_keys file, but it isn't working.  I suspect that the problem is that the .ssh directory and the file are group writable.

isilon1-1% cd $HOME
isilon1-1% pwd
/ifs/home/US/joeuser
isilon1-1% ls -al .ssh
total 30
drwxrwx--- 2 US\joeuser  US\domain users   33 Nov  2 13:21 .
drwxrwx--- 3 US\joeuser  US\domain users   22 Nov  2 13:18 ..
-rwxrwxr-- 1 US\joeuser  US\domain users  426 Nov  2 13:21 authorized_keys

Unfortunately, the chmod command doesn't seem to work.  Does anyone have any ideas?  Thanks!

  • samwyse

    1 Rookie

    •

    25 Posts

    617

    0

    Posted November 3rd, 2017 15:00

    I have good news, and bad news.  The good news is that I used these commands to reset the permissions on the .ssh directory and authorized_keys file.

    isilon1-1% chmod -D .ssh
    isilon1-1% chmod 755 .ssh
    isilon1-1% chmod -D .ssh/authorized_keys
    isilon1-1% chmod 644 .ssh/authorized_keys
    isilon1-1% ls -al .ssh
    total 106
    drwxr-xr-x 2 US\joeuser  US\domain users   114 Nov  3 14:48 .
    drwxrwx--- 3 US\joeuser  US\domain users    81 Nov  3 14:46 ..
    -rw-r--r-- 1 US\joeuser  US\domain users   827 Nov  3 14:48 authorized_keys
    

    The bad news is that it still doesn't work.

    isilon1-1% ssh -v -o BatchMode=yes isilon1-1 echo hi
    OpenSSH_7.1p2, OpenSSL 1.0.2j-fips  26 Sep 2016
    debug1: FIPS mode is not initialized
    debug1: Connecting to isilon1-1 [192.168.3.10] port 22.
    debug1: Connection established.
    debug1: identity file /ifs/home/US/joeuser/.ssh/id_rsa type 1
    debug1: key_load_public: No such file or directory
    debug1: identity file /ifs/home/US/joeuser/.ssh/id_rsa-cert type -1
    debug1: key_load_public: No such file or directory
    debug1: identity file /ifs/home/US/joeuser/.ssh/id_dsa type -1
    debug1: key_load_public: No such file or directory
    debug1: identity file /ifs/home/US/joeuser/.ssh/id_dsa-cert type -1
    debug1: key_load_public: No such file or directory
    debug1: identity file /ifs/home/US/joeuser/.ssh/id_ecdsa type -1
    debug1: key_load_public: No such file or directory
    debug1: identity file /ifs/home/US/joeuser/.ssh/id_ecdsa-cert type -1
    debug1: key_load_public: No such file or directory
    debug1: identity file /ifs/home/US/joeuser/.ssh/id_ed25519 type -1
    debug1: key_load_public: No such file or directory
    debug1: identity file /ifs/home/US/joeuser/.ssh/id_ed25519-cert type -1
    debug1: Enabling compatibility mode for protocol 2.0
    debug1: Local version string SSH-2.0-OpenSSH_7.1-hpn14v5
    debug1: Remote protocol version 2.0, remote software version OpenSSH_7.1-hpn14v5 FreeBSD-openssh-portable-7.1.p2,1
    debug1: match: OpenSSH_7.1-hpn14v5 FreeBSD-openssh-portable-7.1.p2,1 pat OpenSSH* compat 0x04000000
    debug1: Authenticating to isilon1-1:22 as 'US\\joeuser'
    debug1: SSH2_MSG_KEXINIT sent
    debug1: SSH2_MSG_KEXINIT received
    debug1: AUTH STATE IS 0
    debug1: REQUESTED ENC.NAME is 'chacha20-poly1305@openssh.com'
    debug1: kex: server->client chacha20-poly1305@openssh.com  none
    debug1: REQUESTED ENC.NAME is 'chacha20-poly1305@openssh.com'
    debug1: kex: client->server chacha20-poly1305@openssh.com  none
    debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
    debug1: Server host key: ecdsa-sha2-nistp256 SHA256:pzUzAa9tEYU8RfMzBv/hTNLh9M2ybrUbdOt/b48dp8U
    debug1: Host 'isilon1-1' is known and matches the ECDSA host key.
    debug1: Found key in /ifs/home/US/joeuser/.ssh/known_hosts:1
    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,keyboard-interactive
    debug1: Next authentication method: publickey
    debug1: Offering RSA public key: /ifs/home/US/joeuser/.ssh/id_rsa
    debug1: Authentications that can continue: publickey,password,keyboard-interactive
    debug1: Trying private key: /ifs/home/US/joeuser/.ssh/id_dsa
    debug1: Trying private key: /ifs/home/US/joeuser/.ssh/id_ecdsa
    debug1: Trying private key: /ifs/home/US/joeuser/.ssh/id_ed25519
    debug1: No more authentication methods to try.
    Permission denied (publickey,password,keyboard-interactive).
    isilon1-1%