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)
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)
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)
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)
hai,
I am new to Unix, I have a requirement to display owner name , directory or sub directory name, who's owner name is not equal to "oasitqtc".
(here "oasitqtc" is the owner of the directory or sub directory.)
i have a command (below) which will display all folders and sub folders, but i... (6 Replies)
Would the owner as listed , be the one who made the directory in the first place. when any one could use chown in a script.
I do not know where this directory came form or who made it. And am attempting to just find out more info on it.
what could i use to find its origins and its why does it... (3 Replies)
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)
Hi.
My example:
I have a filesystem /log. Everyday, log files are copied to /log. I'd like to set owner and permission for files and directories in /log like that
chown -R log_adm /log/*
chmod -R 544 /log/*It's OK, but just at that time. When a new log file or new directory is created in /log,... (8 Replies)
Discussion started by: bobochacha29
8 Replies
LEARN ABOUT ULTRIX
xconvertselection
XSetSelectionOwner(3X11) MIT X11R4 XSetSelectionOwner(3X11)Name
XSetSelectionOwner, XGetSelectionOwner, XConvertSelection - manipulate window selection
Syntax
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
display Specifies the connection to the X server.
owner Specifies the owner of the specified selection atom. You can pass a window or
property Specifies the property name. You also can pass
requestor Specifies the requestor.
selection Specifies the selection atom.
target Specifies the target atom.
time Specifies the time. You can pass either a timestamp or
Description
The 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 replaced by the current server time. If the owner window is specified as then the owner of the selection becomes
(that is, no owner). Otherwise, the owner of the selection becomes the client executing the request.
If the new owner (whether a client or is not the same as the current owner of the selection and the current owner is not the current owner
is sent a 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 but the last-change time is
not affected. The selection atom is uninterpreted by the X server. returns the owner window, which is reported in and events. Selections
are global to the X server.
can generate and errors.
The function returns the window ID associated with the window that currently owns the specified selection. If no selection was specified,
the function returns the constant If is returned, there is no owner for the selection.
can generate a error.
requests that the specified selection be converted to the specified target type:
o If the specified selection has an owner, the X server sends a event to that owner.
o If no owner for the specified selection exists, the X server generates a event to the requestor with property
The arguments are passed on unchanged in either of the events. There are two predefined selection atoms: PRIMARY and SECONDARY.
can generate and 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
X Window System: The Complete Reference, Second Edition, Robert W. Scheifler and James Gettys
XSetSelectionOwner(3X11)