Sponsored Content
Full Discussion: "Synchronize" users/groups
Operating Systems HP-UX "Synchronize" users/groups Post 302604699 by botao on Monday 5th of March 2012 05:41:10 PM
Old 03-05-2012
Java

Quote:
Originally Posted by KickstartUF
Thanks for the response.

The most important bit (that I'm having trouble with) is the one way, non-destructive, sync of usernames, numeric user ids (so that NFS mounts have no issues), passwords, and group memberships. The home directories and files are a much lesser concern.
- I think you should have in mind that wherever NFS is used, "the right UID" is always the major concern - and THAT's why NIS was invented in the first place (then NIS+ and now we use LDAP) ;

- if you have a legacy environment where NFS was deployed without taking the various UID into account - then ... sorry - you're doomed. Smilie

- but if you have a chance to do a fresh setup, then REMEMBER :

1) every username MUST have the same UID on ALL servers suitable to NFS perusal ;
2) it does not matter if you will accomplish this task 'manually' or thru NIS/NIS+/LDAP - the choice will only change the amount of work to see it done ;

It's all I have to say about that Smilie

HTH

good luck, and success !

_________________________________________
alexandre botao ( progsmith, polymath, ideator )
"comets never dodge"
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Limit "exploring" from users/groups

I have a unix box which runs as a webserver and ftp server. I have a user account for a friend and while I trust him, I noticed that he can view directories above his own "web" folder which is his default directory. I'm still trying to understand users/groups and privileges so bear with me if... (2 Replies)
Discussion started by: creyc
2 Replies

2. UNIX for Dummies Questions & Answers

Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`"

Hi Friends, Can any of you explain me about the below line of code? mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'` Im not able to understand, what exactly it is doing :confused: Any help would be useful for me. Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies

3. Shell Programming and Scripting

cat $como_file | awk /^~/'{print $1","$2","$3","$4}' | sed -e 's/~//g'

hi All, cat file_name | awk /^~/'{print $1","$2","$3","$4}' | sed -e 's/~//g' Can this be done by using sed or awk alone (4 Replies)
Discussion started by: harshakusam
4 Replies

4. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

5. Solaris

The slices "usr", "opt", "tmp" disappeared!!! Help please.

The system don't boot. on the screen appears following: press enter to maintenance (or type CTRL-D to continue)...I checked with format command. ... the slices "0-root","1-swap","2-backup" exist. ...the slises "3-var","6-usr" -unassigned. :( (16 Replies)
Discussion started by: wolfgang
16 Replies

6. Post Here to Contact Site Administrators and Moderators

Suggestion: adding two new groups "sed" and "awk"

Majority of the questions are pertaining file/string parsing w.r.t sed or awk It would be nice to have these two as their own sub category under shell-programming-scripting which can avoid lot of duplicate posts. (1 Reply)
Discussion started by: jville
1 Replies

7. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

8. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies

9. AIX

Apache 2.4 directory cannot display "Last modified" "Size" "Description"

Hi 2 all, i have had AIX 7.2 :/# /usr/IBMAHS/bin/apachectl -v Server version: Apache/2.4.12 (Unix) Server built: May 25 2015 04:58:27 :/#:/# /usr/IBMAHS/bin/apachectl -M Loaded Modules: core_module (static) so_module (static) http_module (static) mpm_worker_module (static) ... (3 Replies)
Discussion started by: penchev
3 Replies
group(4)						     Kernel Interfaces Manual							  group(4)

NAME
group - Group file DESCRIPTION
The /etc/group database contains the following information for each group: Group name Encrypted password Numerical group ID A comma-sepa- rated list of all users allowed in the group Note: Do not put any spaces between a comma and a username; otherwise, the username following the comma will not be made a part of the desired group. The /etc/group file is an ASCII file, with the fields separated by colons. Each group is separated from the next by a new line. If the password field is null, no password is demanded. Because of the encrypted passwords, it can and does have general read permission and can be used, for example, to map numerical group IDs to names. Note that commands or scripts used for adding users to groups are subject to the 225 character limit on line lengths. However, you can split lines as appropriate. RESTRICTIONS
Increasing the number of groups that a user is in beyond 16 can affect services that use ONC RPC. Tru64 UNIX ONC RPC supports up to 32 groups for compatibility with ULTRIX Version 4.2 and higher. Other vendors may support only 16 groups. ULTRIX versions before 4.2 support up to 8 groups. Users who increase their group membership beyond 8 or 16 groups will not be able to NFS mount file systems from servers that only support 8 or 16 groups over NFS. In addition, if root group membership is increased beyond 8 or 16, the NIS service will not work in a mixed NIS server environment where the servers support only 8 or 16 groups. The addgroup command limits the length of a group name to eight characters or less. FILES
/etc/group RELATED INFORMATION
Commands: addgroup(8), groupadd(8), adduser(8), groups(1), passwd(1) Functions: setgroups(2) Routines: initgroups(3) Files: passwd(4) delim off group(4)
All times are GMT -4. The time now is 05:57 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy