07-01-2011
Inconsistency between passwd and group
Hi,
I have a passwd file with 3 users belonging to the the root group (gid=0), but the group file does not list these users as members of the root group?
Shoud I be worried and apart from manually changing it, how can it be remediated?
thx
Norgaard
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
How can I find find all members in the /etc/password file that belong to the dba group in the /etc/group file? (4 Replies)
Discussion started by: mozartny
4 Replies
2. UNIX for Dummies Questions & Answers
Hi, it seems I've got an hw error on more than one device.
I use an AIX 5.2.
this is the problem desc.
Description
DISK OPERATION ERROR
Probable Causes
DASD DEVICE
Failure Causes
DISK DRIVE
DISK DRIVE ELECTRONICS
I wish to read the SYSLOG file, where is it ?
tk (1 Reply)
Discussion started by: Carmen123
1 Replies
3. UNIX for Dummies Questions & Answers
From what I have read it possible to create a new group by editing the etc/group and etc/passwd in UNIX two files but a non-experienced user may face many problems such as destroying the file by mistake ot that his changes to these file does not make any difference.
However, there is this... (2 Replies)
Discussion started by: whatev3r
2 Replies
4. UNIX for Dummies Questions & Answers
:mad:
Dear All,
Here I am sending the error msg that come to to the terminal when I attempt to start my
linux redhat 2.4.18-3 system.
cheking file system
/boot clean
/home : clean
/usr :containing file system with errors,check forced
error reading block 35924(attempt to... (3 Replies)
Discussion started by: callitdctr
3 Replies
5. Shell Programming and Scripting
When i run the following command on our server
ypcat group
or
ypcat passwd
I get list of groups and users respectively.
I am not sure whether this list is only for the groups or users on the particular server on which i executed the command or all the groups and users on all the servers in... (2 Replies)
Discussion started by: pinnacle
2 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I am checking who belong to the dba group ,
and found that oracle and autosys users are part of this group
cat /etc/group | grep dba
dba::400:oracle,autosys
I thought to found user autosys under group 400 togther with user
oracle , but found it in group 1000 as you can see bellow.... (2 Replies)
Discussion started by: yoavbe
2 Replies
7. Solaris
Hi Folks,
I have Solaris 10, latest release.
We have passwd aging set in /etc/defalut/passwd.
I have an account that passwd should never expire. Acheived by emptying associated users shadow file entries for passwd aging.
When I reset the users passwd using passwd command, it re enables... (3 Replies)
Discussion started by: BG_JrAdmin
3 Replies
8. Shell Programming and Scripting
/etc/group
tiadm::345:mk789,po312,jo343,ju454,ko453,yx879,iy345,hn453
bin::2:root,daemon
sys::3:root,bin,adm
adm::4:root,daemon
uucp::5:root
/etc/passwd
mk789:x:234:1::/export/home/dummy:/bin/sh
po312:x:234:1::/export/home/dummy:/bin/sh
ju454:x:234:1::/export/home/dummy:/bin/sh... (6 Replies)
Discussion started by: chidori
6 Replies
9. AIX
Does anyone know when AIX started using /etc/security/passwd instead of /etc/passwd to store encrypted passwords? (1 Reply)
Discussion started by: Anne Neville
1 Replies
10. UNIX for Dummies Questions & Answers
Hi guys,
I have a question. In the passwd file, user johndoe has a GID of 100 which is the group named users in the group file. But if you check the group file, johndoe is not listed under GID 100, but under GID 33, which is the group named videos. Under what group does johndoe really belong,... (1 Reply)
Discussion started by: goldenlight1814
1 Replies
LEARN ABOUT PHP
posix_getgrgid
POSIX_GETGRGID(3) 1 POSIX_GETGRGID(3)
posix_getgrgid - Return info about a group by group id
SYNOPSIS
array posix_getgrgid (int $gid)
DESCRIPTION
Gets information about a group provided its id.
PARAMETERS
o $gid
- The group id.
RETURN VALUES
The array elements returned are:
The group information array
+--------+---------------------------------------------------+
|Element | |
| | |
| | Description |
| | |
+--------+---------------------------------------------------+
| name | |
| | |
| | The name element contains the name of the group. |
| | This is a short, usually less than 16 character |
| | "handle" of the group, not the real, full name. |
| | |
|passwd | |
| | |
| | The passwd element contains the group's password |
| | in an encrypted format. Often, for example on a |
| | system employing "shadow" passwords, an asterisk |
| | is returned instead. |
| | |
| gid | |
| | |
| | Group ID, should be the same as the $gid parame- |
| | ter used when calling the function, and hence |
| | redundant. |
| | |
|members | |
| | |
| | This consists of an array of string's for all |
| | the members in the group. |
| | |
+--------+---------------------------------------------------+
EXAMPLES
Example #1
Example use of posix_getgrgid(3)
<?php
$groupid = posix_getegid();
$groupinfo = posix_getgrgid($groupid);
print_r($groupinfo);
?>
The above example will output something similar to:
Array
(
[name] => toons
[passwd] => x
[members] => Array
(
[0] => tom
[1] => jerry
)
[gid] => 42
)
SEE ALSO
posix_getegid(3), posix_getgrnam(3), filegroup(3), stat(3), safe_mode_gid, POSIX man page GETGRNAM(3).
PHP Documentation Group POSIX_GETGRGID(3)