Operation Manual
Accessing Shares from the Command Line
If you prefer using the command line, use the smbclient command. To log in to
your Samba server, run:
smbclient //jupiter/share -U tux
Omit the -U option if you are the current user tux. After logging in successfully, use
some basic commands like ls (list contents), mkdir (create directory), get (download
le), and put (upload le). Use help to display all commands. Refer to the manual
page of smbclient for more information.
34.8 Sharing Files between Linux and
Windows with Samba
Samba is the rst choice for transferring les between Windows and Linux machines.
These are the most common use cases for Samba:
Transferring Files from Linux to Windows with the SMB Scheme
In the easiest case you do not have to congure a Linux server. Use the smb:/
scheme. For more information, see Section “Accessing Shares with KDE and
GNOME” (page 560). Make sure that your workgroup is identical on both systems
and that your directories are shared.
Transferring Files from Windows to Linux Using a Server
Congure a Samba server on your Linux computer. See Procedure 34.4, “Setting
Up a Samba Server” (page 562).
TIP: Using Default Registry Entries for Your Windows System
Some Windows versions (95, 98) require a small change in the registry for en-
abling a different password authentication method. Simplify this step by in-
stalling the samba-doc package and copy the le /usr/share/doc/
packages/samba/registry to your Windows drive. Start Windows and
incorporate the changes by double-clicking on this le.
Copying and Sharing Files 561










