GithubHelp home page GithubHelp logo

Comments (3)

den-crane avatar den-crane commented on September 27, 2024

24.4 ? It started with 24.1

It's expected behaviour.
The majority of system tables are not available by default anymore.
The only tables related to database schema are available now: system.tables, system.columns, ...

numbers() -- is not a table, it's a table function.
system.one -- is a special table, AFAIK it's needed for select * (select without from section).

You can do something like grant select on system.* to user1;
Or change settings back https://github.com/ClickHouse/ClickHouse/pull/58584/files

https://github.com/ClickHouse/ClickHouse/blob/master/CHANGELOG.md#-clickhouse-release-241-2024-01-30

Enable various changes to improve the access control in the configuration file. These changes affect the behavior, and you check the config.xml in the access_control_improvements section. In case you are not confident, keep the values in the configuration file as they were in the previous version. #58584 (Alexey Milovidov).

from clickhouse.

alsugiliazova avatar alsugiliazova commented on September 27, 2024

I compared with 24.3 and saw these difference. I was curious because didn’t see anything related in 24.4 changelog. Just wanted to clarify for myself, thanks.

from clickhouse.

den-crane avatar den-crane commented on September 27, 2024

I definitely see that this behaviour started with 24.1

24.2.3.70

create user user1 identified by 'x';

clickhouse-client -u user1 --password x

select * from system.numbers;

Received exception from server (version 24.2.3):
Code: 497. DB::Exception: Received from localhost:9000.
DB::Exception: user1: Not enough privileges. To execute this query, it's necessary to have the grant 
SELECT(number) ON system.numbers. (ACCESS_DENIED)

from clickhouse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.