LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-12-2005, 04:00 PM   #1
koodoo
Member
 
Registered: Aug 2004
Location: a small village faraway in the mountains
Distribution: Fedora Core 1, Slackware 10.0 | 2.4.26 | custom 2.6.14.2, Slackware 10.2 | 11.0, Slackware64-13
Posts: 345

Rep: Reputation: 32
Please Demistify Samba


Hi,
I am a Linux user. I use Fedora Core1. I've recently connected to a network. All the other users on the network are windows users.They have shared some of their drives like
software (D
drive on the network. I don't know how i can access their
shared drives.I know i will have to use samba and edit the samba.conf file and encrypt my passwords and set a username.... etc.
I've read many articles but to no avail. Almost all articles deal with sharing my own files over the network. But what i want actually is to access the files of other users who are using windows
I also tried editing the samba.conf file and setting my workgroup and all but with no success.
I start the samba server and try to connect to a windows machine with ip say 10.10.27.202 who has shared his D drive over the network with command like
[root@localhost koodoo]# mount -t smbfs //10.10.27.202/D /mnt/share

and then it asks for a password. I don't know what this password is about and neither does my windows friend because he did not set any password when he enable file sharing on his machine so i just press enter and get the error message
Password:enter
24394: tree connect failed: ERRDOS - ERRnosuchshare (You specified an invalid share name)
SMB connection failed

if i give any password i get the same error message

Please give me an example of how to access my friend's shared drive through my Linux box
He has shared his D drive over the network
Complete name of the drive is Software (D
His I.P is 10.10.27.202 on our local lan

I've posted this question on many forums and i've got very geek answers which i could not understand
please consider that i am a newbie and please give me something that would get me out of this problem
I guess this forum is for helping out Linux newbie's who are stuck up like me
 
Old 02-12-2005, 04:23 PM   #2
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
I always use this command to check if I do it right:
Code:
smbclient -L \\\\computername-to-connect-to
I get this output for example:
Quote:

Sharename Type Comment
--------- ---- -------
C Disk
D Disk
IPC$ IPC Externe interprocescommunicatie (IPC)

Server Comment
--------- -------

Workgroup Master
--------- -------
You have to have the smbclient package to do that though. After that I run smbclient to enter it. It's easier mounting but I haven't done the kernel recompile yet to include the file system. Hope that helps a bit.
 
Old 02-12-2005, 04:29 PM   #3
koodoo
Member
 
Registered: Aug 2004
Location: a small village faraway in the mountains
Distribution: Fedora Core 1, Slackware 10.0 | 2.4.26 | custom 2.6.14.2, Slackware 10.2 | 11.0, Slackware64-13
Posts: 345

Original Poster
Rep: Reputation: 32
I wrote the command an got

[koodoo@localhost koodoo]$ smbclient -L \\\\swati
PasswordI just pressed Enter here)

Sharename Type Comment
--------- ---- -------
E$ Disk Default share
IPC$ IPC Remote IPC
D$ Disk Default share
G$ Disk Default share
F$ Disk Default share
F Disk
ADMIN$ Disk Remote Admin
C$ Disk Default share
SOFTWARE (D) Disk

Server Comment
--------- -------

Workgroup Master
--------- -------

What is the password about
 
Old 02-12-2005, 04:33 PM   #4
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
Password is the password for the network or the windows box itself. I don't know which it is actually but if you got that output you don't need the password.

You can access one of those shares simply now with:
Code:
smbclient \\\\swati\\
 
Old 02-12-2005, 04:41 PM   #5
koodoo
Member
 
Registered: Aug 2004
Location: a small village faraway in the mountains
Distribution: Fedora Core 1, Slackware 10.0 | 2.4.26 | custom 2.6.14.2, Slackware 10.2 | 11.0, Slackware64-13
Posts: 345

Original Poster
Rep: Reputation: 32
Thanks a lot

I tried the command

mount -t smbfs //swati/"SOFTWARE (D)" /mnt/share
Password: (I again pressed enter here)
[root@localhost koodoo]#

It worked just fine and i could access his shared drive

Thanx a great deal. It helped me a lot

One more question
Where does samba come into play here coz my samba server was not running when i issued this command and still i was able to access the shared drive
 
Old 02-12-2005, 04:45 PM   #6
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
You mean the samba daemons, smbd and nmbd aren't running?
 
Old 02-12-2005, 04:49 PM   #7
koodoo
Member
 
Registered: Aug 2004
Location: a small village faraway in the mountains
Distribution: Fedora Core 1, Slackware 10.0 | 2.4.26 | custom 2.6.14.2, Slackware 10.2 | 11.0, Slackware64-13
Posts: 345

Original Poster
Rep: Reputation: 32
Ya i guess so coz before the mount command i wrote

[root@localhost koodoo]# /etc/init.d/smb stop
Shutting down SMB services: [ OK ]
Shutting down NMB services: [ OK ]
 
Old 02-12-2005, 04:54 PM   #8
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
Maybe it's got something to do with how smbclient works. Could be it automatically runs the daemons or something. I don't know.
 
Old 02-12-2005, 04:59 PM   #9
koodoo
Member
 
Registered: Aug 2004
Location: a small village faraway in the mountains
Distribution: Fedora Core 1, Slackware 10.0 | 2.4.26 | custom 2.6.14.2, Slackware 10.2 | 11.0, Slackware64-13
Posts: 345

Original Poster
Rep: Reputation: 32
actually i just wanted ti check what would happen if my samba server was not running so what i did was


[root@localhost koodoo]# /etc/init.d/smb start
Starting SMB services: [ OK ]
Starting NMB services: [ OK ]
[root@localhost koodoo]# /etc/init.d/smb stop
Shutting down SMB services: [ OK ]
Shutting down NMB services: [ OK ]
[root@localhost koodoo]#


[koodoo@localhost koodoo]$ su
Password: (Entered super user password here)

[koodoo@localhost koodoo]$ mount -t smbfs //swati/"SOFTWARE (D)" /koodoo/home/share

and it worked fine
 
Old 02-12-2005, 04:59 PM   #10
koodoo
Member
 
Registered: Aug 2004
Location: a small village faraway in the mountains
Distribution: Fedora Core 1, Slackware 10.0 | 2.4.26 | custom 2.6.14.2, Slackware 10.2 | 11.0, Slackware64-13
Posts: 345

Original Poster
Rep: Reputation: 32
Thanx anyways

You've been a great help
 
Old 02-12-2005, 08:21 PM   #11
floppywhopper
Member
 
Registered: Aug 2004
Location: Albany, Western Australia
Distribution: Mageia 4, Debian 8, SME 9, IP Fire
Posts: 629
Blog Entries: 2

Rep: Reputation: 89
Try installing Webmin and / or SWAT
they can help you configure Samba using a gui front end

plenty of good docs here

http://us1.samba.org/samba/

http://www.oreilly.com/catalog/samba2/book/toc.html

hope this helps
live long and prosper
floppy
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba/Cups print sharing problems (/var/spool/samba files) Gates1026 Linux - General 9 06-23-2013 02:33 AM
I need the content from thegoldenear.org/toolbox/unices/samba/samba-setup.html rtg2001 Linux - Networking 1 08-05-2004 06:54 PM
Samba share - network name no longer available when browsing samba from win2k dorango Linux - Software 0 03-02-2004 02:02 PM
Samba: Authenticate Linux-Clients in Samba Domain & Mount mule Linux - Software 0 12-10-2003 02:21 AM
when i restart SAMBA,it says:stop samba failed,start SAMBA OK! whepin Linux - Networking 3 12-26-2001 06:54 AM


All times are GMT -5. The time now is 01:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration