09-06-2012
"id <test_id>" will tell you if an id is in service. In the beginning, all IDs were in /etc/passwd in colon-separated text, and all groups were in /etc/group.
Later, to maintain identical values across many systems, NIS and YP (yellow pages) were created to share values across systems in addition to the original files, with presentations like the original files from nispasswd or yppasswd. This was especially necessary with NFS mounts, where the same disk with ID and Group #'s on UFS-like file inodes is on two or more systems.
Man Page for yppasswd (all Section 1) - The UNIX and Linux Forums
So, it can be simple, or a little more complex.
10 More Discussions You Might Find Interesting
1. Cybersecurity
Hi,
Is it possible that one user belongs to many groups, or the relation of user/group is 1/1?. Thanks
Ramón (2 Replies)
Discussion started by: rsanz
2 Replies
2. Linux
RH 7.2
I'm trying to list the users & groups on my machine. I found the lsuser & lsgroup commands but no associated man pages.
I typed: lsuser
I get --> Valid options are: -a
So I typed: lsuser -a
I get --> Valid options are: groups, home
So I typed: lsuser -a groups
I get -->... (2 Replies)
Discussion started by: jalburger
2 Replies
3. UNIX for Dummies Questions & Answers
hi eveyone i've recently requested my unix admin to create a userid for 2 groups. He created the id and i can see it by grep "id" /etc/group.
But when i login with that id into unix and try to cd that group it says permission denied. something like cd /groupname -- permission denied
Can my admin... (1 Reply)
Discussion started by: sammet
1 Replies
4. UNIX for Dummies Questions & Answers
Is there a way to find out all users and the UNIX groups they belong to??
:) (3 Replies)
Discussion started by: Hangman2
3 Replies
5. Solaris
Hi All,
I would like know how many of default number of users and groups are there in solaris-10...
Regards
Tirupathi Raju (2 Replies)
Discussion started by: tirupathiraju_t
2 Replies
6. Solaris
How do I remove a user from a group? I'm using the usermod command but its not working.
I have a user "abc" who is a member of the groups root and other. I'm trying to remove him from the group "other" (using CLI) which is his secondary group but it's not working.
How do I do this? Is there any... (11 Replies)
Discussion started by: the_red_dove
11 Replies
7. UNIX for Dummies Questions & Answers
Hi
I am new to unix so hopefully someone can help. I need to list all the users I have in my unix enviroment (AIX) and the groups (primary and secondary) they belong to.
Can anyone help?
Many thanks in advance (2 Replies)
Discussion started by: m3y
2 Replies
8. Shell Programming and Scripting
Hi,
I have two little issues:
1) there is possible in sh to create a function who return a boolean value?
2)i have to verify if an user belongs to a group and i think it is needed to create a function which take two parameter and return a boolean value. in fact i have to parse /etc/group... (5 Replies)
Discussion started by: catalint
5 Replies
9. UNIX for Dummies Questions & Answers
Happy Thanksgiving Everyone!! I have a question about adding users to multiple groups. Thanks in advance
Using Red Hat and here are the issues:
Example:
Users:
Bob
Mark
Groups:
SystemsAnalysts
BusinessAnalysts
If I am adding a user Bob to both groups (SystemsAnalysts and... (2 Replies)
Discussion started by: hansokl
2 Replies
10. HP-UX
Hi,
I need to modify the user 'munfai' by adding it into groups bscs, oinstall, dba.
I use this command as user root to add the user into the mentioned groups :
# usermod -G bscs,oinstall,dba munfai
I can thereafter see the id in the groups :
# id munfai
uid=258(munfai) gid=20(users)... (2 Replies)
Discussion started by: anaigini45
2 Replies
LEARN ABOUT HPUX
yppasswd
yppasswd(3N) yppasswd(3N)
NAME
yppasswd() - update user password in Network Information Service
SYNOPSIS
[flag]... file... [library]...
DESCRIPTION
If oldpass is the old, unencrypted user password, this routine replaces the password entry with the encrypted newpw.
RPC Info
Program number:
XDR routines:
xdr_yppasswd(xdrs, yp)
XDR *xdrs;
struct yppasswd *yp;
xdr_passwd(xdrs, pw)
XDR *xdrs;
struct passwd *pw;
Procs:
Takes struct yppasswd as an argument; returns an integer.
Behaves the same as the yppasswd() function. Uses UNIX authentication.
Versions:
Structures:
struct yppasswd {
char *oldpass; /* old (unencrypted) password */
struct passwd newpw; /* new pw structure */
};
MULTITHREAD USAGE
Thread Safe: Yes
Cancel Safe: Yes
Fork Safe: No
Async-cancel Safe: No
Async-signal Safe: No
These functions can be called safely in a multithreaded environment. They may be cancellation points in that they call functions that are
cancel points.
In a multithreaded environment, these functions are not safe to be called by a child process after and before These functions should not be
called by a multithreaded application that support asynchronous cancellation or asynchronous signals.
RETURN VALUE
returns 0 if successful and -1 if an error occurs.
AUTHOR
was developed by Sun Microsystems, Inc.
SEE ALSO
yppasswd(1), yppasswdd(1M).
yppasswd(3N)