Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-7266

Allow cqlsh shell ignore .cassandra permission errors and not fail to open the cqlsh shell.

    XMLWordPrintableJSON

Details

    Description

      There is an issue with home directories not working and this is causing users to not be able to execute cqlsh shell. CQLSH shell uses the .cassandra folder in the user's home directory for history and currently throws error and returns you to the prompt. Below is the error:

      -bash-4.1$ cqlsh
      Traceback (most recent call last):
      File "/usr/bin/cqlsh", line 141, in <module>
      os.mkdir(HISTORY_DIR)
      OSError: [Errno 13] Permission denied: '/home/testuser/.cassandra'

      In this example, testuser does not have access to the home directory.

      Requested resolution is to allow a user to access the cqlsh shell even though the home directory is inaccessible.

      The current workaround is to gain access to the home directory. This is not acceptable in all cases because of security policies of the organization.

      Attachments

        1. CASSANDRA-7266-2.patch
          1 kB
          Mihai Suteu
        2. cassandra-7266-1.patch
          1 kB
          Mihai Suteu
        3. cassandra-7266.patch
          1 kB
          Mihai Suteu

        Activity

          People

            Unassigned Unassigned
            carolyn.jung Carolyn Jung
            Mikhail Stepura
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: