Sponsored Content
Top Forums Shell Programming and Scripting What is the command to get name associated with userid? Post 302377352 by prashant43 on Thursday 3rd of December 2009 09:59:02 PM
Old 12-03-2009
Data Thanks Jim for response ,but no access

No Jim, NO Access to getent Smilie

FYI..

OMVS is a feature of MVS that allows applications conforming to POSIX standards to operate or access data on an MVS system.



Quote:
Originally Posted by jim mcnamara
in pwd.h:
struct passwd *getpwuid(uid_t uid);

or getent from the command line?

I dunno OMVS: but I'm thinking OMVS is a guest. And so it only offers a subset of UNIX, proably just Unix tools and a shell. The above both require an actual C runtime.

Does it support the getent command?
Code:
getent prashant43 passwd

I went with awk earlier because I thought OMVS would be oddball.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

validating userid

What's wrong with this syntax? It's part of my 'if' statement but it doesn't seem to pass and it keeps going to the 'else' part. I thought it says that userid must start with a non-numeric character and is between 6 and 10 characters long (alphanumeric). $userid|grep -Eq '^?\{6,10\}+$' if... (2 Replies)
Discussion started by: giannicello
2 Replies

2. Shell Programming and Scripting

date and userid

Hi I am trying to write a script to check the log files for the trancactions based on usr input date and user input user id. I will take the user input userid and user input date and check there are any creation deletion happened, if so mail it other wise say no transactions; I got user... (2 Replies)
Discussion started by: gundu
2 Replies

3. AIX

Issues with "SU - userid -c command" on system reboot

Hi All! My db2 is started in the AIX /etc/inittab on systemreboot as follows db3:2:once:su - db2inst3 -c db2start >/dev/console 2>1 I changed the .profile of db2inst3 to put an alias to the db2start command as follows alias db2start="/usr/bin/ksh /home/db2inst3/sample/db2start.ksh" When... (1 Reply)
Discussion started by: voorkey
1 Replies

4. UNIX for Advanced & Expert Users

userid

I would like to know the difference between the real user-id and the effective user-id. If user-A runs a program owned by user-B then which is the real user-id and which is the effective user-id ? (1 Reply)
Discussion started by: sundaresh
1 Replies

5. Shell Programming and Scripting

Increment userid in file

Hello, does anyone know how to increment a userid(number) written in any scripting language that works on a shell? For example: I have a HTML file in this format: userid: name: telephone: Every time I execute my script it adds the same fields, except with the userid incremented. Like... (2 Replies)
Discussion started by: dejavu88
2 Replies

6. Post Here to Contact Site Administrators and Moderators

Pls change my userid

Can you change my userid from "jdmower" to "jdmowrer". I dropped an r when registering. thanks Jim (0 Replies)
Discussion started by: jdmowrer
0 Replies

7. Red Hat

userid access only to a particular service

Hi All, How do I make a userid access only a particular service like sftp? My linux is redhat ent 4. Thanks in advance for any advise. (4 Replies)
Discussion started by: itik
4 Replies

8. Red Hat

userid with nothing to do on the os/app

Hi All, I got this userid apache with the same userid and groupid and /sbin/nologin and the /www/a home folder is empty. Can I just delete this userid? How can I investigate if userid have something to do with the application? Thanks for any comment you may add. (1 Reply)
Discussion started by: itik
1 Replies

9. Solaris

See who is logging in with a userid

Hi all. Quick question. How can I tell if someone is logging in to our unix servers with an application id and not their personal id? Thanks (2 Replies)
Discussion started by: jamie_collins
2 Replies

10. UNIX for Dummies Questions & Answers

userid and pw

questions: a. where can I customized the password of userid in solaris? say I wanted 10digits long, all caps? thanks (4 Replies)
Discussion started by: lhareigh890
4 Replies
MAKE_SHA1(8)						      System Manager's Manual						      MAKE_SHA1(8)

 *

NAME
make_sha1 - Generate SHA1 checksums for given set of users. SYNOPSIS
make_sha1 [ -C config-file ] [ -D md5_dir ] [ -k count ] [ -f input_file ] [ -m offset ] [ -M modulo ] [ -v ] [ userid... ] DESCRIPTION
Generate SHA1 checksums for messages given set of users. Works as incremental update: reads in existing set of SHA1 checksums from sha1_dir/u/userid (hashed on first letter of userid) if that file exists. Scans account looking for new messages, and then updates record. The SHA1 checksums which are generated are used to test integrity of the master, replica and backup systems on Hermes. OPTIONS
-C config-file Read configuration options from config-file. -D sha1_dir Read and write SHA1 checksums from sha1_dir, overrides configuration file setting of the same name. -k count Concurrency level: run up to count asynchronous child processes. -f input_file List of accounts to process: use in place of command line arguments. -m offset Regenerate given fraction of the user database in combination with -M below. -M modulo Regenerate SHA1 checksums for given fraction of user database. Allows for rolling consisency checks. -v Verbose mode. FILES
/etc/imapd.conf AUTHORS
David Carter (dpc22@cam.ac.uk) CMU
Project Cyrus MAKE_SHA1(8)
All times are GMT -4. The time now is 04:05 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy