473,402 Members | 2,053 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,402 software developers and data experts.

I want to use phpPgadmin (the web based tool for postgresql) but I have a problem!

the problem is:
when I create a user "user1" and give the permissions on the database "db1" to it (including login privilage),

this user can access to all databases although it doesn't have the privilges (I make revoke )

in other side, any user can access to the database "db1"
after login, although I make (revoke all on db1 from public).

I tryed to fix this problem alot but I didn't fined any way.

help me please.

and thanks for you...
Sep 14 '10 #1
4 2903
rski
700 Expert 512MB
I guess you did
Expand|Select|Wrap|Line Numbers
  1. revoke all on database db1 from public
  2.  
not
Expand|Select|Wrap|Line Numbers
  1. revoke all on db1 from public
  2.  
because the second query revokes premissions from a table db1 not database db1.

Am I right?
Sep 14 '10 #2
the problem still exists after execute the statment:
"revoke all on database db1 from public"

user1 can access to other databases although it is owner to the db1 only!!

thank you very much.
Sep 15 '10 #3
rski
700 Expert 512MB
I do not understand. You revoke all rights from db1 database and you expect user will not be able to connect to OTHER databases?

If you want to forbid user from accessing database X you must revoke connect on that database X from that user (and public 'role'). So you must revoke connect from public on all database you want to restrict access.
BTW if you do that you should add connect rights to all user personally which you want to access that databases.

Sorry for not so good english, I hope you understand what I mean.
Sep 15 '10 #4
I need to restrict role "user1" to access only db1 and db2's sch_a and shc_f, and also don't show the other schemas in the same database. When listing databases, just tow schemas should be shown (sch_a , sch_f).
I wish the problem has been clear to you.
thanks alot.
Sep 16 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: ColdCanuck | last post by:
Greetings All! I'm hoping some of you .NET gurus can help me out. I've search google but I cannot find the answers I'm looking for. I have a small business client that would like to replace...
11
by: weissborn | last post by:
I have an application I have written in MS Access 2002. It is a very basic inventory system for keeping track of information about our Unix(solaris to be specific) servers. Other admins may want...
1
by: Andrea | last post by:
I was trying to deserialize my xml file (I enclose it below ) into a class. So I generated an xsd file given my xml using the MS xsd tool; then I generated the corresponsing C# class (using the MS...
2
by: Keith A. Rowe | last post by:
I have developed apps on scores of platforms for 25 years. Each of these platforms have supported a "quick, but not so dirty" utility for code table maintenance. For example, I have a States...
1
by: rob | last post by:
Dear All, I have a very small test project to convert asp to asp.net using the Microsoft/Artisan ASP to ASP.NET Migration Assistant...
0
by: hatcat | last post by:
Hi everyone. I'm looking for the right tool for a job. Hope someone can help. The deal is this: We have a large amount of data which is maintained by non-programmers. This is validated and...
3
by: keithb | last post by:
It has been years since I worked with ASP, having moved on to ASP.NET. However, I have just inherited a project adding some enhancements to an existing ASP site. What is the best tool to use for...
0
by: ntech | last post by:
hello, when i took the dump and tried to restore the dump in postgresql 7.3.4, the functions are not restored, so can anyone suggest me the solution of the above specified problem. The oids are...
3
by: praveen1983 | last post by:
hi i want to know the sancastle tool and how to start with that.. how that tool works ..
1
by: ravysters | last post by:
whats the procedure to build the source of postgresql 8.3.1 for windows.. what are the compilers required to do it.. please help.. thanks
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
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...

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.