Managing users

Adding a user

Adding user is done using the eyedbadmin command:

eyedbadmin
user add [options...] [user] [password]

Options are:

  • [ --unix | --strict-unix ]

    specify the user type, if unix or strict-unix type

Command arguments are:

  • [user]

    user name, if not unix or strict-unix type (if unix or strict-unix type, the user name is the user running the eyedbadmin command)

  • [password]

    password, if not strict-unix type. If no password is provided on command line, eyedbadmin will ask for a password on standard input.

Example 4.1. eyedbadmin user add

## Adding a 'eyedb' user: password is required
eyedbadmin user add joe
joe password: 123

retype joe password: 123

## Adding a 'unix' user with password on command line: Unix user does not exist, error
eyedbadmin user add --unix tom 456
eyedb error: username 'tom' is an unknown unix user

## Adding a 'unix' user: Unix user already exists, password is required
eyedbadmin user add --unix eric
eric password: 456

retype eric password: 456

## Adding a 'strict-unix' user: no password is required
eyedbadmin user add --strict-unix mimi
	  

Deleting a user

Deleting user is done using the eyedbadmin command:

eyedbadmin
user delete {user}

Command arguments are:

  • {user}

    EyeDB user name (can be of any user type)

Example 4.2. eyedbadmin user delete

## Deleting existing user
eyedbadmin user delete joe
## Deleting unknown user
eyedbadmin user delete r2d2
delete user error: user entry 'r2d2' does not exist
	  

Setting user password

Setting user password is done using the eyedbadmin command:

eyedbadmin
user passwd user [password] [new_password]

Command arguments are:

  • [user]

    EyeDB user name (can be of type 'eyedb' or 'unix')

  • [password]

    old password (will be asked if not provided on command line)

  • [new_password]

    new password (will be asked if not provided on command line)

Example 4.3. eyedbadmin user passwd

## Setting password with prompt
eyedbadmin user passwd eric
user old password: 456

user new password: 123
retype user new password: 123
## Setting password from command-line
eyedbadmin user passwd eric 123 789
 	  

Listing users

Listing existing EyeDB users is done using the eyedbadmin command:

eyedbadmin
user list [user]

Command arguments are:

  • [user]

    EyeDB user name

Example 4.4. eyedbadmin user list

## Listing all users
eyedbadmin user list
name      : "mimi" [strict unix user]
sysaccess : NO_SYSACCESS_MODE

name      : "eric" [unix user]
sysaccess : NO_SYSACCESS_MODE

name      : "francois" [strict unix user]
sysaccess : SUPERUSER_SYSACCESS_MODE
dbaccess  : (dbname : "newtest", access : ADMIN_DBACCESS_MODE)
            (dbname : "test3", access : ADMIN_DBACCESS_MODE)
## Listing a specific user
eyedbadmin user list mimi
name      : "mimi" [strict unix user]
sysaccess : NO_SYSACCESS_MODE