Hi!!,
I am on HP UX -11. I have created a new group and want to assign some the users to this group without changing their existing group ( The new group is the secondary group for them)
Any ideas how to do it??
SAM doesnt seem to be working.. Any way of doing it from command line??
... (1 Reply)
I need to find all the files that have group Read or Write permission or files that have user write permission.
This is what I have so far:
find . -exec ls -l {} \; | awk '/-...rw..w./ {print $1 " " $3 " " $4 " " $9}'
It shows me all files where group read = true, group write = true... (5 Replies)
Is there a command or better combination of cmds that will give me the list of Unix users in a particular Unix group whether their primary group is that group in question (information stored in /etc/passwd) or they are in a secondary group (information stored in /etc/group).
So far all I got... (5 Replies)
Experts,
I know when I use id it shows only the primary group information for the given user, and that info comes from passwd file. When I use groups it shows all groups user are member of, however from where come information given by groups command?
grep fmtt3990 /etc/passwd... (6 Replies)
Hi,
When I include a user to the secondary group "sys" GID=3 in Solaris 9 OS I'm not able to login. I get these error. The user home directory and the shell exists. Is this because of any security hardening.
# su - agent
No directory!
# su agent
su: No shell
# grep taddm /etc/passwd... (14 Replies)
We have created ACL's to allow two differnet groups to access some directories. You can see output from getfacl below.
group::rwx
group:rbauser:r--
The original group has full access, the secondary group has read only. However users in the secondary group can't see the directories. Think this... (1 Reply)
Hello,
i try to add user john to secondary group, named groupB
this will add as primary group,
how can i add to secondary group??
dn: cn=groupB,ou=Groups,dc=ldap-server,dc=com
changetype: modify
add: memberuid
memberuid: john (1 Reply)
Oracle Linux 6.6
grid user's secondary groups are asmadmin,asmdba,asmoper and dba
# id -a grid
uid=638(grid) gid=2000(oinstall) groups=2000(oinstall),2100(asmadmin),2200(dba),2300(asmdba),2301(asmoper)
I want to remove dba as the secondary group for grid and keep the remaining ones.
ie. I... (5 Replies)
Discussion started by: John K
5 Replies
LEARN ABOUT PHP
mongocursor.slaveokay
MONGOCURSOR.SLAVEOKAY(3) 1 MONGOCURSOR.SLAVEOKAY(3)MongoCursor::slaveOkay - Sets whether this query can be done on a secondary [deprecated]
SYNOPSIS
public MongoCursor MongoCursor::slaveOkay ([bool $okay = true])
DESCRIPTION
Warning
This method is deprecated since version 1.5.0. Instead, please use MongoCursor::setReadPreference and "Read Preferences".
Calling this will make the driver route reads to secondaries if:
o You are using a replica set, and
o You created a MongoClient instance using the option
"replicaSet" => "setName", and
o There is a healthy secondary that can be reached by the driver.
You can check which server was used for this query by calling MongoCursor.info(3) after running the query. It's server field will show
which server the query was sent to.
Note that you should use this function even if you do not use the automatic routing to secondaries. If you connect directly to a secondary
in a replica set, you still need to call this function, which basically tells the database that you are aware that you might be getting
older data and you're okay with that. If you do not call this, you'll get "not master" errors when you try to query.
This method will override the static class variable $MongoCursor::$slaveOkay. It will also override Mongo.setSlaveOkay(3), MongoDB.set-
SlaveOkay(3) and MongoCollection.setSlaveOkay(3).
PARAMETERS
o $okay
- If it is okay to query the secondary.
RETURN VALUES
Returns this cursor.
ERRORS /EXCEPTIONS
Throws MongoCursorException if this cursor has started iterating.
EXAMPLES
Example #1
MongoCursor.slaveOkay(3) example
<?php
MongoCursor::$slaveOkay = false;
// cannot query secondary
$cursor = $collection->find();
// can query secondary
$cursor = $collection->find()->slaveOkay();
MongoCursor::$slaveOkay = true;
// can query secondary
$cursor = $collection->find();
// cannot query secondary
$cursor = $collection->find()->slaveOkay(false);
?>
SEE ALSO"Read Preferences ,
MongoCursor::setReadPreference, MongoCursor::getReadPreference.
CHANGELOG
+--------+---------------------------------------------------+
|Version | |
| | |
| | Description |
| | |
+--------+---------------------------------------------------+
| 1.5.0 | |
| | |
| | This method has been deprecated in favour of |
| | MongoCursor::setReadPreference and "Read Prefer- |
| | ences". |
| | |
+--------+---------------------------------------------------+
PHP Documentation Group MONGOCURSOR.SLAVEOKAY(3)