samba question


Forum: Other Help Topics
Topic: samba question
started by: subarus

Posted by subarus on Jan. 09 2005,03:17
Hi, I am running livecd. How do I browse DSL comp via samba from another DSL machine?

I have edited the /opt/samba/smb.conf to allow sharing but no success. after googling for 2 days, I discovered that I have to restart samba using 'smb restart' or 'samba restart' but samba.dsl does not have smb or samba.

I also notice that samba server is not running (ps -ef) only Linneigbourhood. I tried smbd  but no luck.

---------------------- smbstatus errors on server ----------------
root@box:/opt/samba# smbstatus

Samba version 2.2.9
Service      uid      gid      pid     machine
----------------------------------------------

No locked files
-------------------------------------------------------------------------------------

--------------- samba status of server from client perspective ---------
root@box:~# smbclient -L <censored server ip addr>
added interface ip=<censored ip addr> bcast=<addr> nmask=255.255.255.0
Password:
Domain=[DELI] OS=[Unix] Server=[Samba 2.2.9]

       Sharename      Type      Comment
       ---------      ----      -------
       public         Disk      Public Stuff
       suburusdir       Disk    Subaru's Service
       pchome         Disk      PC Directories
       myshare        Disk      Arigato's and Gozaimasu's stuff
       IPC$           IPC       IPC Service (Samba Server)
       ADMIN$         Disk      IPC Service (Samba Server)

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

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



on the client machine I tried smbtree (0.9.2) but I dont see my server. ping confirms the server exist. I can ssh, ftp but no luck with samba. Linneighburhood  works perfectly to browse Windows machines.. the mount point is ~/mnt/server/share , i can have access using emelfm. I would like to do the same for shared files on dsl machines. how do i do it?

I also tried the Add button in linneighborhood, brought a piece of paper to my dsl server to write/confrim the ip addr ( although I can easily do that by probing my router) entered the address into linneighborhood but no luck

Posted by samba on Jan. 09 2005,07:20
After editing the /opt/samba/smb.conf you need to run from terminal

sudo ifup
sudo smbd start
sudo nmbd start

Posted by subarus on Jan. 09 2005,07:31
Got It !!  Samba is fully working (as a file server, NOT file transfer) from DSL to DSL. It has been working from Windows tp DSL out-of-the-box, will check if it works from DSL to Windows later. I am writting this down so I can retrace my steps to find out what actually went on.

I dont know exactly what I did.. but these are chronological events as far as I could remember. Dont know which of these steps or combo of steps did it though:

1) Thought that since both client and server has the same name (box) since i run livecd, I changed the client name to 'T41'
user@T41:~# smbtree -U% ---> got nothing from server
2) on server: start to laboriously uncommenting each damn line like an idiot
server:/opt/samba/smb.conf  workgroup = WORKGROUP
server string = Samba Server
host allow = <something>
smbtree at client see NOTHING
3)  edit more lines in smb.conf
security=share
client sees Nothing
4) socket options = TCP+NODELAY
local master = no
os level =20
domain master = yes
client sees nothing
5) preferred master = yes
wins support = yes
nothing
all these while smbclient -L localhost sees all shares
smbclient -L server-ip sees all shares
but linneighborhood and smbtree cant see it
6) At this point I spend like 2.5 days and was pretty pissed. Started to readup Knoppix docs , readup slackware docs, redhat docs; consider changing distro again reluctantly. realised that other distros kept refering to 'samba start, smb start' but about 9 pages down google search I saw smbd -D; nmbd -D command
7) on server side : kill -9 `pidof smbd`
smbd -D; nmbd -D
LO and BEHOLD; smbtree on client finally sees the server
refresh on linneighborhood sees nothing; but add command finally sees the server, mount it and did some sanity check, everything automagically works !!!

Posted by subarus on Jan. 09 2005,07:37
Quote (Guest @ Jan. 09 2005,02:20)
After editing the /opt/samba/smb.conf you need to run from terminal

sudo ifup
sudo smbd start
sudo nmbd start

yes I think the 2 commands ; smbd start, nmbd start what finally did it for me. Thanks for sharing
Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.