Doing the Windows 2000 Samba
Access Windows 2000 shares from LinuxShares enabled on the Windows 2000 machine can be accessed with either smbclient or smbmount.You should be aware that sharing is slightly different than in Windows 9X; you need to click on the New Share button and give the share a name, rather than the administrative name, ending with a $, that is the default. Windows 2000 also does not allow anonymous browsing; you must browse as a user, with a password.
To use smbmount as a normal user (not root), you'll need to set smbmnt and smbumount suid:
chmod +s /usr/bin/smbmnt chmod +s /usr/bin/smbumountTo mount a share, create a mount point and mount it:
mkdir win2k smbmount //larry/cTo unmount:
smbumount win2kSmbclient is an ftp type interface to the share. It is called like this:
smbclient //larry/win2kYou will then get a prompt, and you can use commands like ls, get, etc. Type ? to get a list of commands:
[stew@moe mount]$ smbclient //larry/CDrive Password: Domain=[AYSWNET] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager] smb: \> ?There is also a GUI client for X, called LinNeighorhood, that gives you a Network Neighborhood-style browser. This can be downloaded from: http://www.bnro.de/~schmidjo/
Backing up client machines from LinuxSamba also has a nice feature I use at work to back up the client machines over the network. You make the client hard drive available as a share, then use smbtar to back up the whole drive to tape. To back up: smbtar -v -s computername -x drivename -t /dev/st0 Where st0 is your tape drive device. To restore: smbtar -v -r -s computername -x drivename or filename(s) -t /dev/st0 Hopefully you've got enough information at hand now to integrate Linux and Windows 2000 on your network. The Samba team intends to introduce additional functionality by release 3, to enhance integration with the new Windows networking protocols and capabilities. Until then, you can still service and access the core features of SMB and CIFS. For the most part, things work about the same from the Linux end as for previous versions of Windows, unless you choose to enable the Domain Master capability. If you have any questions, feel free to send me an e-mail at firstname.lastname@example.org.
About AuthorStew Benedict is a systems administrator for an automotive manufacturer in Cleveland, Ohio. He also is a freelance consultant, and runs AYS Enterprises, which specializes in printed circuit design, Microsoft Access solutions for the Windows platforms, and utilizing Linux as a low-cost alternative to commercial operating systems and software. He has been using and promoting Linux since about 1994. When not basking in the glow of a CRT, Stew enjoys time with his wife, daughter, and two dogs at his future (not too much longer!) retirement home overlooking Norris Lake in the foothills of the Smoky Mountains in Tennessee.
Page 5 of 5