FirebirdSQL/2/4
出自VFP Wiki
AcvizElc4t (對話 | 貢獻) |
AcvizElc4t (對話 | 貢獻) |
||
第1行: | 第1行: | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
=== SYSDBA user === | === SYSDBA user === | ||
SYSDBA useræ¯Firebird Serveré è¨ç使ç¨è
ï¼ä¹æ¯ç®¡çå¡å¸³èï¼å»ºè°å®è£ä¹å¾ï¼æ好è½æ¹è®å
¶å¯ç¢¼æè
æ°å¢ä¸åæ°ç管çå¡å¸³èï¼Firebird Server使ç¨è
帳èæ¯åå¨æ¼security.fdbï¼ | SYSDBA useræ¯Firebird Serveré è¨ç使ç¨è
ï¼ä¹æ¯ç®¡çå¡å¸³èï¼å»ºè°å®è£ä¹å¾ï¼æ好è½æ¹è®å
¶å¯ç¢¼æè
æ°å¢ä¸åæ°ç管çå¡å¸³èï¼Firebird Server使ç¨è
帳èæ¯åå¨æ¼security.fdbï¼ |
在2009年8月19日 (三) 20:30所做的修訂版本
目錄 |
SYSDBA user
SYSDBA useræ¯Firebird Serveré è¨ç使ç¨è ï¼ä¹æ¯ç®¡çå¡å¸³èï¼å»ºè°å®è£ä¹å¾ï¼æ好è½æ¹è®å ¶å¯ç¢¼æè æ°å¢ä¸åæ°ç管çå¡å¸³èï¼Firebird Server使ç¨è 帳èæ¯åå¨æ¼security.fdbï¼
系統æ¬éè³æ庫 security.fdb
- userè³æ表--éè¦æ¬ä½èªªæ
|| Column || 說æ || || User nameã|| 使ç¨è 帳è,æé·å¯è¼¸å ¥128åå || || Password || 使ç¨è å¯ç¢¼,æé·å¯è¼¸å ¥128åå || || UID || æ´æ¸åæ ç使ç¨è ID || || GID || æ´æ¸åæ ç群çµID || || Full name || 使ç¨è å ¨å ||
群çµå»ºç«æ¹å¼
- 建ç«è¦å CREATE ROLE.
- CREATE ROLE sales;
- è®æ´ç¾æè³æ表è¦å(table1)
- GRANT UPDATE ON table1 TO sales;
- è®æ´ç¾æè³æ表è¦å(user1, user2, user3)
- GRANT sales TO user1, user2, user3;
- æå¾,ç¨è®æ´å¾ç使ç¨è
帳èç»å
¥è³æ庫
- CONNECT âfoo.gdbâ USER âuser1â PASSWORD âpeanutsâ ROLE sales;
ä½¿ç¨ Firebird API æ¹å¼æ§å¶ç³»çµ±æ¬é
è¦ä½¿ç¨ API æ§å¶ç³»çµ±æ¬éæ¹å¼çå½æ¸æisc_add_user( ), isc_delete_user( ), and isc_modifiy_user( ).
詳細è³æè«åè APIæå
gsec command-line tool
- gsecæ令åæ¸èªªæ表
|| æ令 || 說æ || || di[splay]ã|| ååº security.fdb ææè³æ || || di[splay] name || 顯示ææ使ç¨è || || a[dd] name -pw password [option argument] [option argument ...] || æ°å¢ security.fdb ç使ç¨è || || mo[dify] name [options] || ä¿®æ¹ security.fdb ç使ç¨è || || de[lete] name || åªé¤ security.fdb ç使ç¨è || || h[elp] or ? || gsec æ令èèªæ³èªªæ || || q[uit]|| é¢é gsec æä»¤æ¨¡å¼ ||
- optionsåæ¸èªªæ表
|| Option || 說æ || || -password or -pa stringã|| Password of user who is performing the change || || -user string|| User who is performing the change || || -pw string || Target user password|| || -uid integer || Target user ID || || -gid integer || Group ID for target user || || -fname string || First Name for target user || || -mname string || Middle Name for target user || || -lname string || Last Name for target user ||
- gsec使ç¨èªªæ
- å·è¡gsec: gsec -user sysdba -password masterkey
- é 端å·è¡gsec: gsec -database jupiter:/usr/interbase/isc4.gdb
- å¢å 使ç¨è 'jones': GSEC> add jones -pw welcome
- 顯示è¨é: GSEC> display
- ä¿®æ¹ä½¿ç¨è å稱: GSEC> modify cbrown âuid 8 âfname cindy
- 顯示使ç¨è 'cbrown'è¨é: GSEC> display cbrown
- åªé¤ä½¿ç¨è 'cbrow': GSEC> delete cbrown