12.07.2015 Views

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

316CHAPTER 13Network File SharingBefore you can connect to a Samba share, you must know its name. If you only know thename of the Samba server, use smbclient to display a list of available shares and theworkgroup for the Samba server, and replace the and :smbclient -L -U The output will look similar to Listing 13.7.LISTING 13.7 Output from smbclient -LDomain=[JADEFOX] OS=[Unix] Server=[Samba 3.0.14a-2]Sharename Type Comment--------- ---- -------tmp Disk Temporary file spaceIPC$ IPC IPC Service (Jadefox)ADMIN$ IPC IPC Service (Jadefox)printer Printer printertfox Disk Home DirectoriesDomain=[JADEFOX] OS=[Unix] Server=[Samba 3.0.23c-2]ServerComment--------- -------WorkgroupMaster--------- -------WUDANJADEFOXIf the -U option is not used, the connection is attempted as a guest user. If ausername is specified, enter the correct password when prompted.To connect to a specific share using smbclient, use the following:smbclient /// -U A successful connection is indicated by the smb: \> prompt. Once connected, thecommands are similar to a command-line FTP client. Table 13.2 lists common commands .TABLE 13.2 Common smbclient CommandsCommandDescriptionpwdDisplay current remote directorycd Change directories if it is accessiblelcd Change current local directoryget Retrieve from current remote directory to current localdirectorymget Retrieve multiple files, will be prompted for each matching fileunless prompt is disabled

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!