Sponsored Content
Full Discussion: Reversing UID's
Top Forums UNIX for Dummies Questions & Answers Reversing UID's Post 66726 by reborg on Wednesday 16th of March 2005 06:36:37 PM
Old 03-16-2005
yes,

It depends how your server is configured (NIS, NIS+ ...)

user to group mapping is in
/etc/group
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

reversing a list

Hi Everyone, I am reading in a list of IDs from a file that is is chronological order. My current code in simplified form looks like this (ksh by the way) IDS=`awk -F\| '{print $1}' inputfile.txt` for i in $IDS do do various things with that ID done ... (8 Replies)
Discussion started by: TioTony
8 Replies

2. Shell Programming and Scripting

output string in reversing order

If I have string { I_love_shell_scripts} anyone knows how to have output {stpircs_llehs_evol_I} by using shell and perl ?I know in perl, there is reverse() funcation, but can it be done by not using reverse()? (3 Replies)
Discussion started by: ccp
3 Replies

3. Shell Programming and Scripting

awk and reversing

Hello I'm writing script in awk that reverse order the fields of every line in file. My script have problem with spaces - if there is more spaces between fields in line of file - my script erase them . I want my script work like command "tac" - how to change it ? #!/bin/sh file=$1... (1 Reply)
Discussion started by: scotty_123
1 Replies

4. Shell Programming and Scripting

Reversing file order using SED

Im trying to develop a shell script that will change the content order of the file. For example I have a file that says a b c d I want to change this to be d c b a Im trying to use sed to this by reading the file and then inserting each line at the top #!/usr/bin/ksh ... (3 Replies)
Discussion started by: MBGPS
3 Replies

5. Shell Programming and Scripting

reading and reversing a string

Hi Everyone....I am new to Unix and BASH programming...I just want to read a string and reverse it and display.....can anyone help me out???? (8 Replies)
Discussion started by: nikhilneela
8 Replies

6. Shell Programming and Scripting

reversing a line

Hi, I could not find this anywhere and I am wondering if someone knows a quick way of doing this. So heres the problem... I have a row that looks like this (an example): 5 4 3 2 1 What I want to do is reverse it so it looks like this: 1 2 3 4 5 Does anyone know the simple unix... (7 Replies)
Discussion started by: kylle345
7 Replies

7. Shell Programming and Scripting

Need help reversing this code

ssh servername.com "echo /$APP=$BUSIN >> $URI; echo /$APP/*=$BUSIN >> $URI" Ok for example here i ssh into a example servername.com, and I think what it does some line gets put into the urifile , my question is, how would i go about removing that in a script. in summary, the above code is... (3 Replies)
Discussion started by: new2learn09
3 Replies

8. Shell Programming and Scripting

reversing order of lines in a file

how can i reverse the line order in text files? (but total number of the lines is not constant ) for example i have a file like this: line1 line2 line3 . . lineN i wantto make it like this: lineN . . . line3 (26 Replies)
Discussion started by: gfhgfnhhn
26 Replies

9. Shell Programming and Scripting

reversing multiple lines

Hi I want to reverse multiple lines from my file eg of File1 3 4 5 6 7 8 9 a b c d e f g h I am using this code to reverse lines but it can only work with one row awk -F'\t' '{while (NF){printf("%s%s", $(NF--),!NF?"":FS)}}' File1 > File2 I want the file to look like this 9 8 7 6 5 4... (2 Replies)
Discussion started by: phil_heath
2 Replies

10. Shell Programming and Scripting

Reversing a line based on column

Hi, I have a file that looks like this (tab seperated): read - DFHJ read1 - IOPE read2 + AAAB read3 + MMMN Basically what i want to do is reverse column 3 if column 2 has a - but leave it if its + so the output would look like this: read - JHFD read1 - EPOI read2 + AAAB... (3 Replies)
Discussion started by: kylle345
3 Replies
group(4)						     Kernel Interfaces Manual							  group(4)

NAME
group, logingroup - group file, grp.h DESCRIPTION
contains for each group the following information: o group name o encrypted password o numerical group ID o comma-separated list of all users allowed in the group The file is an ASCII file. Fields are separated by colons, and each group is separated from the next by a new-line. No spaces should sep- arate the fields or parts of fields on any line. If the password field is null, no password is associated with the group. There are two files of this form in the system, and The file exists to supply names for each group, and to support changing groups by means of the utility (see newgrp(1)). provides a default group access list for each user via and (see login(1) and initgroups(3C)). The real and effective group ID set up by for each user is defined in (see passwd(4)). If is empty, the default group access list is empty. If and are links to the same file, the default access list includes the entire set of groups associated with the user. The group name and password fields in are never used; they are included only to give the two files a uniform format, allowing them to be linked together. All group IDs used in or should be defined in These files reside in directory Because of the encrypted passwords, these files can and do have general read permission and can be used, for example, to map numerical group IDs to names. The group structure is defined in and includes the following members: NETWORKING FEATURES
NIS The file can contain a line beginning with a plus which means to incorporate entries from Network Information Services (NIS). There are two styles of entries: means to insert the entire contents of NIS group file at that point, and means to insert the entry (if any) for name from NIS at that point. If a entry has a non-null password or group member field, the contents of that field overide what is contained in NIS. The numerical group ID field cannot be overridden. A group file can also have a line beginning with a minus these entries are used to disallow group entries. There is only one style of entry; an entry that consists of means to disallow any subsequent entry (if any) for name. These entries are disallowed regardless of whether the subsequent entry comes from the NIS or the local group file. WARNINGS
Group files must not contain any blank lines. Blank lines can cause unpredictable behavior in system administration software that uses these files. Group ID (gid) 9 is reserved for the Pascal Language operating system and the BASIC Language operating system. These are operating systems for Series 300/400 computers that can co-exist with HP-UX on the same disk. Using this gid for other purposes can inhibit file transfer and sharing. The length of each line in is limited to as defined in Because of this limit, users should not be listed in their primary group - only in their additional groups. If is linked to group membership for a user is managed by NIS, and no NIS server is able to respond, that user cannot log in until a server does respond. There is no single tool available to completely ensure that and are compatible. However, and can be used to simplify the task (see pwck(1M)). There is no tool for setting group passwords in DEPENDENCIES
NIS Here is a sample file: Group has a gid of 1 and members and The group is ignored since it appears after the entry Also, the group has members and and the password and group ID of the NIS entry for the group All groups listed in the NIS are pulled in and placed after the entry for The plus and minus features are part of NIS. Therefore if NIS is not installed, these features cannot work. FILES
SEE ALSO
groups(1), newgrp(1), passwd(1), setgroups(2), crypt(3C), getgrent(3C), initgroups(3C), passwd(4). STANDARDS CONFORMANCE
group(4)
All times are GMT -4. The time now is 04:43 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy