天天看點

cifs shares 基本配置

加入到AD

> cifs setup

 This process will enable CIFS access to the filer from a Windows(R) system.

 Use "?" for help at any prompt and Ctrl-C to exit without committing changes.

      This filer is currently a member of the Windows-style workgroup 'WORKGROUP'.

 Do you want to continue and change the current filer account information? [n]: yes

        Your filer is currently visible to all systems using WINS. The WINS

        name servers currently configured are: [ 138.198.18.xx].

 (1) Keep the current WINS configuration

 (2) Change the current WINS name server address(es)

 (3) Disable WINS

 Selection (1-3)? [1]:

        This filer is currently configured as an NTFS-only filer.

驗證AD是否成功

*> cifs domaininfo

  NetBios Domain:           ST

  Windows 2000 Domain Name: st.com

  Type:                     Windows 2000

  Filer AD Site:            she

  Current Connected DCs:    \\SHEDC02

  Total DC addresses found: 4

  Preferred Addresses:

                          None

  Favored Addresses:

                          xx.xx.xx.xx                       PDC

                          xx.xx.xx.xx                       PDC

  Other Addresses:

                         xx.xx.xx.xx                       PDC

                          xx.xx.xx.xx                       PDC

  Not currently connected to any AD LDAP server

  Preferred Addresses:

                          None

  Favored Addresses:

                          None

  Other Addresses:

                          None

DNS驗證

0> dns info

DNS is enabled

DNS caching is enabled

9 cache hits

10 cache misses

3 cache entries

4 expired entries

4 cache replacements

IP Address                                     State   Last Polled                  Avg RTT Calls  Er

xx.xx.xx.xx                              UP      Wed Oct 12 11:15:56 CST 2011     578    23     5

Default domain: test.com

Search domains: test.com

建立共享目錄 #cifs shares -add test /vol/test/
删除所有目錄的everyone通路權限 #cifs access -delete test everyone
添加相應使用者通路權限 #cifs access test test “Full Control”
共享資訊檢視 #cifs shares

繼續閱讀