| Tarantool[, function-to-execute])

Change Tarantool’s current user – this is analogous to the Unix command su.

Or, if function-to-execute is specified, change Tarantool’s current user temporarily while executing the function – this is analogous to the Unix command sudo.

  • user-name (string) – name of a target user
  • function-to-execute – name of a function, or definition of a function. Additional parameters may be passed to, they will be interpreted as parameters of function-to-execute.


tarantool> function f(a) return box.session.user() .. a end

tarantool>'guest', f, '-xxx')
- guest-xxx

tarantool>'guest',function(...) return ... end,1,2)
- 1
- 2
Found what you were looking for?