FirebirdSQL/2/4
出自VFP Wiki
Goto-dream (對話 | 貢獻) |
PasleTocna (對話 | 貢獻) |
||
第1行: | 第1行: | ||
+ | http://www.textlidelalt.com | ||
=== SYSDBA user === | === SYSDBA user === | ||
- | SYSDBA | + | SYSDBA useræ¯Firebird Serveré è¨ç使ç¨è
ï¼ä¹æ¯ç®¡çå¡å¸³èï¼å»ºè°å®è£ä¹å¾ï¼æ好è½æ¹è®å
¶å¯ç¢¼æè
æ°å¢ä¸åæ°ç管çå¡å¸³èï¼Firebird Server使ç¨è
帳èæ¯åå¨æ¼security.fdbï¼ |
- | === | + | === 系統æ¬éè³æ庫 security.fdb === |
- | * | + | *userè³æ表--éè¦æ¬ä½èªªæ |
- | || Column || | + | || Column || 說æ || |
- | || User | + | || User nameã|| 使ç¨è
帳è,æé·å¯è¼¸å
¥128åå
|| |
- | || Password || | + | || Password || 使ç¨è
å¯ç¢¼,æé·å¯è¼¸å
¥128åå
|| |
- | || UID || | + | || UID || æ´æ¸åæ
ç使ç¨è
ID || |
- | || GID || | + | || GID || æ´æ¸åæ
ç群çµID || |
- | || Full name || | + | || Full name || 使ç¨è
å
¨å || |
- | === | + | === 群çµå»ºç«æ¹å¼ === |
- | # | + | # 建ç«è¦å CREATE ROLE. |
#:CREATE ROLE sales; | #:CREATE ROLE sales; | ||
- | # | + | # è®æ´ç¾æè³æ表è¦å(table1) |
#:GRANT UPDATE ON table1 TO sales; | #:GRANT UPDATE ON table1 TO sales; | ||
- | # | + | # è®æ´ç¾æè³æ表è¦å(user1, user2, user3) |
#:GRANT sales TO user1, user2, user3; | #:GRANT sales TO user1, user2, user3; | ||
- | # | + | # æå¾,ç¨è®æ´å¾ç使ç¨è
帳èç»å
¥è³æ庫 |
- | #:CONNECT | + | #: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 command-line tool === | ||
- | * | + | *gsecæ令åæ¸èªªæ表 |
- | || | + | || æ令 || 說æ || |
- | || di[splay] | + | || di[splay]ã|| ååº security.fdb ææè³æ || |
- | || di[splay] name || | + | || di[splay] name || 顯示ææ使ç¨è
|| |
- | || a[dd] name -pw password [option argument] [option argument ...] || | + | || a[dd] name -pw password [option argument] [option argument ...] || æ°å¢ security.fdb ç使ç¨è
|| |
- | || mo[dify] name [options] || | + | || mo[dify] name [options] || ä¿®æ¹ security.fdb ç使ç¨è
|| |
- | || de[lete] name || | + | || de[lete] name || åªé¤ security.fdb ç使ç¨è
|| |
- | || h[elp] or ? || gsec | + | || h[elp] or ? || gsec æ令èèªæ³èªªæ || |
- | || q[uit]|| | + | || q[uit]|| é¢é gsec æä»¤æ¨¡å¼ || |
- | * | + | *optionsåæ¸èªªæ表 |
- | || Option || | + | || Option || 說æ || |
- | || -password or -pa | + | || -password or -pa stringã|| Password of user who is performing the change || |
|| -user string|| User who is performing the change || | || -user string|| User who is performing the change || | ||
|| -pw string || Target user password|| | || -pw string || Target user password|| | ||
第51行: | 第52行: | ||
|| -lname string || Last 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 |
- | === | + | === åèæç« === |
- | #[http://vfp.sunyear.com.tw/viewtopic.php?t=1556 | + | #[http://vfp.sunyear.com.tw/viewtopic.php?t=1556 Firebirdçå®å
¨è¨å®PowerPoint] |
在2009年5月22日 (五) 12:27所做的修訂版本
目錄 |
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