Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 05-18-2005, 11:43 AM   #1
LQ Newbie
Registered: Apr 2005
Posts: 10

Rep: Reputation: 0
School switching some boxes to linux, showstopper: samba


My school is currently thinking about switching the computers in the computer science department from windows to linux (fedora).

But first, here is what the linux box has to be able to do.

Security (DONE)
Office Suit (DONE)
Java Compiler and Tools (DONE)
Print to tcp/ip printer. (DONE)
Connect to Mac-OS X samba-enabled shares (PROBLEMATIC)

Mounting the samba thing works fine, and I can see the shares, but when I connect to them, and enter in correct authentication, the authentication box reappears, as if saying I have the wrong password.

Also, some shares' names are truncated to 13 characters, and can cause problems while looking it up, why is that?

Any help would be _greatly_ apreaciated...
Old 05-18-2005, 01:35 PM   #2
Senior Member
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,506

Rep: Reputation: 100Reputation: 100
Have you run smpasswd on the Linux machine? Then (if you have) make sure you have in the Linux machine's smb.conf something like:

path = /usr/local/apache2/htdocs/php/yield_jean
guest ok = no
writeable = yes
create mode = 0777
directory mode = 0777
browseable = yes
public = no
username = jean
read list = jean
write list = jean
valid users = jean

(where of course, the smbpasswd user you added was called jean)

Then, when using OSX to go to the share (I use XP, so I'm guessing here) type the smbpasswd'ed username in the connect box, and the password you assigned. See man smbpasswd for more info.

Oh yeah - strange thing: to get this working with my Rh9 system and my Windows machines, I had to call smbpasswd TWICE for every user I wanted to add before it would work from the Windows machines.
Old 05-22-2005, 04:46 AM   #3
LQ Newbie
Registered: Apr 2005
Posts: 10

Original Poster
Rep: Reputation: 0
Hmm, I am trying to connect from the linux box to the mac box, not the opposite.

Anyways, I tried it again, here is the error msg:

[linux100@linux ~]$ smbmount //HServerX/Grade_10 /home/linux100/mnt -o workgroup=workgroup,username=07ib_damlaj
4037: session setup failed: ERRSRV - ERRbadpw (Bad password - name/password pair in a Tree Connect or Session Setup are invalid.)
SMB connection failed
[linux100@linux ~]$

Mind you, the password is correct but it keeps telling me that it isn't :-/.

There is a deadline for proving that a linux system can be implemented, so please help!
Old 05-22-2005, 05:18 AM   #4
LQ Newbie
Registered: Apr 2005
Posts: 10

Original Poster
Rep: Reputation: 0


It can't even connect to a share that doesn't have a password, here is the dump:

[linux100@linux ~]$ smbmount //HServerX/nopwd /home/linux100/mnt -o workgroup=workgroup,username=anonymous
Anonymous login successful
3664: tree connect failed: ERRSRV - ERRbadpw (Bad password - name/password pair in a Tree Connect or Session Setup are invalid.)
SMB connection failed
[linux100@linux ~]$

Whats really weird is that it actually says "Anonymous login successful" ... :-/
Old 05-22-2005, 05:44 AM   #5
LQ Newbie
Registered: Sep 2003
Location: watford UK
Distribution: Mepis 6.0
Posts: 28

Rep: Reputation: 15
I saw a post on the Apple discussions - server software site which said there were problems with OS 10.3 software with Samba shares more than 12 characters long - when connecting with Windows clients. I know it's not your problem, but it seems similar enough to mention. Personally I've had no end of trouble with windows 95, 98 and XP connecting to MAC OS 10 server samba shares. So much so that I eventually advised people to connect with ftp via a web browser (and even that mysteriously stopped working for some users (but not others) after a few weeks, and I had to delete and re-install the user).

Could you try NFS shares perhaps instead? - I think the OSX server guides seem to encourage this connection method for Unix based clients.

The fact remains that although the XServe is a very beautiful object, we are paying dearly to beta test the server software, which is decidedly flaky - then they bring out a new version which fixes some problems and creates others (don't even think about "mobile accounts"!) which we then pay for all over again, and beta test again. I can't help thinking that if we'd started off with Yellow Dog Linux, we'd have had more success, fewer problems and the learning curve would, with hindsight, have been only slightly steeper.

Old 05-22-2005, 07:55 AM   #6
Registered: Feb 2005
Distribution: Arch current, SuSe 10.1 32-bit, FreeBSD current, OpenBSD 4.0
Posts: 453

Rep: Reputation: 30
Unfortunately Apple's samba implementation is quite dubious. This includes 10.4. It all depends on your luck. In this case I would concentrate on OS X samba side to try and fix the problem. To see if linux is configured properly connect to windows shares. This will work if config is o.k. Unfortunately is is more tricky ( if at all) with OS X.


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 problem with 2 linux boxes muxman Linux - Software 2 07-10-2005 08:20 PM
School switching to linux, need advice idamlaj Linux - General 2 04-20-2005 04:09 PM
Samba, Smbpasswd, and Multiple Linux Boxes soopafresh Linux - Networking 2 08-02-2004 05:17 PM
Stopping users switching boxes off esteeven Linux - General 5 09-30-2003 06:07 PM
Samba with linux box, 2 win boxes, cable, router kuber Linux - Networking 2 09-04-2001 09:07 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:05 AM.

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