openSUSE Forums > Network/Internet » SAMBA problems once more

Go Back   openSUSE Forums > Network/Internet
Forums FAQ Members List Search Today's Posts Mark Forums Read

Network/Internet Questions about internet applications, network configuration, usage (SAMBA, network printing, NFS)

Reply
Page 1 of 2 1 2
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-Jul-2009, 10:48
Puzzled Penguin
 
Join Date: Apr 2009
Posts: 10
Mirakulix hasn't been rated much yet
Default SAMBA problems once more

Hi

I've been trying to set up samba for 2 weeks (on and off) and can't find my configuration error!
System is a SUSE 11.1 (DVD) KDE4 in a VMWARE, default install (installed only for this tests) with servers and kernel development.
1.) using Swerdna's tutorial, I found the smbfs is not startable (returning 6: service not configured) (I thought, this daemon starts once per smb client??)
2.) the command
mount.cifs --verbose -o username=SERVERUSER,password=SERVERPASSWORD //127.0.0.1/documents /home/steme/Documents/fileserver1
bash: //127.0.0.1/documents: Datei oder Verzeichnis nicht gefunden
gives file or dir not found.

- both share "documents" and dir "fileserver1" exists
- smbpasswd is set
- firewall is off
- all commands entered as root
- smbclient -L 127.0.0.1 shows the share
- access per Windows or even per dolphin works
- workgroup of client and server is set to the same name

I also tried it with a completely updated system, same results.

Any other information required / any ideas?
Reply With Quote
  #2 (permalink)  
Old 03-Jul-2009, 10:55
Magnu5's Avatar
Puzzled Penguin
 
Join Date: Mar 2009
Location: Finland
Posts: 8
Magnu5 hasn't been rated much yet
Send a message via Skype™ to Magnu5
Default Re: SAMBA problems once more

If You have shared the directory "fileshare1"
then the syntax is wrong, try:
Code:
mount.cifs --verbose -o username=SERVERUSER,password=SERVERPASSWORD //127.0.0.1/fileserver1
Hope it is some help to you.
Reply With Quote
  #3 (permalink)  
Old 03-Jul-2009, 11:12
Magnu5's Avatar
Puzzled Penguin
 
Join Date: Mar 2009
Location: Finland
Posts: 8
Magnu5 hasn't been rated much yet
Send a message via Skype™ to Magnu5
Default Re: SAMBA problems once more

Ahh, never mind, you syntax seems right now that I've taken another look.
So I had few beers..
Reply With Quote
  #4 (permalink)  
Old 03-Jul-2009, 15:28
swerdna's Avatar
Administrator
 
Join Date: Mar 2008
Location: Oz
Posts: 5,384
swerdna has great reputationswerdna has great reputationswerdna has great reputationswerdna has great reputationswerdna has great reputationswerdna has great reputation
Default Re: SAMBA problems once more

I've got a mental note to file a bug on that smbfs problem (won't start). But that won't prevent a mount, simply delays the mount during boot up.

You should make the VM machine obtain an IP on the same subnet as your other machines (not 127.0.0.1 -- more like 192.168.33.Z or whatever). In my setup I use VMware Server and "bridged" networking. That makes my VM a fully fledged member of the LAN. Then mount.cifs works fine.
__________________
Drop in and visit some time.
Reply With Quote
  #5 (permalink)  
Old 04-Jul-2009, 06:56
Puzzled Penguin
 
Join Date: Apr 2009
Posts: 10
Mirakulix hasn't been rated much yet
Question Re: SAMBA problems once more

Hi swerdna

the delayed smb boot I know, but this is something I can live with.

The mount to 127.0.0.1 is the last of several mount configurations (e.g. 2 bridged VM's, bridged VM to host, also host-only configurations) I tried (at least THIS should work!!).
The bridged and real IP tests I've done in every combination already...
funny thing is, in some other configuration it had worked on the real network (10.3? 11.0? don't remember, as I thought such simple things always work :-)

just rechecked:
2vm's 11.1, kde4 bridged, same subnet, server set up SUSE basic with samba (the history of the client is mixed, but should be irrelevant as it is a basic kernel function and also other clients behave exactly the same):
same result: bash: //192.168.128.131/documents: Datei oder Verzeichnis nicht gefunden (file or directory not found)

What next? Wait for SUSE 12.5 :-( thats way too long, I'd like to make use of my pc a little earlier ;-)
I DON'T WANT to have to return to a windows server!!!

What I don't know: Is it a mount.cifs or a samba problem? What is the difference between accessing a share via smb:// (dolphin / konqueror), a win client or mount.cifs? Maybe somebody can help me with some background knowledge...
Reply With Quote
  #6 (permalink)  
Old 04-Jul-2009, 07:43
swerdna's Avatar
Administrator
 
Join Date: Mar 2008
Location: Oz
Posts: 5,384
swerdna has great reputationswerdna has great reputationswerdna has great reputationswerdna has great reputationswerdna has great reputationswerdna has great reputation
Default Re: SAMBA problems once more

I assumed throughout reading the posyts that mount.cifs works. I usually use mount -t cifs. So I tried your version (i.e. mount.cifs) and got these errors:
Quote:
improperly formatted UNC name. --verbose does not begin with \\ or //
Mounting the DFS root for domain not implemented yet
No ip address specified and hostname not found
Then just by switching to mount -t cifs and dropping the "--verbose" bit, then it worked fine. So I suggest drop the verbose and try this:
mount -t cifs -o username=SERVERUSER,password=SERVERPASSWORD //IP_Address/documents /home/steme/Documents/fileserver1

I still think a real IP address would be required. If I use localhost address it just cracks up.
__________________
Drop in and visit some time.
Reply With Quote
  #7 (permalink)  
Old 05-Jul-2009, 02:03
Puzzled Penguin
 
Join Date: Apr 2009
Posts: 10
Mirakulix hasn't been rated much yet
Default Re: SAMBA problems once more

Same configuration, same result... no success

The mount -t cifs just directly implements the mount.cifs command (afaik), and this I used for the verbose to get more information.

Still it's interesting, that IPAdress works, but not localhost. This I will keep in mind.
Reply With Quote
  #8 (permalink)  
Old 05-Jul-2009, 02:26
swerdna's Avatar
Administrator
 
Join Date: Mar 2008
Location: Oz
Posts: 5,384
swerdna has great reputationswerdna has great reputationswerdna has great reputationswerdna has great reputationswerdna has great reputationswerdna has great reputation
Default Re: SAMBA problems once more

You said:
Quote:
Still it's interesting, that IPAdress works
Did the share mount when you used real IP address?
__________________
Drop in and visit some time.
Reply With Quote
  #9 (permalink)  
Old 05-Jul-2009, 14:55
Puzzled Penguin
 
Join Date: Apr 2009
Posts: 10
Mirakulix hasn't been rated much yet
Default Re: SAMBA problems once more

@swerdna: Sorry, I used a misleading expression: in your case the real IP adress worked. I didn't get it to work.



One other funny thing I encountered today:
I set up another (physical) computer to access the shares with samba, no success.
Then I tried the same physical access via mount -t nfs (nfs server installed parallel to the host's samba server) and got the same error message!?!
What kind of shielding services could be between mount and the server, but not in the line of a "winXP"/"dolphin smb://" access??
Reply With Quote
  #10 (permalink)  
Old 06-Jul-2009, 13:29
swerdna's Avatar
Administrator
 
Join Date: Mar 2008
Location: Oz
Posts: 5,384
swerdna has great reputationswerdna has great reputationswerdna has great reputationswerdna has great reputationswerdna has great reputationswerdna has great reputation
Default Re: SAMBA problems once more

Quote:
Originally Posted by Mirakulix View Post
@swerdna: Sorry, I used a misleading expression: in your case the real IP adress worked. I didn't get it to work.



One other funny thing I encountered today:
I set up another (physical) computer to access the shares with samba, no success.
Then I tried the same physical access via mount -t nfs (nfs server installed parallel to the host's samba server) and got the same error message!?!
What kind of shielding services could be between mount and the server, but not in the line of a "winXP"/"dolphin smb://" access??
It's beyond me.
__________________
Drop in and visit some time.
Reply With Quote
Reply
Page 1 of 2 1 2

Bookmarks

Tags
samba kde4 11.1


Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.2