473,395 Members | 1,468 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

only allowing root access

Hi-ya,
I want to be able to only allow root access while I dump the databases,
thus locking out all non-root users ( even remote logins) then allow
all normal users back in after the dump has been done.
How would I go about this please.
thanz..

Pauline...

Jul 20 '05 #1
2 1785
On 2005-01-02 14:13:49 +0000, pa***********@btinternet.com said:
I want to be able to only allow root access while I dump the databases,
thus locking out all non-root users ( even remote logins) then allow
all normal users back in after the dump has been done.
How would I go about this please.


However you do this, it's not going to be graceful.

Will these users be aware that you're locking them out?

If you're going to do something like that, it would be far easier to
just change the name of the database first, then do the dump. Then no
one can get at the database whatever their level of access is.

I do this from time to time with some web-based graphical front end
like phpMyAdmin.

That way, you're not messing around with the likes of GRANT and REVOKE
which can be lethal in the wrong hands.

Hope that helps?
--
wayne smallman ][ octane interactive

Jul 20 '05 #2
pa***********@btinternet.com wrote:
I want to be able to only allow root access while I dump the databases,
thus locking out all non-root users ( even remote logins) then allow
all normal users back in after the dump has been done.


Are you doing this to ensure that no updates to data are done during
your database dump?

You could use the "mysqldump --single-transaction" option, available if
you are using InnoDB tables in MySQL 4.0.2 or later.

You could use the "mysqldump --lock-all-tables" option, available if you
are using MySQL 4.1.8 or later.

Also read up on the mysqlhotcopy command, to see if this does what you need.

These options don't necessarily restrict access to root, but they do
help to ensure that the backup represents a consistent snapshot of the
database.

Regards,
Bill K.
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: MENTAT | last post by:
Hi Guys, Newbie question here. Part of my xml looks like this. <node> <description/> <config/> <log/> <transition/> <node>
3
by: Terry Murray | last post by:
Hi Everybody, I have been given the task of creating an online coupon system. The only real challenge that I can identify at this point is allowing only one coupon to be printed rather than...
4
by: _link98 | last post by:
Which of the UDB 8.2.2 ESE unix executables really need to gain root privilege while they are running? In my installation, the db2sysc file is owned by the instance-owner (and relevant admin...
2
by: Rich | last post by:
Greetings, I am trying to find a way to use a form of GetObject in VB.Net and have been researching WMI. Apparently, this is a vast subject, but seems to reference a Namespace called...
3
by: Notgiven | last post by:
I added an .htaccess file to the directory which disallowed access to: /directory/ but I could still access /directory/files.gif I want to prevent someone stealing my flash files. I can...
1
by: Ed | last post by:
I am trying to create a access database that will allow a "user" to login, and only view/change only the material they have entered. Also allowing a administrator to view all the data, and create...
10
by: Sridhar | last post by:
HI, I am having problems setting up a website so that it will be available only inside the domain. We have three servers. One is iis server and second one is internal server and the third one is...
2
by: Certys | last post by:
Hello, I have a form where I only allow new records to be added. I enable this by setting the form property "Data Entry" to Yes. I want to access other records in the same table- to autofill...
8
by: martinnorth | last post by:
Hi, I am running Python and MySQL on Ubuntu and have installed MySQLdb. If I try to import MySQLdb I get the following error: ActivePython 2.5.2.2 (ActiveState Software Inc.) based on Python...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.