Using the Linux Samba Client with iseries NetServer



Similar documents
Featuring: GUI screen designer to edit DDS source for 5250 Display Files

Migrating LAMP stack from x86 to Power using the Server Consolidation Tool

Rational Developer for IBM i (RDi) Introduction to RDi

Data Transfer Tips and Techniques

IBM Systems Director Navigator for i5/os New Web console for i5, Fast, Easy, Ready

How to Deliver Measurable Business Value with the Enterprise CMDB

Integrated and reliable the heart of your iseries system. i5/os the next generation iseries operating system

Samba. Samba. Samba 2.2.x. Limitations of Samba 2.2.x 1. Interoperating with Windows. Implements Microsoft s SMB protocol

Rational Developer for IBM i (RDi) Working offline using i Projects

Using Samba to play nice with Windows. Bill Moran Potential Technologies

Positioning the Roadmap for POWER5 iseries and pseries

z/os Basics: z/os UNIX Shared File System environment and how it works

QuickBooks Enterprise Solutions. Linux Database Server Manager Installation and Configuration Guide

Communications Server for Linux

Samba on HP StorageWorks Enterprise File Services (EFS) Clustered File System Software

The Consolidation Process

Getting Started with RES Automation Manager Agent for Linux

IBM WebSphere Data Interchange V3.3

Title. Click to edit Master text styles Second level Third level

CS z/os Network Security Configuration Assistant GUI

z/os Basics: z/os UNIX Shared File System environment and how it works

Practical Web Services for RPG IBM Integrated Web services for i

Active Directory Synchronization with Lotus ADSync

CS z/os Application Enhancements: Introduction to Advanced Encryption Standards (AES)

Maximo Business Intelligence Reporting Roadmap Washington DC Users Group

CSE 265: System and Network Administration

===================================================================

Intuit QuickBooks Enterprise Solutions. Linux Database Server Manager Installation and Configuration Guide

Windows Services. Support Windows and mixed-platform workgroups with high-performance, affordable network services. Features

z/os 1.12 zfs Shared File System Update

How To Install Acronis Backup & Recovery 11.5 On A Linux Computer

Plesk 8.3 for Linux/Unix System Monitoring Module Administrator's Guide

Rapid Data Backup and Restore Using NFS on IBM ProtecTIER TS7620 Deduplication Appliance Express IBM Redbooks Solution Guide

Installing Management Applications on VNX for File

IBM i Network Install using Network File System

IBM Lotus Enterprise Integrator (LEI) for Domino. Version August 17, 2010

z/os V1R11 Communications Server system management and monitoring

TSM (Tivoli Storage Manager) Backup and Recovery. Richard Whybrow Hertz Australia System Network Administrator

HARFORD COMMUNITY COLLEGE 401 Thomas Run Road Bel Air, MD Course Outline CIS INTRODUCTION TO UNIX

InfoPrint 4247 Serial Matrix Printers. Remote Printer Management Utility For InfoPrint Serial Matrix Printers

Cisco Networking Academy Program Curriculum Scope & Sequence. Fundamentals of UNIX version 2.0 (July, 2002)

New SMTP client for sending Internet mail

Red Hat Enterprise Linux as a

Cloud Computing with xcat on z/vm 6.3

Backups in the Cloud Ron McCracken IBM Business Environment

File Services. File Services at a Glance

Larry Bolhuis Arbor Solutions, Inc.

Using Symantec NetBackup with Symantec Security Information Manager 4.5

Samba File Sharing 1 of 17. File Sharing. Hal Miller & Leeland Artra. Notes:

LPR for Windows 95/98/Me/2000/XP TCP/IP Printing User s Guide. Rev. 03 (November, 2001)

ReadyNAS Setup Manual

HP AppPulse Active. Software Version: 2.2. Real Device Monitoring For AppPulse Active

IBM SmartCloud Analytics - Log Analysis. Anomaly App. Version 1.2

Linux Printing Tutorial at Linux Kongress 2002 Cologne, Germany: (VI.) Connections: How CUPS talks to Print Servers, Print Clients and Printers

IBM Security QRadar Version Installing QRadar with a Bootable USB Flash-drive Technical Note

Managing Linux Servers with System Center 2012 R2

IBM Software Group. Lotus Domino 6.5 Server Enablement

Installing on Windows

DP-313 Wireless Print Server

OnCommand Performance Manager 1.1

How To Use A Pmsft On A Pc Or Mac Or Mac (For Mac) With A Pmf (For Pc) Or Mac Mac (Or Mac) On A Mac Or Pc (For Pmsf) On An Ipad

IBM Enterprise Content Management Software Requirements

HP Insight Diagnostics Online Edition. Featuring Survey Utility and IML Viewer

PARALLELS SERVER BARE METAL 5.0 README

ICANWK401A Install and manage a server

Creating a Cloud Backup Service. Deon George

IBM Security QRadar Version (MR1) Replacing the SSL Certificate Technical Note

XPrint UNIX System Printer Driver Installation SOLARIS 1.X (SUN OS) / SOLARIS 2.X

SAS deployment on IBM Power servers with IBM PowerVM dedicated-donating LPARs

Redbooks Redpaper. IBM TotalStorage NAS Advantages of the Windows Powered OS. Roland Tretau

SIOS Protection Suite for Linux v Postfix Recovery Kit Administration Guide

How To Manage Energy At An Energy Efficient Cost

Energy Management in a Cloud Computing Environment

Achieve more with less

An Oracle Technical Article October Certification with Oracle Linux 5

Patch Management for Red Hat Enterprise Linux. User s Guide

Parallels Desktop Enterprise Edition

SWsoft, Inc. Plesk File Server. Administrator's Guide. Plesk 7.5 Reloaded

Deploying a private database cloud on z Systems

CA Aion Business Rules Expert r11

Lotus Foundations Start Getting Started

Network Printing In Windows 95/98/ME

How To Migrate To Redhat Enterprise Linux 4

Centrify-Enabled Samba

Cumulus 6 HELIOS Companion 2.0. Administrator Guide

Lotus Sametime. FIPS Support for IBM Lotus Sametime 8.0. Version 8.0 SC

ERserver. iseries. Printing

Continuous access to Read on Standby databases using Virtual IP addresses

IBM Tivoli Web Response Monitor

Restoring a Suse Linux Enterprise Server 9 64 Bit on Dissimilar Hardware with CBMR for Linux 1.02

SuSE Linux High Availability Extensions Hands-on Workshop

NCD ThinPATH Load Balancing Startup Guide

Distributed File System

IBM Software Group Enterprise Networking Solutions z/os V1R11 Communications Server

Enabling Backups for Windows and MAC OS X

8 NETWORK SERVERS AND SERVICES FUNDAMENTALS

How to Configure Access Control for Exchange using PowerShell Cmdlets A Step-by-Step guide

Transcription:

Session: 42006 47TC 7 Using the Linux Samba Client with NetServer Vern Yetzer yetzer@us.ibm.com April 2002 8 Copyright Corporation, 2002. All Rights Reserved. This publication may refer to products that are not currently available in your country. makes no commitment to make available any products referred to herein.

Objectives: 1. Understand the Linux client support provided by AS/400 NetServer in V5R1. 2. Learn to use Samba client utilities like smbclient, smbmount and smbprint. 3. Learn to resolve common issues encountered when using Samba with AS/400 NetServer.

Agenda What can this do for me? What is Samba? NetServer Support for Samba Getting Connected using Samba Useful Samba Client Utilities Troubleshooting Tips More Samba Information

What can Samba do for me? Use Linux workstations to access data and applications on. Replace Microsoft desktops with Linux workstations and continue to access the same data on your. Migrate workstation/application environments to Linux and maintain connectivity with data on your.

What is Samba? www.samba.org

What is Samba? Samba is an Open Source file and client compatible with Microsoft Networking, that comes with many current distributions of Linux. SaMBa - Unix implementation of the SMB protocol (CIFS) maintained by the Samba Team. Provides many functions similar to those provided by Windows Networking, such as file access, name serving, and browse mastering.

What is Samba? A common way to get at the Network Neighborhood Free, Popular Improving Licensed under GPL Highly configurable Vendor independent Essential to the value proposition of Linux on

NetServer Support for Samba The New Support Stand-alone Linux client NetServer V5R1 + Linux PTFs V5R1 LPAR Linux Partitions Samba is client to local LPAR #1 and remote NetServer LPAR1 OS/400 V5R1 LPAR2 OS/400 V4R5 Primary Partition LPAR3 Linux LPAR4 Linux Network

Getting Connected Using Samba 1. Apply all the PTFs on the. 2. Make sure your Linux workstation is running a supported kernel version. 3. Install the Samba client on the Linux workstation. 4. Use a Samba utility to connect to the NetServer.

Getting Connected using Samba Apply the V5R1 PTFs Apply these PTFs to 5722-999 MF27247 - general MF27248 - file MF27249 - print MF27294 - locking MF27295 - security Apply this PTF to 5722-SS1 SI02179 - XPF

Getting Connected using Samba Checking the kernel level Kernel version is not the distribution. Redhat 7.2 vs kernel 2.4.18 Kernel version convention: major.minor.patchlevel If minor is odd (e.g. 2.5.x), it is a development version - BEWARE If minor is even (e.g. 2.4.x), it is a stable version. 2.4.x kernel is required to connect to NetServer. Patchlevel 4 is required by service to provide contracted support. EXAMPLE $ uname -a Linux samwise 2.4.9 #1 Sun Apr 8 19:37:14 EDT 2001 i586 unknown kernel version

Getting Connected using Samba Checking the Samba Version: Most Linux distributions use a RPM (Redhat Package Manager) method of deploying software. Samba consists of 1 or more packages depending on your version and distribution. To determine if you have Samba installed use the following command: Example 1: RedHat Example 2: SuSE $ rpm -qa grep samba $ rpm -qa grep smb samba-common-2.2.1a smbclnt -2.2.0a-9 samba-client-2.2.1a samba-2.2.1a

Getting Connected using Samba Installing Samba Acquire the Samba package From a distribution CD From the web (e.g. www.samba.org) Backup any Samba config files that already exist on your system. smb.conf (in /etc/samba or /etc) smbpasswd smbusers /etc/rc.d/init.d/smb /etc/pam.d/samba Install the package using a graphical utility or rpm. rpm install example: $ rpm -ivh samba-client-2.0.7.4.i386.rpm

Useful Samba Client Utilities smbclient smbmount smbumount smbprint nmblookup Notes: Different versions of Samba may come with other utilities, but has not tested the interoperability of these utilities with NetServer. Although smb.conf is primarily a Samba configuration file, these client utilities may scan it and make use of some options such as "wins ".

Useful Samba Client Utilities - smbclient Samba SMB client function Like ftp session put/get Linux Box smbclient SMB Server

Useful Samba Client Utilities - smbclient Command line utility similar to FTP, but using SMB protocol FTP-like syntax (get, put, lcd) Can be used in shell scripts and files just like FTP Attempts to connect to when invoked General command form smbclient servicename[-u username][options] servicename = and share name to connect to options = man smbclient to see all the options

Useful Samba Client Utilities - smbclient 1. Obtain a list of available shares. $ smbclient -L //mynetsvr -U user 2. Connect to an NetServer share. $ smbclient //mynetsvr/myshr -U user1 3. Using smbclient commands. smb: \> cd mydir smb: \mydir> put myfile.txt

Useful Samba Client Utilities - smbmount Linux Samba client function Equivalent to "mapping a network drive" in Windows Linux Box smbmount # mount -t smbfs //mynetsvr/root on /mnt type smbfs (0) SMB Server

Useful Samba Client Utilities - smbmount smbmount maps the smbfs file system. Instead of drive letters, the smbfs file system is mounted over a mountpoint. Normal Linux commands and APIs are used to interact with the smbfs file system. root authority is required to mount an arbitrary file system. There is no limit to the number of mount-points you can have. /etc/fstab file

Useful Samba Client Utilities - smbmount 1) Mount a share specifying user options. # smbmount //mynetsvr/smbshare /usr/mnts/as400 -o username=smbuser,password=passwd 2) Determine which shares have been mounted. # mount -t smbfs or # cat /proc/mounts grep smbfs

Useful Samba Client Utilities - smbumount Samba equivalent of NET USE X: /DELETE in Windows Same authority restrictions as smbmount The only argument is the path of the mount point Will fail if the actual connection has ended To cleanup, root must use umount to remove these entries Example: # smbumount /usr/mnts/as400

Useful Samba Client Utilities - smbprint A shell script, but not used as a command line utility (/usr/bin) Redirects lpr type output to the smbclient utility. Generally, lpr/lpd is preferred since they are native Linux services May be implemented differently for each distribution, check the smbprint script for instructions and expected file locations. AFP and SCS printing are not supported through Samba. Use print configuration tools if they are available with your distribution.

Useful Samba Client Utilities - smbprint How to: 1. Create an OUTQ on the. 2. Create a printer share on the. 3. Config the /etc/printcap file. Use GUI utilities like printtool if available 4. Restart the lpd daemon. $ /etc/rc.d/init.d/lpd restart 5. Print the file. $ lpr -P myprinter myfile

Useful Samba Client Utilities - nmblookup Samba equivalent of nbtstat in Windows Useful for resolving connectivity issues. Use -S option to perform a node status request (like nbtstat -a) nmblookup does not use Domain Name Service (DNS). $ nmblookup -S myworkstation querying mylinuxworkstation on 9.X.X.255 9.X.Y.Z mylinuxworkstation<00> Looking up status of 9.X.Y.Z receiving 9 names...

Troubleshooting Tips smbclient problems Socket errors on smbclient connection (write_socket_data error) NetServer has been ended since the connection was established smbclient queue command doesn't show the names of the shared output queue entries. File names being printed are not available on the implementation.

Troubleshooting Tips smbmount problems Mount of a share fails. The system name is unknown. There is a name resolution issue. Things to check: TCP/IP configured correctly and active on Linux AS/400 NetServer is active and named correctly If you and client are not on the same subnet, WINS or local name resolution must be configured on the client. You receive "session request to sysname failed" message, then smbmount works. There is a mismatch between the name used by the client and those recognized by NetServer. Change Server Alias to *SYSTEM or configure WINS on Linux client.

Troubleshooting Tips smbfs problems "ls -l" on a directory shows all files owned by the same user SMB protocol doesn't handle this information. All objects will be owned by the user specified on the mount command. Can't change the owner of a file. You can't change the owner of a file unless you are already the owner. Authority problems for users accessing files in a mounted file system. SMB protocol doesn't handle the needed Linux authorities. Check authorities on the system, as well as the perceived authorities on the Linux system. You may need to remount with a different UID and fmask/dmask permissions specified.

Troubleshooting Tips Many more troubleshooting tips are available on the NetServer Linux web page. Troubleshooting FAQs for the Samba client link

More Samba Information NetServer Linux web page http://www.ibm.com/s/e/iseries/net/linux.htm Samba web pages http://www.samba.org Up to date kernel information http://www.kernel.org Linux http://www.ibm.com/iseries/linux http://www.linux.org

Trademarks and Disclaimers 8 Corporation 1994-2002. All rights reserved. References in this document to products or services do not imply that intends to make them available in every country. The following terms are trademarks or registered trademarks of International Business Machines Corporation in the United States, other countries, or both: AS/400 AS/400e e (logo) business (logo) OS/400 Lotus, Freelance Graphics, and Word Pro are registered trademarks of Lotus Development Corporation and/or Corporation. Domino is a trademark of Lotus Development Corporation and/or Corporation. Linux is a registered trademark of Linus Torvalds. SuSE is a registered trademark of SuSE AG. Red Hat and RPM are trademarks of Red Hat, Inc in the United States and other countries. Java and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the United States, other countries, or both. Microsoft, Windows, Windows NT, and the Windows logo are trademarks of Microsoft Corporation in the United States, other countries, or both. UNIX is a registered trademark of The Open Group in the United States and other countries. SET and the SET Logo are trademarks owned by SET Secure Electronic Transaction LLC. Other company, product and service names may be trademarks or service marks of others. Information is provided "AS IS" without warranty of any kind. All customer examples described are presented as illustrations of how those customers have used products and the results they may have achieved. Actual environmental costs and performance characteristics may vary by customer. Information in this presentation concerning non- products was obtained from a supplier of these products, published announcement material, or other publicly available sources and does not constitute an endorsement of such products by. Sources for non- list prices and performance numbers are taken from publicly available information, including vendor announcements and vendor worldwide homepages. has not tested these products and cannot confirm the accuracy of performance, capability, or any other claims related to non- products. Questions on the capability of non- products should be addressed to the supplier of those products. All statements regarding future direction and intent are subject to change or withdrawal without notice, and represent goals and objectives only. Contact your local office or authorized reseller for the full text of the specific Statement of Direction. Some information in this presentation addresses anticipated future capabilities. Such information is not intended as a definitive statement of a commitment to specific levels of performance, function or delivery schedules with respect to any future products. Such commitments are only made in product announcements. The information is presented here to communicate 's current investment and development activities as a good faith effort to help with our customers' future planning. Performance is based on measurements and projections using standard benchmarks in a controlled environment. The actual throughput or performance that any user will experience will vary depending upon considerations such as the amount of multiprogramming in the user's job stream, the I/O configuration, the storage configuration, and the workload processed. Therefore, no assurance can be given that an individual user will achieve throughput or performance improvements equivalent to the ratios stated here. Photographs shown are of engineering prototypes. Changes may be incorporated in production models.