FirebirdSQL/2/4
出自VFP Wiki
http://c4tboba.com/litrocr.html[chirolrola] [[1][chirolrola]]
- http://vidarra.com/chichibo.html chirolrola
- [chirolrola]
- [[2]]
- [| chirolrola]
- [3]
- [chirolrola|http://caelolo.com/boalchi.html]
- ((http://boouri.com/rozelv.html chirolrola))
- [chirolrola](http://riccnaromon.com/dronget.html "chirolrola")
"chirolrola":http://livarcc4trel.com/elcnaelch.html
目錄 |
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