Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Where does id / getent query ? Post 302730715 by MaindotC on Tuesday 13th of November 2012 01:31:35 PM
Old 11-13-2012
Where does id / getent query ?

I'm typing "id <user's id>" and its returning a different UID that what is defined in our administration system. Where does id / getent query and where is it configured to query? I'm guessing it queries the local /etc/passwd file first, and then if it doesn't find anything it would query LDAP correct?
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

query.....

hi friends i want to know details of `exec` exact use of this command ..... actually i went through the man page but i didn`t get the satisfactory ...conclusion.... thaks in advance.... (1 Reply)
Discussion started by: newson
1 Replies

2. UNIX for Dummies Questions & Answers

Need Help on query

I just started to learn unix - need help to write a script to query a logfile and produce the results that contains a specific word "alarm" for a period from X day to Y day. I really have no idea how to begin - :( please help... ____________________________________________________ #... (1 Reply)
Discussion started by: snipfer
1 Replies

3. Shell Programming and Scripting

add the output of a query to a variable to be used in another query

I would like to use the result of a query in another query. How do I redirect/add the output to another variable? $result = odbc_exec($connect, $query); while ($row = odbc_fetch_array($result)) { echo $row,"\n"; } odbc_close($connect); ?> This will output hostnames: host1... (0 Replies)
Discussion started by: hazno
0 Replies

4. Shell Programming and Scripting

Query Oracle tables and return values to shell script that calls the query

Hi, I have a requirement as below which needs to be done viz UNIX shell script (1) I have to connect to an Oracle database (2) Exexute "SELECT field_status from table 1" query on one of the tables. (3) Based on the result that I get from point (2), I have to update another table in the... (6 Replies)
Discussion started by: balaeswari
6 Replies

5. Shell Programming and Scripting

want to query : YES or NO

hi i want to make script. where i want to query from the user yes or no exp: do you want to proceed : y for yes n for NO. how this is possible in unix (3 Replies)
Discussion started by: dodasajan
3 Replies

6. UNIX for Dummies Questions & Answers

Query

Hi, I have a script to remove null values from a file. Could any one explain how this is working? :confused: while read f do echo process $f gawk... (0 Replies)
Discussion started by: abhi_n123
0 Replies

7. Shell Programming and Scripting

Shell Script to execute Oracle query taking input from a file to form query

Hi, I need to query Oracle database for 100 users. I have these 100 users in a file. I need a shell script which would read this User file (one user at a time) & query database. For instance: USER CITY --------- ---------- A CITY_A B CITY_B C ... (2 Replies)
Discussion started by: DevendraG
2 Replies

8. Solaris

getent not working, solaris 10 only

Hello, thanks in advance for any help! We use LDAP for our unix boxes When I run getent passwd on solaris 10, it only returns some of the ldap entries, not all. Aprox 300 of 4000. When i run the same command on linux or solaris 9, it comes back correct. my nsswitch file is good. I ran a... (6 Replies)
Discussion started by: BG_JrAdmin
6 Replies

9. Shell Programming and Scripting

getent hosts

korn shell script on Solaris getent hosts <hostname> returns IP FQDN But I just want the output to be like this <hostname> IP things I have tried so far getent hosts <hostname> |awk '{print $2,$1}' using awk and substr getent hosts <hostname> |nawk '{print substr($2,1,5)}' ... (1 Reply)
Discussion started by: snoman1
1 Replies
prompter(1mh)															     prompter(1mh)

Name
       prompter - prompting editor front-end

Syntax
       prompter [ options ] file

Description
       The editor is a rudimentary editor provided by and It is automatically called by the above commands; you do not need to specify it.

       The editor allows rapid composition of messages.  It is particularly useful to network and low-speed (less than 2400 baud) users of MH.

       The editor is an MH program.  Although is not invoked directly, it can have its own profile entry with options; see The and commands invoke
       in one of three ways: when invoked with the -editor prompter option; by an entry in the file; or by a command at the What now? prompt.	If
       you do not specify an editor in any of these ways, MH provides as the default editor for all of these commands.

       For information on how to use a different editor with MH commands, see the reference pages for the appropriate commands, and also

   Composing a Message with prompter
       When  you  create  a message with an MH command, the mail system provides a message template for you to fill in.  This template consists of
       two parts: the message header, comprising a number of header fields; and the body of the message, which is the area where you type the text
       of your message.

       The  editor  displays  each header field, one at a time, for you to fill in.  Fill in the component by typing the text that you want.  Type
       <RETURN> to move onto the next component.  Once you have moved on from a header field, you cannot edit what you have entered.

       If you want to leave a header field empty, simply type <RETURN>.  You can continue a header field over one line by typing a back-slash  ()
       before the <RETURN>.  Continuation lines must start with a blank (a space or a tab).

       The  start  of  the message body is indicated by a blank line or a line of dashes.  If you are creating a new message, the cursor is placed
       beneath this line to allow you to enter text.  If there is already some body text in the message (for example, if you are using an existing
       draft, or if you are forwarding a message), you will receive a prompt:
	   --------Enter additional text
       or:
	   --------Enter initial text
       The cursor is placed under the prompt to allow you to enter text.

       To finish the message, type <CTRL/D>.  You will then receive a prompt asking What now?.	See for more details of responses.

       An  interrupt,  usually	<CTRL/C>, during component typing will abort and the MH command that invoked it.  An interrupt during message-body
       typing is equivalent to <CTRL/D>, for historical reasons.

Options
       -prepend
       -noprepend
		 Adds text to the beginning of the message body, so that the rest of the body follows.	This is useful for the command.   You  can
		 suppress this behavior by using the -noprepend option.

       -rapid
       -norapid  Causes  the text not to be displayed on your terminal if the draft already contains text in the message-body.	This is useful for
		 low-speed terminals.  You can suppress this behavior by using the -norapid option.

       -erase char
		 Specifies the line-editing characters, where char may be a character or 
nn, where nnn is the octal value for the character.

       -kill char
		 Specifies the line-editing characters, where char may be a character or 
nn, where nnn is the octal value for the character.

       The first argument to which is not an option is taken as the name of the draft file, and subsequent non-flag arguments are ignored.

       The default settings for are:

	      -prepend
	      -norapid

Restrictions
       The editor uses therefore do not edit files with nulls in them.

Profile Components
       prompter-next:	To name the editor to be used on exit from prompter
       Msg-Protect:	To set protections when creating a new draft

Files
       The user profile.

       Temporary copy of message.

See Also
       capsar(1), comp(1mh), dist(1mh), forw(1mh), repl(1mh), whatnow(1mh), stdio(3s), mh_profile(5mh)

																     prompter(1mh)
All times are GMT -4. The time now is 02:20 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy