Using your example UID and GID (multiplied by 100 just for my example): However we do hope that you are not actually changing the unix account with UID 1 because your system will probably stop working.
I have a truble with NFS mount.
When i mount remote dir, then all permissions changes!
For example:
# mkdir /data
# mount 10.1.1.100:/var/data /data
# ls -l /data
drwxr-xr-x 7 nobody nobody 5632 Oct 22 14:55 file1
drwxr-xr-x 4 nobody nobody 512 Oct 22 14:55... (4 Replies)
Dear Folks :-)
I want to rsync some files between some servers and preserve files owner and group (not UID or GID), in some machines UID and GID are differents, for example:
a) In the rsync server:
# stat vbseo.php
File: `vbseo.php'
Size: 26758 Blocks: 56 IO... (1 Reply)
Hi,
out of curosity this question just popped in my mind. Is there any way to find out the uid and gid of the running process ?
If i do a ls -l of a program then it shows the uid/gid bit (if its set). I want to see as which user/group the program is running ..... is there any way to know this... (2 Replies)
Hi,
can somebody tell me how to make directoriy in which all files will be generated as dir owner ?
I'm able to add GID for directory group and files have group id like folder , but when i do same for user files still are created as user which creates them :(
drwsrwsrwx 2 flexbul ... (2 Replies)
I´m listing the contents of a directory using the command
ls -lI get numeric uid and gid for some lines.
example:
drwxr-xr-x root root 1970-01-01 01:00 sys
-rw-r--r-- 501 20 0 2010-08-04 14:54 shutdown.bravo.rc
drwxr-x--- 501 20 ... (5 Replies)
Present
/home/dsadm# id dsadm
uid=0(root) gid=0(root)
----------------------------------
needs to be
/home/dsadm> id dsadm
uid=23186(dsadm) gid=16284(gdstage)
Please provide the command/steps for the above uid, gid value change
Thanks in advance for all your support .
... (3 Replies)
Hi Everyone,
We are encountering the following issue on AIX 5.3. When we do ls -ltr the list displays only user id and group id instead of user name and group name.
This is happening for all users except root. Whe we do ls -ltr with root user it shows perfectly fine.
When we searched... (25 Replies)
I would like to get an opinion for my solution for this task and get feedback about better approach or mistakes I have made.
1. The problem statement, all variables and given/known data:
The task is to create a script which prints information about users whose names are specified in the... (2 Replies)
OK, so simple question here:
Is there anyway to REMAP, while extracting with tar, specific uid's and gid's on extracted files ?
Background: The usual transfer between two servers with same literals username's names, but with different gid and uid. I would like, for example, files owned by... (6 Replies)
Discussion started by: fidodido
6 Replies
LEARN ABOUT DEBIAN
tree::simple::visitor::findbyuid
Tree::Simple::Visitor::FindByUID(3pm) User Contributed Perl Documentation Tree::Simple::Visitor::FindByUID(3pm)NAME
Tree::Simple::Visitor::FindByUID - A Visitor for finding an element in a Tree::Simple hierarchy by UID
SYNOPSIS
use Tree::Simple::Visitor::FindByUID;
# create a visitor object
my $visitor = Tree::Simple::Visitor::FindByUID->new();
# set the search path for our tree
$visitor->searchForUID("MyTreeUID");
# pass the visitor to a tree
$tree->accept($visitor);
# fetch the result, which will
# be the Tree::Simple object that
# we have found, or undefined
my $result = $visitor->getResult() || die "No Tree found";
DESCRIPTION
Given a UID and Tree::Simple hierarchy, this Visitor will attempt to find the node with the same UID.
METHODS
new There are no arguments to the constructor the object will be in its default state. You can use the "setNodeFilter",
"setTraversalMethod", "includeTrunk" and "searchForUID" methods to customize its behavior.
includeTrunk ($boolean)
Based upon the value of $boolean, this will tell the visitor to include the trunk of the tree in the search as well.
setTraversalMethod ($visitor)
By default we will use Tree::Simple's built in depth-first (pre-order) traverse method. If however, you desire the tree to be search in
a different ordering, this can be accomplished using a different traversal method, you can supply a $visitor object implementing that
traversal type to this method (See Tree::Simple::Visitor::BreadthFirstTraversal, Tree::Simple::Visitor::PreOrderTraversal and
Tree::Simple::Visitor::PostOrderTraversal).
searchForUID ($UID)
This is the UID we will attempt to find within the tree.
setNodeFilter ($filter_function)
This method accepts a CODE reference as its $filter_function argument and throws an exception if it is not a code reference. This code
reference is used to further check the tree nodes as they are searched and so can be used to customize search behavior. For instance,
you could to check against the UID as well as some other criteria. The filter function should accept a single argument, which is the
current Tree::Simple object and return either true(1) on success, or false(0) on failure.
visit ($tree)
This is the method that is used by Tree::Simple's "accept" method. It can also be used on its own, it requires the $tree argument to be
a Tree::Simple object (or derived from a Tree::Simple object), and will throw and exception otherwise.
getResult
This method will return the tree found with the specified UID (set by the "searchForUID" method) or "undef" if no tree is found.
BUGS
None that I am aware of. Of course, if you find a bug, let me know, and I will be sure to fix it.
CODE COVERAGE
See the CODE COVERAGE section in Tree::Simple::VisitorFactory for more inforamtion.
SEE ALSO
These Visitor classes are all subclasses of Tree::Simple::Visitor, which can be found in the Tree::Simple module, you should refer to that
module for more information.
ACKNOWLEDGEMENTS
Thanks to Vitor Mori for the idea for this Visitor.
AUTHOR
stevan little, <stevan@iinteractive.com>
COPYRIGHT AND LICENSE
Copyright 2004, 2005 by Infinity Interactive, Inc.
<http://www.iinteractive.com>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.1 2005-07-14 Tree::Simple::Visitor::FindByUID(3pm)