|
52.
|
|
|
admin users = melissa
|
|
|
|
admin users = melissa
|
|
Translated and reviewed by
姚渺波
|
|
|
|
Located in
../generic/serverguide/C/windows-networking.xml:242(emphasis)
|
|
53.
|
|
|
Clients
|
|
|
|
客户端
|
|
Translated and reviewed by
姚渺波
|
|
|
|
Located in
../generic/serverguide/C/windows-networking.xml:250(title)
|
|
54.
|
|
|
Ubuntu includes client applications and capabilities for accessing network resources shared with the SMB protocol. For example, a utility called <application>smbclient</application> allows for accessing remote shared file-systems, in a manner similar to a File Transfer Protocol (FTP) client. To access a shared folder resource known as <emphasis role="italic">documents</emphasis> offered by a remote Windows computer named <emphasis role="italic">bill</emphasis> using <application>smbclient</application> for example, one would enter a command similar to the following at the prompt:
|
|
|
|
Ubuntu 中包括客户端应用以及通过 SMB 协议远程访问网络资源的能力。例如,一个名为 <application>smbclient</application> 的工具就可以以一种类似文件传输协议(FTP)客户端的方式访问远程共享的文件系统。以使用 <application>smbclient</application> 来访问在名为 <emphasis role="italic">bill</emphasis> 远程 Windows 计算机中的共享文件夹资源 <emphasis role="italic">documents</emphasis> 来做示范,在提示符后输入类似下面的命令:
|
|
Translated and reviewed by
姚渺波
|
|
|
|
Located in
../generic/serverguide/C/windows-networking.xml:251(para)
|
|
55.
|
|
|
smbclient //bill/documents -U <username>
|
|
|
|
smbclient //bill/documents -U <username>
|
|
Translated and reviewed by
姚渺波
|
|
|
|
Located in
../generic/serverguide/C/windows-networking.xml:260(command)
|
|
56.
|
|
|
You will then be prompted for the password for the user name specified after the -U switch, and upon successful authentication, will be presented with a prompt where commands may be entered for manipulating and transferring files in a syntax similar to that used by non-graphical FTP clients. For more information on the <application>smbclient</application> utility, read the utility's manual page with the command: <screen>
<command>
man smbclient
</command>
</screen>
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
然后你将被提示输入相对于 -U 参数之后用户名的密码,当成功验证后,将出现一个提示符,在那里我们可以使用与非图形化 FTP 客户端类似的语法来操作和传输文件。<application>smbclient</application> 工具的详细信息可以输入以下命令来查阅该工具的手册页:
|
|
Translated and reviewed by
姚渺波
|
|
|
|
Located in
C/windows-networking.xml:254(para)
|
|
57.
|
|
|
Local mounting of remote network resources using the SMB protocol is also possible using the <application>mount</application> command. For example, to mount a shared folder named <emphasis role="italic">project-code</emphasis> on a Windows server named <emphasis role="italic">development</emphasis> as the user <emphasis role="italic">dlightman</emphasis> to your Ubuntu system's /mnt/pcode mount-point, you would issue this command at the prompt:
|
|
|
|
使用 SMB 协议的远程网络资源在本地挂载也可以使用 <application>mount</application> 命令。例如,要挂载在一个名为 <emphasis role="italic">development</emphasis> 的Windows 服务器上的一个名为 <emphasis role="italic">project-code</emphasis> 共享文件夹,并使用 <emphasis role="italic">dlightman</emphasis> 用户名挂载到你的 Ubuntu 系统的 /mnt/pcode 挂载点上,你可以在提示符后运行以下命令:
|
|
Translated and reviewed by
姚渺波
|
|
|
|
Located in
C/windows-networking.xml:265(para)
|
|
58.
|
|
|
mount -t smbfs -o username=dlightman //development/project-code /mnt/pcode
|
|
|
|
mount -t smbfs -o username=dlightman //development/project-code /mnt/pcode
|
|
Translated and reviewed by
姚渺波
|
|
|
|
Located in
C/windows-networking.xml:273(command)
|
|
59.
|
|
|
You will then be prompted for the user password, and after successfully authenticating, the contents of the shared resource will be available locally via the mount-point specified as the last argument to the mount command. To disconnect the shared resource, simply use the <application>umount</application> command as you would with any other mounted file system. For example:
|
|
|
|
然后你将被提示输入用户密码,在成功验证之后,共享资源的内容就可以通过 mount 命令中的最后一个参数所指定的本地挂载点来访问了。要卸载该共享资源,就象其他被挂载的文件系统一样只需简单的使用 <application>umount</application> 命令即可。例如:
|
|
Translated and reviewed by
姚渺波
|
|
|
|
Located in
../generic/serverguide/C/windows-networking.xml:284(para)
|
|
60.
|
|
|
umount /mnt/pcode
|
|
|
|
umount /mnt/pcode
|
|
Translated and reviewed by
姚渺波
|
|
|
|
Located in
C/windows-networking.xml:283(command)
|
|
61.
|
|
|
User Accounts
|
|
|
|
用户帐号
|
|
Translated and reviewed by
姚渺波
|
|
|
|
Located in
../generic/serverguide/C/windows-networking.xml:295(title)
|