Sponsored Content
Operating Systems Linux Red Hat Accidentally changed ownership-unable to SSH into server. Post 302798917 by bitlord on Thursday 25th of April 2013 10:17:49 AM
Old 04-25-2013
I would setup a program like monit, or conary. Basically these are programs that will set file permissions or setting back to what they are where. If your core files are changed from the baseline, then it will email you. If you have it set up it will change them back after a certain time.
This User Gave Thanks to bitlord For This Post:
 

10 More Discussions You Might Find Interesting

1. Solaris

changed shell of the root accidentally

Hi All, I have changed the shell of the root accidentally to /sbin/bash :mad: How do I change that? :( To change that I need to go to ok prompt I think, and there I need to mount the root file system in order to make changes to the respective file. Can any one please suggest how do I do... (4 Replies)
Discussion started by: pintu_asim
4 Replies

2. UNIX for Advanced & Expert Users

/etc ownership was changed via chown

Hello all: I have a couple of boxes located in New York, both running SunOS 5.6. I, unfortunately, am located in Pittsburgh and do not have console access to these boxes. A co-worker was attempting to build a user account in one of these boxes, and mistakenly did a: chown username * ... (5 Replies)
Discussion started by: cdunavent
5 Replies

3. OS X (Apple)

I accidentally changed to only write permission on /usr/bin... please Help!

I accidentally changed to sudo chmod a=w to my /usr/bin folder on my macbook with OS 10.5.8... Please help! I can't even get into a terminal correctly cause it displays: -bash: uname: command not found -bash: cut: command not found -bash: uname: command not found -bash: cut: command not found... (6 Replies)
Discussion started by: scaryMac23
6 Replies

4. UNIX for Advanced & Expert Users

SuSE-11 Ownership of files having root got changed

Hi Experts, I have create a new user with uid and gid as 0 in SuSE-11 Server. After that all the files having root owner ship are showing as new user name as owner. If I login as root, and type 'id' command, it also shows the new user. Sample output from my server. host:~ # id uid=0(test)... (4 Replies)
Discussion started by: vipinable
4 Replies

5. Red Hat

unable to connect remote server using ssh

hi all i am unable to connect remote server using ssh but i am able to ping the server ssh service is running. (5 Replies)
Discussion started by: nikhil kasar
5 Replies

6. Emergency UNIX and Linux Support

Accidentally Changed File Ownership to Include a "Comment" [AIX]

Hi. I've had a little mishap. To cut a long story short, I've accidentally recursively ran chown on a directory (actually a bunch of 'em). Not a problem in itself, but I had a slight error in the code I used to get the list of directories and ended up with a comment in the file ownership. ... (15 Replies)
Discussion started by: Scott
15 Replies

7. Shell Programming and Scripting

Script to echo "File permissions or ownership changed from required " when accidentally changed.

Hi All, I have to work in the late nights some times for server maintenance and in a hurry to complete I am accidentally changing ownership or permission of directories :( which have similar names ( /var in root and var of some other directory ).:confused: Can some one suggest me with the... (1 Reply)
Discussion started by: shiek.kaleem
1 Replies

8. HP-UX

Unable to ssh to server in HP-UX.

Hello Experts, I'm Unable to ssh to server after killing few processes on /opt filesystems. Can you please help me to resolve this. (3 Replies)
Discussion started by: purushottamaher
3 Replies

9. UNIX for Advanced & Expert Users

Unable to ssh to remote server

Hi, I have two SunOs sparc servers mac1 and mac2. I have exchanged keys between them inorder to passwordless login ssh from mac1 to mac2. However, it is failing after authentication. Part of the debug is as below. Please suggest whats wrong and how do i fix that!! Note: i do not have... (1 Reply)
Discussion started by: mohtashims
1 Replies

10. AIX

Unable to ssh or login to AIX server

We are having occasional problems accessing some AIX servers. When this happens we cannot ssh to the server in question or login via HMC console terminal window. We can ssh some commands to the server and get responses but other commands just hang, ssh serverA date returns the date, ssh serverA... (5 Replies)
Discussion started by: Kierong
5 Replies
XtLoseSelectionProc()													     XtLoseSelectionProc()

Name
  XtLoseSelectionProc - interface definition for procedure to notify the selection owner it has lost selection ownership.

Synopsis
  typedef void (*XtLoseSelectionProc)(Widget, Atom *);
	 Widget w;
	 Atom *selection;

Inputs
  w	    Specifies the widget that has lost selection ownership.

  selection Specifies the atom that names the selection.

Description
  An XtLoseSelectionProc is optionally registered in a call to XtOwnSelection() and is called by the Intrinsics when the widget it was regis-
  tered with loses the selection because another widget or client has claimed the selection.  It is  not  called  when	the  selection	owner
  relinquishes	selection  ownership  with  XtDisownSelection().  This procedure should take whatever action is appropriate for the widget or
  application when it loses selection ownership.

  Note that this procedure is not a request to the widget to relinquish selection ownership; it is called after the widget has	already  lost
  the selection.

Usage
  Most selection owners (widgets or applications) will want to display selected data highlighted in some way, and so will need to be informed
  when they lose the selection so that they can unhighlight that data.

  An XtLoseSelectionIncrProc is a similar procedure type used by the Intrinsics incremental selection transfer mechanism.  It takes an	addi-
  tional client_data argument.

Example
  The XtLoseSelectionProc below is from the xcalc client.  It simply unhighlights the value currently shown in the calculator display.

     /*
      * called when xcalc loses ownership of the selection.
      */
     /*ARGSUSED*/
     void lose(w, selection)
	 Widget      w;
	 Atom	     *selection;
     {
	 XawToggleUnsetCurrent(LCD);
     }

See Also
  XtDisownSelection(1), XtGetSelectionValue(1), XtGetSelectionValueIncremental(1), XtOwnSelection(1),
  XtLoseSelectionIncrProc(2).

Xt - Selections 													     XtLoseSelectionProc()
All times are GMT -4. The time now is 06:45 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy