|
185.
|
|
|
mount.cifs //fs01.example.com/share mount_point
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/windows-networking.xml:1201(command)
|
|
186.
|
|
|
It is also possible to access shares on computers not part of an AD domain, but a username and password will need to be provided.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/windows-networking.xml:1204(para)
|
|
187.
|
|
|
To mount the share during boot place an entry in <filename>/etc/fstab</filename>, for example:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/windows-networking.xml:1212(para)
|
|
188.
|
|
|
//192.168.0.5/share /mnt/windows cifs auto,username=steve,password=secret,rw 0 0
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/windows-networking.xml:1216(programlisting)
|
|
189.
|
|
|
Another way to copy files from a Windows server is to use the <application>smbclient</application> utility. To list the files in a Windows share:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/windows-networking.xml:1223(para)
|
|
190.
|
|
|
smbclient //fs01.example.com/share -k -c "ls"
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/windows-networking.xml:1229(command)
|
|
191.
|
|
|
To copy a file from the share, enter:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/windows-networking.xml:1235(para)
|
|
192.
|
|
|
smbclient //fs01.example.com/share -k -c "get file.txt"
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/windows-networking.xml:1240(command)
|
|
193.
|
|
|
This will copy the <filename>file.txt</filename> into the current directory.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/windows-networking.xml:1243(para)
|
|
194.
|
|
|
And to copy a file to the share:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/windows-networking.xml:1250(para)
|