10 More Discussions You Might Find Interesting
1. AIX
Hi Everyone,
We are encountering the following issue on AIX 5.3. When we do ls -ltr the list displays only user id and group id instead of user name and group name.
This is happening for all users except root. Whe we do ls -ltr with root user it shows perfectly fine.
When we searched... (25 Replies)
Discussion started by: madhav.kunapa
25 Replies
2. 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
3. UNIX for Dummies Questions & Answers
Present
/home/dsadm# id dsadm
uid=0(root) gid=0(root)
----------------------------------
needs to be
/home/dsadm> id dsadm
uid=23186(dsadm) gid=16284(gdstage)
Please provide the command/steps for the above uid, gid value change
Thanks in advance for all your support .
... (3 Replies)
Discussion started by: sridhardwh
3 Replies
4. Shell Programming and Scripting
Hi,
I am new to scrippting need little help, I would like to change uid, gid of exisisting user,
example
User A current uid=1,gid=2 would like to change uid=4,gid=5
I know the command to change uid,gid but after changing I have to change permissions on folders also which are belonging... (3 Replies)
Discussion started by: manoj.solaris
3 Replies
5. UNIX for Advanced & Expert Users
We had a mapping to one UNIX box just fine, the server was changed to another UNIX box and now when mapping drives from Windows box to new UNIX box, we get the old GID associated with our Windows user. When checking on new UNIX box, we see GID of 108, which is what we want, but when we map the... (0 Replies)
Discussion started by: bd4021
0 Replies
6. AIX
Checking configuration access files for an AIX server, left me wondering about this :confused::
If a user is added to system group, it gets gid=0 with some security risks because it gets some root kind of file access level.
Is this insecure condition kept if the user has admin variable... (0 Replies)
Discussion started by: bkiddo
0 Replies
7. AIX
Hi Friends,
I am trying to write a script for finding all the users with the GID 0 i.e. Admin users. can you please help me on this. (1 Reply)
Discussion started by: anoopraok
1 Replies
8. UNIX for Advanced & Expert Users
Hi,
can somebody tell me how to make directoriy in which all files will be generated as dir owner ?
I'm able to add GID for directory group and files have group id like folder , but when i do same for user files still are created as user which creates them :(
drwsrwsrwx 2 flexbul ... (2 Replies)
Discussion started by: pp56825
2 Replies
9. Shell Programming and Scripting
Dear Folks :-)
I want to rsync some files between some servers and preserve files owner and group (not UID or GID), in some machines UID and GID are differents, for example:
a) In the rsync server:
# stat vbseo.php
File: `vbseo.php'
Size: 26758 Blocks: 56 IO... (1 Reply)
Discussion started by: Santi
1 Replies
10. Shell Programming and Scripting
Hello,
I want to write a ksh script about changing UID and changing group with GID. There are multiple servers i want to perform that job.
linux1
linux2
linux3
linux4
linux5 ......
.
.
.
.
.
1.) How can i enter "password" in script rather asking me?
I was trying this...
ssh... (2 Replies)
Discussion started by: deal732
2 Replies
DPNS_GETIDMAP(3) DPNS Library Functions DPNS_GETIDMAP(3)
NAME
dpns_getidmap - get virtual uid/gid(s) associated with a given dn/role(s)
SYNOPSIS
#include <sys/types.h>
#include "dpns_api.h"
int dpns_getidmap (const char *username, int nbgroups, const char **groupnames, uid_t *userid, gid_t *gids)
int dpns_getidmapc (const char *username, const char *user_ca, int nbgroups, const char **groupnames, uid_t *userid, gid_t *gids)
DESCRIPTION
dpns_getidmap gets the virtual uid/gid(s) associated with a given dn/role(s). If the dn or any of the roles does not exist yet in the
Database an entry is added to the mapping table.
username
specifies the user name (dn). It must be at most 255 characters long.
user_ca
specifies the CA from the user proxy. It must be at most 255 characters long.
nbgroups
is the number of group names.
groupnames
is the address of an array of group names (vo/role). Each group name must be at most 255 characters long. This pointer can be
NULL. In this case the vo is obtained from a static mapping file.
userid specifies the address of a buffer to receive the Virtual User Id.
gids specifies the address of a buffer to receive the Virtual Group Ids. It must be big enough to receive nbgroups group ids, but at
least one group id in case nbgroups is zero.
RETURN VALUE
This routine returns 0 if the operation was successful or -1 if the operation failed. In the latter case, serrno is set appropriately.
ERRORS
ENOMEM Memory could not be allocated in the server to receive the group names or to send back the gids.
EACCES One of username, user_ca or the primary (first) group is banned.
EFAULT username, userid or gids is a NULL pointer.
EINVAL nbgroups is negative or the length of username, user_ca or of one of the group names exceeds 255.
SENOSHOST Host unknown.
SENOSSERV Service unknown.
SECOMERR Communication error.
SENOMAPFND DISABLEAUTOVIDS is set and username or one of the groups does not exist.
ENSNACT Name server is not running or is being shutdown.
DPNS
$Date: 2010-08-04 09:58:47 +0200 (Wed, 04 Aug 2010) $ DPNS_GETIDMAP(3)