473,756 Members | 5,160 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

What is the sql way to restrict "superadmin " priv to one user?

Is there some way to restrict in mysql that certan field has only ONE ROW
with CERTAIN VALUE X while other rows can have any values but not this
one(so "unique" is not the answer..)?

This can be of course done in application level, but it would just be nice
to know. I would build my application so that only one user can be
superadmin, while others are normal admins or something else.

Of course this restriction would not be enough anyway, because I still need
to figure out what happens in different cases. So actual benefit would be
close to zero, but nerd idealist inside of me requires to know - "we have a
right to know".
Jul 20 '05 #1
0 1212

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

Similar topics

3
9456
by: Timo-Pekka Oikarinen | last post by:
Is there PHP chat script *without* MySQL? Demands: absolutely FREE (no adware, shareware etc.), No MySQL needed, one permanent public chat, can make your own channels (public/private) like IRC, several admins (one superadmin, me ;-D ), bad word filter, user nick ban/ip ban/kick (temporary/permanent), small file sharing and @time script ( http://www.swatch.com/internettime/home.php ) to upper right corner. Environment: Windows 2000 Pro...
8
1738
by: Perttu Pulkkinen | last post by:
Content management system I'm working consists pages, categories, users (and images). It is in the first place dircted to companies where 1-10 persons are taking care of site content. I am thinking how should I set my privilegde system: 1) use priviledge levels in a simple way: each normal admin is either allowed just to make drafts for superadmins to accept or not. superadmins can do anything. * dbtable solution: field like priv...
0
1403
by: Perttu Pulkkinen | last post by:
I ask all php-freaks say how they feel this CMS approach especially from the point of view of 1) admin usability, 2) user rights management and) database speed. In my approach webcontent could be seen as a content-tree, where most of the content would be in one table called "nodes". Content types would be: - branchwebpages and simple categories(=menuitems that have only subitems, not content) are the branches - leafwebpages (those that...
2
1488
by: Perttu Pulkkinen | last post by:
Is there some way to restrict in mysql that certan field has only ONE ROW with CERTAIN VALUE X while other rows can have any values but not this one(so "unique" is not the answer..)? This can be of course done in application level, but it would just be nice to know. I would build my application so that only one user can be superadmin, while others are normal admins or something else. Of course this restriction would not be enough...
1
1071
by: Brett | last post by:
I have an application with two user roles - regular or admin. If an admin logs in, a button to the admin reporting section appears. This keeps maintenance simple. However, I need to add more roles and restricted areas to the app. For example, one account will have an admin and several regular logins. The Admin can designate what each login will see within the application. Now, there can be a Super Admin for that same account, which...
1
761
by: Diffident | last post by:
Hello All, Does the Application_AuthenticateRequest event get fired for every request made to the application? According to my understanding, YES it does get fired for each and every request. Please correct me if I am wrong. But does the event get fired multiple times for the same request? I do not understand why in my application is it being called multiple times for the same request. Every time it is retrieving the role information...
15
11203
by: Dan2kx | last post by:
Hello peeps!! got another problem that is outta my league.... What i want (and can do) is to disable the DB window on startup, (what i cant do) disable the shift key load... Also i need a way to get back the DB window
0
9431
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9255
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9819
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9689
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7226
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6514
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5289
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3326
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2647
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.