Sponsored Content
Operating Systems Solaris Direct login without password Post 302504599 by Rajesh_Apple on Tuesday 15th of March 2011 02:12:43 AM
Old 03-15-2011
Hi ,

check the login permission in secondary server.......
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

login password....

i forgot my login password,in solaris 9 how to get it. (1 Reply)
Discussion started by: venkatramana
1 Replies

2. UNIX for Dummies Questions & Answers

login without password

is it possible to login into root user or any user in fact and the system wouldnt prompt u for a password ..ala windows style of login (6 Replies)
Discussion started by: tarunicon
6 Replies

3. Solaris

SSH Password-less login fails on password expiry.

Hi Gurus I have a few Sol 5.9 servers and i have enabled password less authentication between them for my user ID. Often i have found that when my password has expired,the login fails. Resetting my password reenables the keys. Do i need to do something to avoid this scenario or is this... (2 Replies)
Discussion started by: Renjesh
2 Replies

4. Linux

ssh - disable direct root login

Hi Guys.... I am a newbie to unix. I have a requirement. I have a server. I have to configure ssh to disable direct root login and then add a user with sudo access to this server.Then change the ssh port to 22315 and the server should permit the ssh only from my local machine ip.I also have to... (1 Reply)
Discussion started by: mahesh_raghu
1 Replies

5. AIX

AIX Disable direct root login problems

I have disabled rlogin for root successfully , but after that i could not login to root from console and could not su to root from other users as it responded as expired account I did not have any admin user but I have managed to recover the situation by accessing rootvg before mounting it, but... (5 Replies)
Discussion started by: majd_ece
5 Replies

6. Solaris

Disable users to direct login

Hi all, how can I disable direct login to a Solaris system not only for root user but also for other accounts? Looking in google I came to the following: For telnet (/etc/default/login): disable root access> CONSOLE=/dev/console disable generic user> ? For ssh... (5 Replies)
Discussion started by: Evan
5 Replies

7. Shell Programming and Scripting

Manipulating sed Direct Input to Direct Output

Hi guys, been scratching round the forums and my mountain of resources. Maybe I havn't read deep enough My question is not how sed edits a stream and outputs it to a file, rather something like this below: I have a .txt with some text in it :rolleyes: abc:123:xyz 123:abc:987... (7 Replies)
Discussion started by: the0nion
7 Replies

8. Cybersecurity

Ssh password less login with different ID

Hi, I have setup password less ssh connection between Server A and Server B and I am able to connect with User2. But my requirement is, User 1 run a script in Server A to ssh into Server B as User 2 but it is asking password every time I execute. Server A: Login as User 1 and execute sh... (8 Replies)
Discussion started by: sakthi.99it
8 Replies
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)
All times are GMT -4. The time now is 04:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy