> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nx1cloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# auth

> Check S3 read or write permissions to access a bucket.

The `auth` command checks if you have read/write permission to access an S3 bucket
and its files.

```bash theme={null}
s3Cli auth <s3_path> <access_type>
```

<Accordion title="Arguments">
  * `s3_path` `string` **required**: S3 bucket name and filename.
  * `access_type` `string` **required**: Check your Ranger permission. Valid values: `read` or `write`.

  <Note>
    In the `s3_path`, don't include prefixes such as `s3://`, `s3a://`, and `s3n://`.
    Only specify the S3 bucket name.
  </Note>
</Accordion>

<Accordion title="Global options">
  * `--help` `-h` **optional**: Shows help messages and exits.
  * `--config` `-c` `string` **optional**: Path to Hadoop's `core-site.xml` file.
  * `--jceks-dir` `-j` `string` **optional**: Directory containing JCEKS files.
  * `--ranger-classpath` `-r` `string` **optional**: Path to Ranger's JAR files.
  * `--user` `-u` `string` **optional**: Username for Ranger authorization.
  * `--verbose` `-v` **optional**: Verbose logging.
</Accordion>
