[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: RE: Samba Setup



That's easy..i.e. viewing and accessing a Windows 95/98/NT share from a
Linux box. Use smbclient or smbmount. For example, say you have a shared
directory on the M$ Windows box ("c:\My Documents" on the computer
"Windoze"), on your Linux box, execute the following to make sure the share
is available for either viewing/ accessing or mounting:

> smbclient -U% -L windoze

I can't quite recall how the output screen looks like (since I am writing
this using a M$ Windoze program...yup would you believe it! The company
which I work for does not allow any other OS! ^@#%&) but it should show you
the the available shares on Windoze and also the names of other computers on
the same subnet (domain?).

To access the shared directory (similar to using ftp) issue the following
command:

> smbclient "//windoze/My Documents" -U username	(Note the inverted
commas as the path includes a space)

You will be prompted for a password:

> Password:

Type in the corresponding password for the user username.

You should then see the smb prompt:

smb>

The commands should be similar to ftp commands.

If you want to skip the password step, execute the following:

> smbclient "//windoze/My Documents" -U username -P password

But this allows someone overlooking you shopulder to view your password in
clear text (which is why I prefer the latter without the -P).

For mounting a smb share, execute the following:

> smbmount -o username=username,password=password "//windoze/My Documents"
/mount point/

To check that the mount was successful, do a:
> df -h

I use this quite frequently in my previous company for performing backup of
Windoze boxes to Linux boxes using Samba!


Patrick Cheong

E-mail: patrick_cheong@astro.com.my



> -----Original Message-----
> From:	Walter Williams [SMTP:wwilliams@mountain-cad.com]
> Sent:	Friday, July 07, 2000 3:23 AM
> To:	Debian ListServer (E-mail)
> Subject:	RE: RE: Samba Setup
> 
> Hello 
> 
> I setup and got Samba working with a Win95 machine.
> Under the "My Computer" you right click on the item
> you want to share and select "Sharing" from that
> menu and set up the item for sharing. It's pretty
> easy to understand. In the Control Panel, Network,
> setup your you'r Windows system to have the same 
> "Workgroup" name that you are in on your Linux system.
> And give your Windows box a unique "Computer name".
> Then you have to edit your samba.conf file on your 
> Linux system according to the instructions. I was
> able to edit most of this without looking at the 
> instructions much, as most of the file samba.conf 
> file is setup in a logical fashion. I used a text 
> editor. You can even set up "your" Linux home 
> directory as a share. Then when you login on 
> Windows and click on "Network Neighborhood" 
> you will have access to your home directory. 
> You can even setup your home directory to be seen 
> from "My Computer" be doing a little drive mapping.
> FYI, you have to have your Windows network setup 
> with an IP address and NetEUI for all this to work.
> 
> The thing I never did figure out how to do was to 
> access the windows shares from Linux. This was 
> because my wife started whining about how since
> I setup a network that it was slowing down her
> computer.
> 
> Well I hope this helps
> Walt in Colorado
> 
> 
> -----Original Message-----
> From: Kent West [mailto:westk@nicanor.acu.edu]
> Sent: Thursday, 06 July, 2000 12:12 PM
> To: Jay Kelly
> Cc: debian-user@lists.debian.org
> Subject: Re: Samba Setup
> 
> 
> Jay Kelly wrote:
> > 
> > Hello All,
> > I thought I would take a crack at Samba so I installed Samba. Now
> > what do I need to do for my window98 clients to log in to samba? What
> > change to my network setting will I need to make? Will my Primary
> Network
> > Login be Microsoft Family or Client for Microsoft Networks? Do I need
> > to change my Domain to point to Samba?
> > Any help would be greatly appreciated.
> > Thanks
> > Jay
> 
> I'm not sure how to set up Samba to function as a domain
> controller, which your question implies you're trying to do.
> However, if you're just trying to share out stuff, like hard
> drives, folders, and printers, do the following.
> 
> You'll need to edit /etc/samba/smb.conf to "define" your
> "shares"; with the comments sprinkled throughout, it's fairly
> intuitive for the basics. (You can also use SWAT (apt-get install
> swat) for a web-based configuration tool, but I've never had any
> success with it.)
> 
> Then, IIRC, you'll need to run smbpasswd to assign a
> username/password to the people you want to give access to.
> 
> Finally, on the Windows box, you would simply map a drive to
> \\YourLinuxComputer'sName\TheShareDefinedInSmb.conf. Your logon
> will probably need to be Client for Microsoft Networks, but I'm
> not sure.
> 
> -- 
> Kent West
> kent.west@infotech.acu.edu
> 
> 
> 
> 
> 
> 
> -- 
> Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org <
> /dev/null



Reply to: