Sponsored Content
Full Discussion: UID Change
Operating Systems AIX UID Change Post 41358 by mcateriny on Friday 3rd of October 2003 06:19:43 PM
Old 10-03-2003
UID Change

Currently, I have about 7 servers and the uid for a given person is different on each server. I want to make the uid's the same for a given username on each server. I know how to change the uid via smit, but when I do the previous uid number shows up as the owner for the files of that username. Does anyone have any idea how I can also change the uid at the file level? For example:

Before changing the uid...
-rw------- 1 username staff 3726 Oct 03 13:10 testfile

After changing the uid... There are thousands of files where the uid does not change.
-rw------- 1 211 staff 3726 Oct 03 13:10 testfile

Instead of uid of 211 I want to see the username.

Suggestions are greatly appreciated.
Mario
 

10 More Discussions You Might Find Interesting

1. AIX

UID not to be reused

Hello I want to find out how I can make sure in AIX that the UIDs cannot be reused Until after 6 Months after the user has left. Thanks, Noori (4 Replies)
Discussion started by: noori
4 Replies

2. Shell Programming and Scripting

NIS User UID Change

Hi All, I need to change the UID numbers of many NIS users, is there any command to modify the UID in NIS maps ? ( like usermod) so that their file permissions will be same even with their new UID. If not, how to check all the files owned by particular user in a computer and change the... (1 Reply)
Discussion started by: RAA
1 Replies

3. Shell Programming and Scripting

Shall I go for uid or ppid?

Hi Guys, I'd like to ask your advice on the following, I've written this script to terminate a given process by name: #!/bin/bash echo 'Please enter the process you wish to terminate' read process pid=$(pidof $process) kill -9 $pid echo $2 to make it safer I want it to reject the... (4 Replies)
Discussion started by: Lora Graham
4 Replies

4. Shell Programming and Scripting

uid script help

i need a script to process a password file and based on the UIDs in the password file, generate the new UID that is 1 greater than the highest uid. i have some script logic but i dont really understand it. any help? #!/usr/bin/perl ########################################## #... (3 Replies)
Discussion started by: livewire06
3 Replies

5. Shell Programming and Scripting

UId

is tty command opens a process in the system if yes then why process got the userid????? (5 Replies)
Discussion started by: Mac91
5 Replies

6. UNIX for Dummies Questions & Answers

Duplicated UID

Hi folks! I need you help to discover what's the impact of a duplicated UID in an operating system. What's the meaning when someone put in different users the same UID? (3 Replies)
Discussion started by: phcostabh
3 Replies

7. AIX

More than 1 UID 0

Hi, Can any one please tell what are the risks of having more than one users having UID 0 (root)? Thanks Naveed (9 Replies)
Discussion started by: naveedaix
9 Replies

8. UNIX for Dummies Questions & Answers

uid ,gid value change

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

9. Solaris

UID Admin

Hi All, I have to give permission to one of the groups called as "ABC" as like the permissions of the group "UNIXADM". Could you please some one help on this issue ? (3 Replies)
Discussion started by: ramareddi16
3 Replies

10. AIX

Unable to change uid to 0

Hi Friends, I have created a new user "admin". I would like to use it as root equivalent (can change root password). Now, I want to give uid=0 and gid=0 to act as root. can you help? usermod command is not updating uid. /etc/passwd: root:!:0:0::/:/usr/bin/ksh... (6 Replies)
Discussion started by: suresh3566
6 Replies
MrmOpenHierarchy(3X)													      MrmOpenHierarchy(3X)

NAME
MrmOpenHierarchy - Allocates a hierarchy ID and opens all the UID files in the hierarchy SYNOPSIS
#include <Mrm/MrmPublic.h> Cardinal MrmOpenHierarchy(num_files, file_names_list, ancillary_structures_list, hierarchy_id) MrmCount num_files; String file_names_list[]; MrmOsOpenParamPtr *ancillary_structures_list; MrmHierarchy *hierarchy_id; DESCRIPTION
This routine is obsolete and exists for compatibility with previous releases. It is replaced by MrmOpenHierarchyPerDisplay. MrmOpenHierar- chy is identical to MrmOpenHierarchyPerDisplay except that MrmOpenHierarchy does not take a display argument. Specifies the number of files in the name list. Specifies an array of character strings that identify the UID files. A list of operating-system-dependent ancil- lary structures corresponding to such things as filenames, clobber flag, and so forth. This argument should be NULL for most operations. If you need to reference this structure, see the definition of MrmOsOpenParamPtr in <MrmPublic.h> for more information. Returns the search hierarchy ID. The search hierarchy ID identifies the list of UID files that MRM searches (in order) when performing subsequent fetch calls. Each UID file string in file_names_list can specify either a full pathname or a filename. If a UID file string has a leading slash (/), it specifies a full pathname, and MRM opens the file as specified. Otherwise, the UID file string specifies a filename. In this case MRM looks for the file along a search path specified by the UIDPATH environment variable or by a default search path, which varies depending on whether or not the XAPPLRESDIR environment variable is set. The UIDPATH environment variable specifies a search path and naming conventions associated with UID files. It can contain the substitution field %U, where the UID file string from the file_names_list argument to MrmOpenHierarchyPerDisplay is substituted for %U. It can also con- tain the substitution fields accepted by XtResolvePathname. The substitution field %T is always mapped to uid. The entire path is first searched with %S mapped to .uid and then, if no file is found, is searched again with %S mapped to NULL. If no display is set prior to calling this function, the result of this function's call to XtResolvePathname is undefined. For example, the following UIDPATH value and MrmOpenHierarchy call cause MRM to open two separate UID files: UIDPATH=/uidlib/%L/%U.uid:/uidlib/%U/%L static char *uid_files[] = {"/usr/users/me/test.uid", "test2"}; MrmHierarchy *Hierarchy_id; MrmOpenHierarchy((MrmCount)2,uid_files, NULL, Hierarchy_id) MRM opens the first file, /usr/users/me/test.uid, as specified in the file_names_list argument to MrmOpenHierarchy, because the UID file string in the file_names_list argument specifies a full pathname. MRM looks for the second file, test2, first as /uidlib/%L/test2.uid and second as /uidlib/test2/%L, where the display's language string is substituted for %L. After MrmOpenHierarchy opens the UID hierarchy, you should not delete or modify the UID files until you close the UID hierarchy by calling MrmCloseHierarchy. If UIDPATH is not set but the environment variable XAPPLRESDIR is set, MRM searches the following pathnames: %U%S $XAPPLRESDIR/%L/uid/%N/%U%S $XAPPLRESDIR/%l/uid/%N/%U%S $XAPPLRESDIR/uid/%N/%U%S $XAPPLRESDIR/%L/uid/%U%S $XAPPLRESDIR/%l/uid/%U%S $XAPPLRESDIR/uid/%U%S $HOME/uid/%U%S $HOME/%U%S /usr/lib/X11/%L/uid/%N/%U%S /usr/lib/X11/%l/uid/%N/%U%S /usr/lib/X11/uid/%N/%U%S /usr/lib/X11/%L/uid/%U%S /usr/lib/X11/%l/uid/%U%S /usr/lib/X11/uid/%U%S /usr/include/X11/uid/%U%S If neither UIDPATH nor XAPPLRESDIR is set, MRM searches the following pathnames: %U%S $HOME/%L/uid/%N/%U%S $HOME/%l/uid/%N/%U%S $HOME/uid/%N/%U%S $HOME/%L/uid/%U%S $HOME/%l/uid/%U%S $HOME/uid/%U%S $HOME/%U%S /usr/lib/X11/%L/uid/%N/%U%S /usr/lib/X11/%l/uid/%N/%U%S /usr/lib/X11/uid/%N/%U%S /usr/lib/X11/%L/uid/%U%S /usr/lib/X11/%l/uid/%U%S /usr/lib/X11/uid/%U%S /usr/include/X11/uid/%U%S These paths are defaults that vendors may change. For example, a vendor may use different directories for /usr/lib/X11 and /usr/include/X11. The following substitutions are used in these paths: The UID file string, from the file_names_list argument. The class name of the appli- cation. The display's language string. The language component of the display's language string. The suffix to the file name. The entire path is searched first with a suffix of .uil, and if no file is found, it is searched again with a NULL suffix. RETURN VALUES
This function returns one of these status return constants: The function executed successfully. File not found. The function failed. SEE ALSO
MrmOpenHierarchyPerDisplay(3X), MrmCloseHierarchy(3X) MrmOpenHierarchy(3X)
All times are GMT -4. The time now is 08:01 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy