Sponsored Content
Top Forums Shell Programming and Scripting Alternative for /usr/sbin/userdbset on Linux Post 302886782 by olyanderson on Monday 3rd of February 2014 02:55:21 PM
Old 02-03-2014
Alternative for /usr/sbin/userdbset on Linux

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

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

/usr/sbin/getty

How can i restart the console getty without rebooting the system on HPUX 11.0 Normally it will be stated by ps -ef | grep getty console 0:00 /usr/sbin/getty console console many thanx (4 Replies)
Discussion started by: iceman_denmark
4 Replies

2. Solaris

WARNING - /usr/sbin/fsck not found - Please help

WARNING - /usr/sbin/fsck not found. Most likely the mount of /usr failed or the /usr filesystem is badly damaged. The system is being halted. Either re-install the system of boot with -b option in an attempt to recover Anyone help me on restoring this without having to reinstall. it is a... (8 Replies)
Discussion started by: frustrated1
8 Replies

3. Solaris

different between /sbin/init and /usr/sbin/init

root@test09 # ls -al /sbin/init -r-xr-xr-x 1 root sys 550000 Jun 29 2002 /sbin/init root@test09 # ls -al /usr/sbin/init -r-xr-xr-x 1 root sys 37100 Jun 29 2002 /usr/sbin/init (2 Replies)
Discussion started by: userking
2 Replies

4. HP-UX

syslog: /usr/sbin/envd[1075]:

hi friends, what is the meaning of this error ? syslog: /usr/sbin/envd: (2 Replies)
Discussion started by: cromohawk
2 Replies

5. Solaris

crontab /usr/sbin/rtc log rc=1

I noticed in my cron log file for my solaris 8 servers the rc=1. I imagine that is return code and something did not process. Does anyone know what that is, is there fix or the implications of leaving it? Thank you > CMD: && /usr/sbin/rtc -c > /dev/null 2>&1 > root 22049 c Fri Dec 19... (1 Reply)
Discussion started by: csgonan
1 Replies

6. Red Hat

/usr/sbin/crond: can't lock /var/run/crond.pid,

please tell pre-requisite steps to activate cron. i activated the cron but it not executing the script which i set in crontab entry.through root user i passed the service crond start it get start.but when i go to etc/init.d and passed crond stop command.it gets crond: can't lock /var/run/crond.pid,... (2 Replies)
Discussion started by: umair
2 Replies

7. UNIX for Advanced & Expert Users

/sbin/ldconfig: File /usr/lib/libquazip.so.1.0.0 is empty, not checked.

I thought I would document this error since its not documented very well. The package or file may be different but the idea is the same. $ sudo yum updateLoaded plugins: langpacks, presto, refresh-packagekit, versionlock Setting up Update Process Resolving Dependencies --> Running... (0 Replies)
Discussion started by: cokedude
0 Replies

8. AIX

/usr/sbin/extendvg: Unable to extend volume group

Dear Expret, Help me about my issue, I trying add new disk to volume Group but error: step add new disk to volume group. 1. ~Change a Volume Group Add a Physical Volume to a Volume Group Remove a Physical Volume from a Volume Group Reorganize a Volume Group... (6 Replies)
Discussion started by: williamen
6 Replies

9. HP-UX

HP-UX /usr/sbin/snmpdm logging level default?

Hi, I'm not an HP-UX SysAdmin and work with Linux Systems a bit more but I have a question about the logging level for the snmpdm. We don't specify or modify anything so we're probably taking the default? What is the default? I see in the man page these options are available: Turn off... (0 Replies)
Discussion started by: hlutz
0 Replies

10. Red Hat

"/usr/sbin/hpacucli ctrl all show" command does not work

Dear Concern, We have observed that following command stuck/does not work in some RedHat nodes. Please advise us to troubleshoot the issue. /usr/sbin/hpacucli ctrl all show Note: HP Array Configuration Utility CLI for Linux 64-bit With Best Regards, Md. Abdullah-Al Kauser (3 Replies)
Discussion started by: makauser
3 Replies
WHEREIS(1)						      General Commands Manual							WHEREIS(1)

NAME
whereis - locate the binary, source, and manual page files for a command SYNOPSIS
whereis [-bmsu] [-BMS directory... -f] filename... DESCRIPTION
whereis locates source/binary and manuals sections for specified files. The supplied names are first stripped of leading pathname compo- nents and any (single) trailing extension of the form .ext, for example, .c. Prefixes of s. resulting from use of source code control are also dealt with. whereis then attempts to locate the desired program in a list of standard Linux places. OPTIONS
-b Search only for binaries. -m Search only for manual sections. -s Search only for sources. -u Search for unusual entries. A file is said to be unusual if it does not have one entry of each requested type. Thus `whereis -m -u *' asks for those files in the current directory which have no documentation. -B Change or otherwise limit the places where whereis searches for binaries. -M Change or otherwise limit the places where whereis searches for manual sections. -S Change or otherwise limit the places where whereis searches for sources. -f Terminate the last directory list and signals the start of file names, and must be used when any of the -B, -M, or -S options are used. EXAMPLE
Find all files in /usr/bin which are not documented in /usr/man/man1 with source in /usr/src: example% cd /usr/bin example% whereis -u -M /usr/man/man1 -S /usr/src -f * FILES
/{bin,sbin,etc} /usr/{lib,bin,old,new,local,games,include,etc,src,man,sbin, X386,TeX,g++-include} /usr/local/{X386,TeX,X11,include,lib,man,etc,bin,games,emacs} SEE ALSO
chdir(2V) BUGS
Since whereis uses chdir(2V) to run faster, pathnames given with the -M, -S, or -B must be full; that is, they must begin with a `/'. whereis has a hard-coded path, so may not always find what you're looking for. AVAILABILITY
The whereis command is part of the util-linux-ng package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/. 8 May 1994 WHEREIS(1)
All times are GMT -4. The time now is 08:41 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy