Ben Chuanlong Du's Blog

It is never too late to learn.

Get Information of User in Golang

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Get Information of the Current User

user.Current() returns information of the current (real) user. If the code is run by a non-root user named some_user on Linux, then information of some_user is returned. However, if some_user has sudo

Access Control in Spark SQL

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Grant Permission to Users

GRANT
    priv_type [, priv_type ] ...
    ON database_table_or_view_name
    TO principal_specification [, principal_specification] ...
    [WITH GRANT OPTION];

Examples:

GRANT SELECT ON table1 TO USER user1;
GRANT SELECT ON DATABASE db1 TO USER user1 …

User Access Control on Linux

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Login Access Control

The /etc/security/access.conf file specifies (user/group, host), (user/group, network/netmask) or (user/group, tty) combinations for which a login will be either accepted or …

User in Docker

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

User switching in Docker

  1. USER some_user in Dockerfile, some_user has to exists
  2. su in Dockerfile or shell scripts
  3. docker run --user some_user

@pedrolucasoliva i am docker specialist i give you a …