net share 사용 방법

■ 윈도우에서 공유

net share TEST-SHARE="D:\0_tmp" /users:2 /remark:"임시 공유 폴더" /cache:automatic

Syntax
net share [ShareName] net share [ShareName=Drive:Path [{/users:number|/unlimited}] [/remark:"text"] [/cache:{manual|automatic|no}]] net share [ShareName [{/users:number|unlimited}] [/remark:"text"] [/cache:{manual|automatic|no}]] net share [{ShareName|Drive:Path} /delete]

Parameters
ShareName: Specifies the network name of the shared resource. Type net share with a ShareName to display information about that share only.
Drive : Path : Specifies the absolute path of the directory to be shared.
/users: number: Sets the maximum number of users who can simultaneously access the shared resource.
/unlimited: Specifies an unlimited number of users who can simultaneously access the shared resource.
/remark: "text" : Adds a descriptive comment about the resource. Enclose the text in quotation marks.
/cache:automatic: Enables offline client caching with automatic reintegration.
/cache:manual: Enables offline client caching with manual reintegration.
/cache:no: Advises the client that offline caching is inappropriate.
/delete: Stops sharing the shared resource.


■ 리눅스에서 마운트

mount -t cifs -o ro,soft,user="administrator",password='XXXXXXXX',iocharset=utf8,file_mode=0644,dir_mode=0755 //10.10.10.91/test-share /mnt/10.10.10.91
위로 스크롤