Sponsored Content
Full Discussion: Changing owner???
Top Forums UNIX for Dummies Questions & Answers Changing owner??? Post 302127017 by matrixmadhan on Monday 16th of July 2007 01:34:00 AM
Old 07-16-2007
Code:
chown newowner filename

man chown
 

10 More Discussions You Might Find Interesting

1. OS X (Apple)

Problem changing owner of symbolic links?

Strangely, chown and chmod don't seem to work on symlinks. In particular, I tried this (as root): # touch foo # ln -s foo mysymlink # chown SOMEUSER mysymlink as well as changing the last line to: # chown -h someuser mysymlink where "-h" is supposed to change the UID of the actualy... (1 Reply)
Discussion started by: noahcowan
1 Replies

2. UNIX for Advanced & Expert Users

Changing the process owner

How do I change the owner of the process in runtime.I'm working AIX. I would appreciate ,If I get sample scripts. (1 Reply)
Discussion started by: kkb_karthi
1 Replies

3. UNIX for Advanced & Expert Users

changing owner & grp of a file

Hi, I have a file in my system as below My user and grp id is sns / sns -rwxrwxrwx 1 sns sns 6012357 Sep 27 06:01 sample Is there a way to change the owner and grp of this file to app / app ... ie. as given below -rwxrwxrwx 1 app app 6012357 Sep 27 06:01 sample I guessed... (1 Reply)
Discussion started by: Sabari Nath S
1 Replies

4. Shell Programming and Scripting

Changing userID and Changing group and GID

Hello, I want to write a ksh script about changing UID and changing group with GID. There are multiple servers i want to perform that job. linux1 linux2 linux3 linux4 linux5 ...... . . . . . 1.) How can i enter "password" in script rather asking me? I was trying this... ssh... (2 Replies)
Discussion started by: deal732
2 Replies

5. Solaris

Changing owner

Hi, I own a file, when i try to change the owner of my file to other user it is throwing error like chown: changing ownership of `a.txt': Not owner my OS is sunOS 5.8 Thanks. (1 Reply)
Discussion started by: shahnazurs
1 Replies

6. Shell Programming and Scripting

change owner

Dear All, i have a file and i want to change the owner of that file from another user. for example $ ls -l pkc.txt -rw-r--r-- 1 tdmscrdr dba 717 Nov 2 17:10 pkc.txt the owner of pkc.txt file is tdmscrdr and group is dba i want to change the owner of this file from... (7 Replies)
Discussion started by: panknil
7 Replies

7. Solaris

Owner of file gets 'not owner' error for chgrp

Hi Folks, I know that changing users and groups is pretty basic admin, but this one has got me stumped. When I try to change the group of a file for which I am the owner for, it still gives me a 'Not owner' error. For example, when I am logged in as 'webadmin', I have the following file: ... (4 Replies)
Discussion started by: brizrobbo
4 Replies

8. UNIX for Advanced & Expert Users

How UNIX admin set up this? how files of 744 of other owner can be removed by another owner?

Hi all, We have some files are under 744 permissions and the the owner is say owner1 and group1. Now we have another user owner2 of group2, owner2 can remove files of the owner1 and the permission of those files are 744, unix admin told us he did some config at his side so we can do that. ... (14 Replies)
Discussion started by: TheGunMan
14 Replies

9. Solaris

Changing file/directory owner

Hi , I want to change owner of files or folder from 23186 to dsadm, Present ------- -rw-r--r-- 1 23186 gdstage 10240 Oct 31 2007 BLTRS drwxrwxrwx 3 23186 gdstage 512 Sep 1 2010 sql Required as ----------- -rw-r--r-- 1 dsadm gdstage 10240 Oct 31 2007 BLTRS drwxrwxrwx 3 dsadm gdstage... (6 Replies)
Discussion started by: sridhardwh
6 Replies

10. Solaris

Privileges : modify dir/file owner by other that's not owner

i need to do the following operations in solaris 10: 1.change owner and group owner for files which are not owned by the current user and user group 2.to can delete files in the /tmp directory which are not of the current user 3. allow to a standard user the deletion of files in the /tmp... (1 Reply)
Discussion started by: sirmark
1 Replies
XSetSelectionOwner(3X11)												  XSetSelectionOwner(3X11)

NAME
XSetSelectionOwner, XGetSelectionOwner, XConvertSelection - manipulate window selection SYNOPSIS
XSetSelectionOwner(display, selection, owner, time) Display *display; Atom selection; Window owner; Time time; Window XGetSelectionOwner(display, selection) Display *display; Atom selection; XConvertSelection(display, selection, target, property, requestor, time) Display *display; Atom selection, target; Atom property; Window requestor; Time time; ARGUMENTS
Specifies the connection to the X server. Specifies the owner of the specified selection atom. You can pass a window or None. Specifies the property name. You also can pass None. Specifies the requestor. Specifies the selection atom. Specifies the target atom. Specifies the time. You can pass either a timestamp or CurrentTime. DESCRIPTION
The XSetSelectionOwner function changes the owner and last-change time for the specified selection and has no effect if the specified time is earlier than the current last-change time of the specified selection or is later than the current X server time. Otherwise, the last- change time is set to the specified time, with CurrentTime replaced by the current server time. If the owner window is specified as None, then the owner of the selection becomes None (that is, no owner). Otherwise, the owner of the selection becomes the client executing the request. If the new owner (whether a client or None) is not the same as the current owner of the selection and the current owner is not None, the current owner is sent a SelectionClear event. If the client that is the owner of a selection is later terminated (that is, its connection is closed) or if the owner window it has specified in the request is later destroyed, the owner of the selection automatically reverts to None, but the last-change time is not affected. The selection atom is uninterpreted by the X server. XGetSelectionOwner returns the owner window, which is reported in SelectionRequest and SelectionClear events. Selections are global to the X server. XSetSelectionOwner can generate BadAtom and BadWindow errors. The XGetSelectionOwner function returns the window ID associated with the window that currently owns the specified selection. If no selec- tion was specified, the function returns the constant None. If None is returned, there is no owner for the selection. XGetSelectionOwner can generate a BadAtom error. XConvertSelection requests that the specified selection be converted to the specified target type: If the specified selection has an owner, the X server sends a SelectionRequest event to that owner. If no owner for the specified selection exists, the X server generates a Selec- tionNotify event to the requestor with property None. The arguments are passed on unchanged in either of the events. There are two predefined selection atoms: PRIMARY and SECONDARY. XConvertSelection can generate BadAtom and BadWindow errors. DIAGNOSTICS
A value for an Atom argument does not name a defined Atom. A value for a Window argument does not name a defined Window. SEE ALSO
Xlib -- C Language X Interface XSetSelectionOwner(3X11)
All times are GMT -4. The time now is 05:38 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy