-   Linux - Networking (
-   -   School switching some boxes to linux, showstopper: samba (

idamlaj 05-18-2005 11:43 AM

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...

rylan76 05-18-2005 01:35 PM

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.

idamlaj 05-22-2005 04:46 AM

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!

idamlaj 05-22-2005 05:18 AM


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" ... :-/

alan_h404 05-22-2005 05:44 AM

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.


broch 05-22-2005 07:55 AM

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.

All times are GMT -5. The time now is 07:50 AM.