Sponsored Content
Operating Systems Linux Ubuntu useradd - shell missing features after adding user Post 302356090 by mark54g on Thursday 24th of September 2009 12:54:02 PM
Old 09-24-2009
ownership should not need transferring when made with useradd especially if the -m switch is used.
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Who can help me how to add user without 'useradd' command

Can any one tell me if i dun want using 'useradd' command to add new user, it is have any command i can use to add a new user?and any extra step needed for my local environment? (3 Replies)
Discussion started by: foong
3 Replies

2. UNIX for Advanced & Expert Users

setting password for user using useradd?

hi all i am writing a script to create user and group from the input given to script for eg. script needs to values 1. mode - 1 or 2 2. id - if mode is 1 then id should be 2 char like x1 / v1 / v2 if mode is 2 then id should be 1 char like x / v / e from these to values group is... (1 Reply)
Discussion started by: zedex
1 Replies

3. UNIX for Dummies Questions & Answers

Shell features ???

Hi Can anybody explain the following shell features with example a) Command line editing b) filename completion c) job control (1 Reply)
Discussion started by: skyineyes
1 Replies

4. Shell Programming and Scripting

features of a new SHELL

Hello, My team and I planing to create a new shell. We are including features like handing the "command not found" exception, etc.... 1)Can you please give some suggestions on what do do while writing a new shell..... 2)can you please give me your problems with the existing shells..My... (15 Replies)
Discussion started by: nsharath
15 Replies

5. Linux

Linux- Useradd / sudo user

Hi, I am new in linux. Please help for create new user and also need to give sudo access in linux box. Please help me Now i am having new access Thanks, Mani (2 Replies)
Discussion started by: Mani_apr08
2 Replies

6. UNIX for Dummies Questions & Answers

Adding missing lines in file

Dear all, I have a file with two columns - the first column is increasing every 50, the second column is just count (e.g. 5). However, when count is zero, no line is present. Sample: 1950 7 2000 14 2050 7 2100 13 2150 10 2200 9 2250 7 2300 8 2350 7... (1 Reply)
Discussion started by: TheTransporter
1 Replies

7. UNIX for Dummies Questions & Answers

Adding missing lines in file

Dear all, I have a file with two columns - the first column is increasing every 50, the second column is just count (e.g. 5). However, when count is zero, no line is present. Sample: How can I change the file so as to include lines with zero count? e.g. in the previous file to put... (4 Replies)
Discussion started by: TheTransporter
4 Replies

8. Shell Programming and Scripting

Need help in adding missing tag in php pages

hi, I am still a newbie on ssh but trying hard. my friends website was hit by some virus which included a long encrypted malware code on each and every php file she had. I was able to use sed command via ssh to remove the malware codes but now most pages don't have a opening <?php tag. i... (8 Replies)
Discussion started by: netatma
8 Replies
XtOwnSelection()														  XtOwnSelection()

Name
  XtOwnSelection - make selection data available to other clients.

Synopsis
  Boolean XtOwnSelection(w, selection, time, convert_proc, lose_proc, done_proc)
	 Widget w;
	 Atom selection;
	 Time time;
	 XtConvertSelectionProc convert_proc;
	 XtLoseSelectionProc lose_proc;
	 XtSelectionDoneProc done_proc;

Inputs
  w	    Specifies the widget that wishes to become the owner.

  selection Specifies an atom that describes the type of the selection (usually XA_PRIMARY, or XA_SECONDARY).

  time	    Specifies the time when selection ownership should commence.  This should be the timestamp of the event that triggered ownership.
	    The value CurrentTime is not acceptable.

  convert_proc
	    Specifies the procedure to call whenever someone requests the current value of the selection.

  lose_proc Specifies the procedure to call when the widget loses selection ownership, or NULL if the owner is not interested in being called
	    back.

  done_proc Specifies the procedure to call after a transfer completes, or NULL if the owner is not interested in being called back.

Returns
  True if the widget successfully became the selection owner; False otherwise.

Description
  XtOwnSelection()  tells  the Intrinsics that as of time time widget w has data it would like to make available to other clients through the
  selection named by selection.  It registers three procedures with the Intrinsics atomic  data  transfer  mechanism:  convert_proc  will  be
  called  when	a  client  requests the selection; it must convert the selection data to the requested type.  lose_proc, if non-NULL, will be
  called when another widget or another client asserts ownership of the selection.  (It will not be called if the widget relinquishes  owner-
  ship	by  calling  XtDisownSelection() or if the widget fails to gain ownership in the first place.)	done_proc, if non-NULL will be called
  after the requesting client has received the data converted by convert_proc.

  XtOwnSelection() returns True if the widget has successfully become the owner and False otherwise.  The widget may fail to become the owner
  if  some  other widget has asserted ownership after this widget, as indicated by time.  Widgets can lose selection ownership either because
  another client more recently asserted ownership of the selection, or because the widget voluntarily gave up ownership of the selection with
  XtDisownSelection().

  If  done_proc  is  NULL,  then convert_proc must allocate memory for the transfer with one of the Intrinsics memory allocation routines, so
  that the Intrinsics can automatically free it.  If a non-NULL done_proc is specified, it is the responsibility of this  procedure  to  free
  any memory allocated by the convert_proc.

  See  XtConvertSelectionProc(2), XtLoseSelectionProc(2), and XtSelectionDoneProc(2), for information on how to write the procedures that are
  passed to this function.

Usage
  Note that XtOwnSelection() simply informs the Intrinsics that a widget would like to own the selection.  It is convert_proc  that  must  do
  the real work of transferring the selected data.

  Selection  ownership	is not restricted to widgets; an application can export data as well.  The widget argument to XtOwnSelection() serves
  mainly as a handle to be passed to the various procedures.  You can use any widget, but it will make the most sense to use the widget  that
  contains the data you will be exporting.

  XA_PRIMARY and XA_SECONDARY are symbolic names for predefined atoms.	They are defined in <X11/Xatom.h>.  You can export data over a custom
  selection, but if you do, only clients that know the selection name will be able to request the data.

  XtLastTimestampProcessed() is a convenient way to obtain a timestamp suitable for use as the time argument.

See Also
  XtDisownSelection(1), XtGetSelectionValue(1),
  XtConvertSelectionProc(2), XtLoseSelectionProc(2), XtSelectionDoneProc(2).

Xt - Selections 														  XtOwnSelection()
All times are GMT -4. The time now is 11:02 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy