10-07-2010
You can use group police to create a Software restriction Zone rule which will make it impossible to install any software from the Internet ZOne. This means you can still allow users to download approved programs from an intranet site, but anything on the internet will be blocked. Another option is to set the software restriction rule based on file type. This way you could block *.exe files.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello All,
I have a new HPUX system going into production and it will be used by 2 projects. One of the contract requirements is the 2 groups can not have access to the others work or data. I believe I have the system pretty well locked up using groups and permissions and selective mounting of... (2 Replies)
Discussion started by: DanL
2 Replies
2. UNIX for Advanced & Expert Users
We have a shared development box, running Solaris 10 that is an NIS client, all the developers have local root password. If they know the NIS uid of another user, they can just do
% useradd -u <uid> login
And then log in as that user and have full access to his files in his home directory. ... (3 Replies)
Discussion started by: nfw
3 Replies
3. Solaris
Dear
i have installed Solaris 10 on SUN V240
after installation i can not access system through root user
if i access system through any other user it conects but root is not connecting through LAN
if i connect through SC and then access root though cosole -f command it also works
kindly... (6 Replies)
Discussion started by: rizwan225
6 Replies
4. Cybersecurity
Dears
I want to prevent users from doing spesific command "history -c" or "history" in general
How can I do ? (4 Replies)
Discussion started by: reaky
4 Replies
5. UNIX for Dummies Questions & Answers
I have just set up a user on our system HP-Thru64. The user needs to be able to su to root after they login and this works fine. Users cannot login from root externally so you have to first connect as a user and then su. I am wondering is it possible for me to prevent the user from having telnet... (4 Replies)
Discussion started by: peragin
4 Replies
6. IP Networking
I have three PCs in a LAN network.
1. Solaris 10 10/09 x86 ip adres: 192.168.30.120 netmask:255.255.255.0
2. Solaris 10 10/09 x86 ip adres: 192.168.30.48 netmask:255.255.255.0
3. LINUX Suse 11 ip adres: 192.168.30.50 netmask:255.255.255.0
The heading for Suse Linux UDP packets to... (3 Replies)
Discussion started by: Lubo3D
3 Replies
7. Shell Programming and Scripting
Hi could some let me know how to prevent user from changing his home directory.......
Thanks in advance.... (1 Reply)
Discussion started by: Revanth547
1 Replies
8. Shell Programming and Scripting
Hi could some let me know how to prevent user from changing his home directory.......
Thanks in advance.... (6 Replies)
Discussion started by: rahul547
6 Replies
9. AIX
Hi Folks,
Any system admin did provide AIX file system control to prevent user/ admin accidentally remove database files ?
Thanks. (4 Replies)
Discussion started by: ckwan
4 Replies
10. UNIX for Advanced & Expert Users
Hi Experts,
Need your support
Redhat 6.5
I want to create a user with all(read, write, execute) privileges except that user should not be able to create any new user from his login
to perform any task. (10 Replies)
Discussion started by: as7951
10 Replies
LEARN ABOUT PHP
mongoclient.close
MONGOCLIENT.CLOSE(3) 1 MONGOCLIENT.CLOSE(3)
MongoClient::close - Closes this connection
SYNOPSIS
public bool MongoClient::close ([boolean|string $connection])
DESCRIPTION
The MongoClient.close(3) method forcefully closes a connection to the database, even if persistent connections are being used. You should
never have to do this under normal circumstances.
PARAMETERS
o $connection
- If connection is not given, or FALSE then connection that would be selected for writes would be closed. In a single-node config-
uration, that is then the whole connection, but if you are connected to a replica set, close() will only close the connection to
the primary server. If connection is TRUE then all connections as known by the connection manager will be closed. This can
include connections that are not referenced in the connection string used to create the object that you are calling close on. If
connection is a string argument, then it will only close the connection identified by this hash. Hashes are identifiers for a con-
nection and can be obtained by calling MongoClient.getConnections(3).
RETURN VALUES
Returns if the connection was successfully closed.
EXAMPLES
Example #1
MongoClient.close(3) example
This example demonstrates how to selectively close all connections for secondaries only.
<?php
// Connect to a replicaset
$a = new MongoClient("mongodb://whisky:13000/?replicaset=seta");
$connections = $a->getConnections();
foreach ( $connections as $con )
{
// Loop over all the connections, and when the type is "SECONDARY"
// we close the connection
if ( $con['connection']['connection_type_desc'] == "SECONDARY" )
{
echo "Closing '{$con['hash']}': ";
$closed = $a->close( $con['hash'] );
echo $closed ? "ok" : "failed", "
";
}
}
?>
The above example will output:
Closing 'whisky:13001;X;4948': ok
CHANGELOG
+--------+---------------------------------------------------+
|Version | |
| | |
| | Description |
| | |
+--------+---------------------------------------------------+
| 1.3.0 | |
| | |
| | The $connection parameter to this function was |
| | added in 1.3.0. Before that, only the write con- |
| | nection would be closed by this method. |
| | |
| 1.2.0 | |
| | |
| | Before version 1.2.0 the driver would not use |
| | persistent connections by default, and all con- |
| | nections would be closed as soon as a MongoDB |
| | connection went out if scope. Since version 1.2.0 |
| | this is no longer the case and it is a bad idea |
| | to call close as you might end up overloading the |
| | server with connections under high load. |
| | |
+--------+---------------------------------------------------+
SEE ALSO
MongoClient.getConnections(3).
PHP Documentation Group MONGOCLIENT.CLOSE(3)