Support Center > Search Results > SecureKnowledge Details
Clish on Gaia OS crashes with 'Segmentation fault' when running 'show configuration user' command
Symptoms
  • Clish on Gaia OS crashes with 'Segmentation fault' when running 'show configuration user' command.

    Example:

    HostName> show configuration user
    add user user1 uid 208 homedir /home/user1
    set user user1 gid 100 shell /etc/cli.sh
    set user user1 password-hash XXXXXX
    ... ... ...
    Segmentation fault
    
  • Running the Clish 'show configuration user' command under GDB (contact Check Point Support to get the GDB tool) shows the following stack:

    [Expert@HostName]# ./gdb /bin/clish  
    ... ... ...
    (gdb) r -c "show configuration user"
    ... ... ...
    add user USERNAME uid XXX homedir /home/USERNAME
    set user USERNAME gid YYY shell /etc/cli.sh
    set user USERNAME password-hash XXXXXX
    
    Program received signal SIGSEGV, Segmentation fault.
    0x... in showConfiguration (context=0x...) at cli_passwd.c:N
    N cli_passwd.c: No such file or directory.
    in cli_passwd.c
    (gdb) bt
    #0 0x... in showConfiguration (context=0x...) at 
    cli_passwd.c:N
    #1 0x... in InvokeHandler ()
    #2 0x... in ProcessActApi ()
    #3 0x... in shExecuteCmd ()
    #4 0x... in ProcessCommand ()
    #5 0x... in main ()
    (gdb)
    
Cause

Analysis of the Gaia Database (/config/db/initial file) shows that the USERNAME, whose settings were printed when the Clish crashed, does not have a UID (or GID) configured - the following line is missing 'passwd:USERNAME:uid VALUE' (or 'passwd:USERNAME:gid VALUE').


Solution
Note: To view this solution you need to Sign In .