LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-28-2004, 09:49 AM   #1
anirudh
Member
 
Registered: Aug 2004
Location: bangalore india
Posts: 50

Rep: Reputation: 15
Unhappy Database Security


hi can some one help me with this

i have a schema user who is owning the table and a RO user, who is having the select privilege on a table. RO user should see the table, if and only if the database/schema/table is accessed from a particular IP-address(ip1) and not from any other IP.
i tried some triggers and also otherthings but to no use
can some one help me on this

THANKS
 
Old 10-28-2004, 10:37 AM   #2
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

Rep: Reputation: 111Reputation: 111
Try somehting like this:
Code:
GRANT SELECT ON database.table TO rouser@192.168.1.1 IDENTIFIED BY 'secret';
Also make sure your MySQL server listens to TCP socket (which isn't the case by default most of the times), if you want people to be able to connect to the server remotely.

Also check out the docs on this topic:
http://dev.mysql.com/doc/mysql/en/Privilege_system.html
http://dev.mysql.com/doc/mysql/en/GRANT.html
http://dev.mysql.com/doc/mysql/en/Security.html
 
Old 10-28-2004, 10:48 AM   #3
anirudh
Member
 
Registered: Aug 2004
Location: bangalore india
Posts: 50

Original Poster
Rep: Reputation: 15
Unhappy

i am using oracle 9i
and want to implement secure application roles but am not able to do this
can any one help me with this
THANKS
 
Old 10-28-2004, 11:47 AM   #4
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

Rep: Reputation: 111Reputation: 111
OK, I was wrong assuming you were using MySQL, but I'd have liked it if you would have provided that info in your first post...
 
Old 10-28-2004, 12:01 PM   #5
anirudh
Member
 
Registered: Aug 2004
Location: bangalore india
Posts: 50

Original Poster
Rep: Reputation: 15
Hi
how can i implement secure application role can you give me a frame work to work with or the code
Thanx
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SQLite database security - doesn't exist? vharishankar Linux - Security 2 11-30-2005 08:40 PM
Snort database: Closing connection to database "" Homer Glemkin Linux - Security 2 07-14-2005 06:58 PM
[Security Questions] Last Login, how good is this feature for security breach info? t3gah Linux - Security 2 06-14-2005 01:02 AM
MYSQL paranoia security prohibits PHP to use database ? Dark Carnival Debian 1 01-08-2005 10:33 AM
todays requirements regarding security (not limited to linux security) markus1982 Linux - Security 8 04-25-2004 10:58 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration