Linux alternative for hpux /usr/sbin/userdbset

Discussion in 'General Linux' started by Olyanderson, Feb 3, 2014.

  1. Olyanderson

    Olyanderson New Member

    Messages:
    3
    Likes Received:
    1
    Trophy Points:
    1
    Hello.

    I am currently on HPUX and migrating to Linux RHEL 6.4

    This program on hpux:

    /usr/sbin/userdbset

    is puzzling me on linux.

    Does anyone know the equivilent program forked or used on linux.

    This program is mentioned in our user reset script.

    here is a strings of the userdbset for some clues.


    thanks!

    Code:
    # strings /usr/sbin/userdbset|more
    %2d%2d-%2d%2d
    %4d-%4d
    hpux.security.attribute.
    delete
    modify
    /etc/passwd
    Attribute %s is not valid for non-local users.
    Invalid username : %s
    userdbset: unable to access /etc/security.dsc
    userdbset: internal error - unable to process /etc/security.dsc
    LOGIN_TIMES
    Incorrect LOGIN_TIMES specification : %s=%s.
    Invalid argument : %s=%s
    %s is out of range.
    Unknown attribute : %s
    /var/adm/userdb/USERDB.DISABLED
    %s%2.2x
    /var/adm/userdb/
    userdbset: unable to access /etc/security.dsc
    userdbset: internal error - unable to process /etc/security.dsc
    /var/adm/userdb/USERDB.DISABLED
    %s%2.2x
    /var/adm/userdb/
    WARNING: Corrupt userdb - bad checksum found in %s user : %s, run userdbck.
    Unable to import data - cannot open data file : %s
    Importing data from : %s
    Skipping internal attribute entry : %s %s=%s
    Unable to add entry : %s %s=%s
    Unable to import data - incorrect file format : %s
    Imported %d records.
    userdbset
    userdbset: not allowed on a Trusted System
    /var/adm/userdb/
    Access to user database, userdb(4), denied.
    diu:af:
    /usr/bin/privsh
    PRIVRUN_USER=%s
    /usr/lib/libacps.1
    acps_simplecheckauth
    userdbset: Unable to load acps_simplecheckauth() from : %s
    /usr/lib/libacps.1
    hpux.security.attribute.import
    hpux.security.attribute.delete
    Serious error encountered trying to access the user database, run userdbck.
    userdbset - unable to lock user database.
    userdbset - user database access is disabled.
    Access to user database, userdb(4), denied.
    usage : %s -u user attr=value ...
    usage : %s -d -u user [-i]
    usage : %s -d -u user attr ...
    usage : %s -d -a attr ...
    usage : %s [-u user] -f import_datafile
    
  2. ryanvade

    ryanvade Administrator Staff Member Staff Writer

    Messages:
    910
    Likes Received:
    290
    Trophy Points:
    63
    Not exactly.

    Linux does not really have a central User Database like HP-UX.
    There are a few utilities that are close though.
    1. SELinux.
    2. File permissions
    3. group permissions
    4. User Permissions

    SELinux is the closest to what you are looking for though.
    DevynCJohnson likes this.
  3. Olyanderson

    Olyanderson New Member

    Messages:
    3
    Likes Received:
    1
    Trophy Points:
    1
    I found my answer.

    modify /etc/pam.d/system-auth, and password-auth on RHEL 6.4

    add a few entries.

    The command equiv is:

    pam_tally2 --user username_here --reset

    This effectively changes the lockout and user is allowed to log in. The key though is the modifications to system-auth and password-auth, adding the appropriate entries for pam_tally2.so to be called on.

    account required pam_tally2.so
    and a few others for other things i needed this time around.

    thanks for you responses.
    OA
    DevynCJohnson likes this.
  4. Olyanderson

    Olyanderson New Member

    Messages:
    3
    Likes Received:
    1
    Trophy Points:
    1
    sounds good ;)

  5. DevynCJohnson

    DevynCJohnson Super Moderator Staff Member Staff Writer

    Messages:
    973
    Likes Received:
    857
    Trophy Points:
    93
    Thanks for sharing this information with us.
    Haider92 likes this.

Share This Page