Log in

View Full Version : Networking (LAN) Imac + linux box



Posh Tourer :P
9th January 2006, 05:57
Ok, so I want to network two machines - a linux machine running Ubuntu, and an imac. I am using a LAN through ethernet and a router box. I have got each machine to ping the other, and I can see the linux box on the imac 'finder' (Network - linuxmusic - etc etc). But if I try and connect to find shares on the linux box, it starts thinking and goes no further (ie finder freezes, and I have to use force quit). When I try and go to network on the linux box, I get the following screenshots. I can log into the normal ones, but why do I have to log into casacaracol@linuxmusic, for instance? When I have to connect to xyz@123, it doesnt accept my passwords.

Can I stop the linux box wanting passwords to access itself on the network, and would this solve my problem from the imac? The linux box has a big HD with music on it that we want to be able to play from the iMac, which has the speakers etc. The linux box is the free internet computer for the hostel.

HELP!!!

skelstar
9th January 2006, 07:10
All I can think of is that you have to have sharing turned ON on your iMac, assume youre using SMB?, and when logging on from your LInux box, you enter the username and password of the account you want to access on your iMac.

Not much help, but good luck!

Posh Tourer :P
9th January 2006, 07:42
I have a few folders shared with SMB on the linux box... I can also use NFS, but samba appears to work. Perhaps I just dont know the correct passwords, though I have tried everything i have got. But I can get into the imac, but not xyz@imac. Ditto for 'linuxmusic'. This is the problem. If i click cancel, then I get nothing in the network window from the linux box....

I have sharing and windows sharing enabled on the imac...

I think the xyz@imac is for the user account, but those are the passwords that I have already used for the other windows (eg screenshot 3), and they dont work for things such as screenshot 1&2

The alternative is to disable passwords for network access perhaps??

skelstar
9th January 2006, 07:53
Dont know mate, limbimtimwin will be along soon no doubt. Hes pretty wizzy on the whole LINUX networking thing.

limbimtimwim
9th January 2006, 09:24
Can I stop the linux box wanting passwords to access itself on the network, and would this solve my problem from the imac? I am confused about your problem; you can't get to the shares from anywhere, correct?

You created the shares by right-clicking on the folder and choosing 'sharing' or whatever ubuntu called it..?

axxaa
9th January 2006, 09:31
Hi.
Yes you can setup the shares on your linux bot to be passwordless. If you've got kde installed, using konqueror right-click the on the directory you want & click the share option. There you can setup passwordless entry etc.
Otherwise the easiest is probably to use webmin to setup the shares.
Hope that helps.
Simon.

Posh Tourer :P
9th January 2006, 10:00
I am confused about your problem; you can't get to the shares from anywhere, correct?

You created the shares by right-clicking on the folder and choosing 'sharing' or whatever ubuntu called it..?

The problem is I cannot get the imac to play the music files on the linux box. I thought that this problem of passwords I got on the linux box might be something to do with it.... that and I know how to take screenshots on the linux box....

I created the shares by going to preferences / shared folders. They are entire volumes/partitions rather than just folders.

I only have to get 2 comps talking to each other, but they dont I cannot see individual files from either computer on the other. The linux wont let me see the imac at all, and the imac will let me see the other computer but when I ask finder to search for shares, it freezes, or at least doesnt respond for at least half an hour (got bored waiting after that and forced quit).

Oh and on the mac, you can access the local files via network / imac local etc in finder. On the linux box it asks me for passwords as per the screenshots below if I try and see the linux box via network places on the linux equivalent of finder (konquerer?)

Sniper
9th January 2006, 11:20
Never done much with linux, but it sounds like it is wanting to be difficult

Posh Tourer :P
9th January 2006, 12:19
cant see konquerer, so I dunno....still have no idea why I have to log into both linuxmusic and casacaracol@linuxmusic...... and where I might be able to find the passwords for that. What is webmin?
I need to be able to play the songs in realtime from the linux box on the imac. There isnt enough room to transfer them all....

limbimtimwim
9th January 2006, 12:56
Oh and on the mac, you can access the local files via network / imac local etc in finder. On the linux box it asks me for passwords as per the screenshots below if I try and see the linux box via network places on the linux equivalent of finder (konquerer?)

On the Linux end:

Please try connecting and attach /var/log/samba/log.smbd

There might also be a /var/log/samba/log.(machine_name) there, attach them too.

And do <pre>$ smbclient -L localhost</pre> and paste in the output.

EDIT: Just a thought, and the two computers on different subnets....?

Posh Tourer :P
9th January 2006, 14:29
casacaracol@linuxmusic:~$ $ smbclient -L localhost
bash: $: command not found

dunno about local subnets?

1.33 is the imac. There was a log for 1.34 (linux) but it was 0 bytes

Only just got on here as everyone is using it for the internet......

limbimtimwim
9th January 2006, 15:46
casacaracol@linuxmusic:~$ $ smbclient -L localhost
bash: $: command not foundDon't put in the '$' :-) *
dunno about local subnets?Paste in the output of of '$ ifconfig' from both machines. Mind you this isn't likely to be the issue :-)

Those logs are strangely quiet, like I would have expected to see messages about your failed attempt at accessing it earlier. Is there a /var/log/samba/log.nmbd file?

Is samba actually running?

What is the output of '$ smbstatus' ? An empty table? Or stuff like 'sessionid.tdb not initialised
/var/run/samba/connections.tdb not initialised'

I've had my head stuck inside Debian for awhile now, which isn't that different from Ubuntu. And the person across next to me runs Ubuntu, so we can probably figure this out :-)

EDIT: Have you read: http://help.ubuntu.com/starterguide/C/ch07.html ?

* It's kinda a convention, you use '$' to say 'do this at a non-root-user shell' You say '#' for a root shell

Posh Tourer :P
9th January 2006, 22:20
casacaracol@linuxmusic:~$ smbclient -L localhost
Password:
session setup failed: NT_STATUS_LOGON_FAILURE
casacaracol@linuxmusic:~$


casacaracol@linuxmusic:~$ smbstatus

Samba version 3.0.14a-Ubuntu
PID Username Group Machine
-------------------------------------------------------------------

Service pid machine Connected at
-------------------------------------------------------

No locked files

casacaracol@linuxmusic:~$

samba is running, but perhaps filebrowser is stopping me before I get to use it??

from the FAQ: From the Configuration drop-list select DHCP/Static IP address, then click OK. so which one is it?? I assume dynamic is ok because I am behind a router anyway...

3.

How do I add/edit/delete network users when using authentication?

(here (http://help.ubuntu.com/starterguide/C/ch07.html#addeditdeletenetworkusers)) could that be my issue??

limbimtimwim
10th January 2006, 14:02
3.
How do I add/edit/delete network users when using authentication?(here (http://help.ubuntu.com/starterguide/C/ch07.html#addeditdeletenetworkusers)) could that be my issue?? I can't get to the ubuntu site at the moment, but if have not created Samba users, then yeah, you will need too. Or make Samba use your main password file.

You need to use the 'smbpasswd' program as the root user.

Posh Tourer :P
10th January 2006, 23:12
iMac:~ caracol$ smbpasswd -a
When run by root:
smbpasswd [options] [username]
otherwise:
smbpasswd [options]

options:
-L local mode (must be first option)
-h print this usage message
-s use stdin for password prompt
-c smb.conf file Use the given path to the smb.conf file
-D LEVEL debug level
-r MACHINE remote machine
-U USER remote username
extra options when run by root or in local mode:
-a add user
-d disable user
-e enable user
-i interdomain trust account
-m machine trust account
-n set no password
-w PASSWORD ldap admin password
-x delete user
-R ORDER name resolve order

this is the output I get when I try and create samba users. We do now have progress, as I am able to get through the password boxes (see first post), and see the linux machine via network places on the linux machine. All it took was to set samba passwords for the accounts, which I have done for both machines, (but not for root on both machines). But, I am still not able to see the imac from the linux box. I can see the linux box from the imac as per first post.

Posh Tourer :P
11th January 2006, 00:11
Progress....

After restarting the linux box after creating a samba user on the mac, I now get teh following screenshots in order...

However, while looking at the imac on the linux box, the imac does not recognise the linux box. when I stop accessing the imac from the linux (on filebrowser), I can see the linux box on the imac.

BUT.... I still cant see the shares from the linux box, on the imac. It still does as per first post. I have tried to set up all the samba users as no password users. Perhaps the linux box still wants passwords for filesharing and network access? and if so, how can I stop it doing that (without using Konquerer - default system on Ubuntu is GNOME). When I installed ubuntu, it told me I could not have a null password on the account, otherwise that is what I would have tried.

limbimtimwim
11th January 2006, 17:16
However, while looking at the imac on the linux box, the imac does not recognise the linux box. when I stop accessing the imac from the linux (on filebrowser), I can see the linux box on the imac. I don't quite understand what you mean, but that sounds weird. Really weird. Can you please paste in the output of ifconfig? I am interested.
BUT.... I still cant see the shares from the linux box, on the imac. It still does as per first post. I have tried to set up all the samba users as no password users. I am confused. You can't see the shares you are exporting from the linux machine on the imac?

Posh Tourer :P
11th January 2006, 22:42
I don't quite understand what you mean, but that sounds weird. Really weird. Can you please paste in the output of ifconfig? I am interested.I am confused. You can't see the shares you are exporting from the linux machine on the imac?

Ok I will double check that first point. Perhaps both machines are trying to be servers?? Is that a problem?? As it stands, I can see files from the imac on the linux box, but not vice versa. I do have to enter some passwords to get to see the imac files on the linux box, but I never get to that point on the imac. Perhaps this is the problem.

You want ifconfig from the linux machine?? what is the path? I have no idea where things are on linux/mac - the only one I used to know well(ish) was Amiga.......

second, yes that is correct. I click connect (to see shares on the linux machine) in finder on the Mac and it gets stuck. I have to force quit on finder.

limbimtimwim
12th January 2006, 08:49
Ok I will double check that first point. Perhaps both machines are trying to be servers?? Is that a problem?? As it stands, I can see files from the imac on the linux box, but not vice versa. I do have to enter some passwords to get to see the imac files on the linux box, but I never get to that point on the imac. Perhaps this is the problem.Nah, samba the 'server' actually has nothing to do with samba the 'client', you don't need samba the 'server' to be a client to the iMac.
You want ifconfig from the linux machine?? what is the path? I have no idea where things are on linux/mac - the only one I used to know well(ish) was Amiga.......Ahh, the Amiga. '/sbin/ifconfig' It should be in the same place on the iMac, but I am not sure.
second, yes that is correct. I click connect (to see shares on the linux machine) in finder on the Mac and it gets stuck. I have to force quit on finder.If you do 'smbclient -L localhost' now that you have created the samba users on the linux box, following all the instructions from http://help.ubuntu.com/starterguide/C/ch07.html#sect-samba-server do you get a list of shares that you have created now?

I wouldn't trust a stupid GUI to setup the shares properly, read the doco instead and hack the /etc/samba/smb.conf as it suggests.

Posh Tourer :P
12th January 2006, 10:00
If you do 'smbclient -L localhost' now that you have created the samba users on the linux box, following all the instructions from http://help.ubuntu.com/starterguide/C/ch07.html#sect-samba-server do you get a list of shares that you have created now?

I wouldn't trust a stupid GUI to setup the shares properly, read the doco instead and hack the /etc/samba/smb.conf as it suggests.

Yeah that works fine on the Imac. will check the linux box when the customers stop using it.

Sharename Type Comment
--------- ---- -------
IPC$ IPC IPC Service (iMac)
ADMIN$ IPC IPC Service (iMac)
deskjet 3500 Printer hp deskjet 3500
Stylus C46 Printer EPSON Stylus C44UX - CUPS+Gimp-Print v4.2.7
caracol Disk User Home Directories
Domain=[IMAC] OS=[Unix] Server=[Samba 3.0.10]

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

Workgroup Master
--------- -------
WORKGROUP

Cant find /samba/ or smb.conf on the imac - cant seem to find a decent search tool, or even if finder is hiding files from me....

Not that that matters hugely - we only need one way traffic.... The linux box has all the important bits and I need to access them on the imac. Vice versa is irrelevant, and it already works that way anyway....

Posh Tourer :P
12th January 2006, 22:25
Sorry I didnt notice you said output - I was trying to find the file itself. Anyways.....
Ifconfig output from the linux box. The local IP addresses change a bit as sometimes the router refuses to connect to the net and we unplug and replug it (not my idea...).

eth0 Link encap:Ethernet HWaddr 00:A0:C5:86:85:8A
inet addr:192.168.1.36 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::2a0:c5ff:fe86:858a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:62947 errors:0 dropped:0 overruns:0 frame:0
TX packets:61373 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:54885228 (52.3 MiB) TX bytes:11753483 (11.2 MiB)
Interrupt:16 Base address:0xcc00

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:257488 errors:0 dropped:0 overruns:0 frame:0
TX packets:257488 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:21717258 (20.7 MiB) TX bytes:21717258 (20.7 MiB)



The smbclient -L works fine on the linux box too, very similar to the imac, plus a few shares I set up with the GUI from System / Admin / Shared folders

This is ifconfig from the imac

lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
stf0: flags=0<> mtu 1280
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet6 fe80::230:65ff:febe:e8b4%en0 prefixlen 64 scopeid 0x4
inet 192.168.1.33 netmask 0xffffff00 broadcast 192.168.1.255
ether 00:30:65:be:e8:b4
media: autoselect (100baseTX <full-duplex>) status: active
supported media: none autoselect 10baseT/UTP <half-duplex> 10baseT/UTP <full-duplex> 10baseT/UTP <full-duplex,hw-loopback> 100baseTX <half-duplex> 100baseTX <full-duplex> 100baseTX <full-duplex,hw-loopback>

Posh Tourer :P
13th January 2006, 01:28
Also thought this might help:

iMac:~ caracol$ smbclient //imac/caracol
Password:
Domain=[IMAC] OS=[Unix] Server=[Samba 3.0.10]
smb: \>

casacaracol@linuxmusic:~$ smbclient //linuxmusic/casacaracol
Password:
Domain=[LINUXMUSIC] OS=[Unix] Server=[Samba 3.0.14a-Ubuntu]
smb: \>

and this:
iMac:~ caracol$ nmblookup -M workgroup
querying workgroup on 192.168.1.255
192.168.1.36 workgroup<1d>

I have been trying to work through this (http://us1.samba.org/samba/docs/man/Samba-HOWTO-Collection/diagnosis.html) and I cant figure out what numbers 4-6 mean and how to work them

Also I cannot log into remote computers (trying as above) because it wont accept my passwords.

However, filebrowser on Ubuntu now works fine, with full functionality, after I saved all the passwords in the keyring (see below)

Posh Tourer :P
14th January 2006, 04:09
Anyone know where I might find samba and smb.conf on an imac?? I know they are there because the samba commands work, but I cant find the config file to edit it......

Maarten

Skunk
14th January 2006, 07:00
It should be the same place as on Linux. The folder will be hidden though. Use 'Go' - 'Go to folder...' from the Finder to type the path or your shell/terminal.

Someone smarter will be along soon.

bgd
14th January 2006, 07:46
It's in /etc

Posh Tourer :P
14th January 2006, 07:58
It should be the same place as on Linux. The folder will be hidden though. Use 'Go' - 'Go to folder...' from the Finder to type the path or your shell/terminal.

Someone smarter will be along soon.


Great stuff - found it thanks..... Is there any way to unhide all that stuff temporarily? Oh and make it writeable? Or do I have to log in as admin?

here is part of smb.conf from the imac:

[global]
guest account = unknown
encrypt passwords = yes
auth methods = guest opendirectory
passdb backend = opendirectorysam guest
printer admin = @admin, @staff
server string = iMac

bgd
14th January 2006, 08:08
If you use terminal it's all visible. I think you need to be root to write to it. This is the listing on my machine.

-rw-r--r-- 1 root daemon 1942 Sep 1 21:42 smb.conf

I think that means there must be a front end to this

Posh Tourer :P
14th January 2006, 08:21
ok thats cool......

Here is my smb.conf from the linux box. Why the hell wont it connect to it from the imac????

bgd
14th January 2006, 09:43
I have a linux box that I will be collecting this weekend so if I get a chance I'll try and network it and (if successful) let you know. I do have a good book that covers networking linux and mac but it's with the linux box.

limbimtimwim
14th January 2006, 10:56
If you use terminal it's all visible. I think you need to be root to write to it. This is the listing on my machine.
-rw-r--r-- 1 root daemon 1942 Sep 1 21:42 smb.conf
I think that means there must be a front end to thisYeah, there is. On the mac I wouldn't touch it, Apple should have whatever GUI stuff they are using sorted. The moment you use the OSX GUI samba config tool it'll probably rewrite the file anyway. But comparing it to the ubuntu smb.conf might be useful.

If you do "$ smbclient //linuxmusic/casacaracol" on the iMac, what happens?

Also, I noticed the smb.conf from the ubuntu box said 'workgroup = workgroup' but in the previous output from smbclient it was saying the domain (RE: workgroup) was linuxmusic. And the iMac was in the iMac domain.

It shouldn't make a difference, but perhaps if both machines were in the same workgroup?

Posh Tourer :P
14th January 2006, 21:53
I've tried editing smb.conf to make both machines use workgroup:workgroup, and both smb.confs say the same now on that line. The linux one used to say workgroup=linuxmusic. Doing that reduced a few extra folders for accessing on both imac and linux box - now both machines appear in the same folder on both comps (eg see screenshot - before this the imac was in the windows network folder) Anyway, the linux box end works fine (the useless end - it has a broken sound card anyway), just not vice versa. The imac smb.conf is very different to the linux smb.conf - it doesnt have all that extra comment about how to edit it, and there are significant differences in the amount of options contained in it. I'll see if I can post it....

iMac:~ caracol$ smbclient //linuxmusic/casacaracol
Password:
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.14a-Ubuntu]
smb: \>

But I have to enter the null password (ie press enter when it asks for the password) and I cant access linuxmusic through finder, meaning that I cant access the files on itunes, thus defeating the point....

How do I take a MAC screenshot? I´ll do one to show you the finder window....

Posh Tourer :P
15th January 2006, 09:28
in smb in the imac terminal:

smb: \> dir
. D 0 Sat Jan 14 18:43:08 2006
.. D 0 Fri Jan 6 16:53:05 2006
.bashrc H 2227 Fri Jan 6 16:53:05 2006
.bash_profile H 414 Fri Jan 6 16:53:05 2006
.Xauthority H 121 Fri Jan 13 15:12:41 2006
.xsession-errors H 200066 Fri Jan 13 18:48:44 2006
.dmrc H 26 Fri Jan 6 17:10:08 2006
.gconf DH 0 Fri Jan 13 15:12:52 2006
.gconfd DH 0 Sat Jan 14 22:11:47 2006
.gnome2 DH 0 Fri Jan 13 15:10:41 2006
.gnome2_private DH 0 Fri Jan 6 17:10:08 2006
.esd_auth H 16 Fri Jan 6 17:10:08 2006
.gstreamer-0.8 DH 0 Fri Jan 6 17:10:10 2006
.ICEauthority H 827 Sat Jan 14 17:28:53 2006
.metacity DH 0 Fri Jan 6 17:10:15 2006
.ssh DH 0 Fri Jan 6 22:28:09 2006
.gtkrc-1.2-gnome2 H 93 Fri Jan 6 17:10:13 2006
.update-notifier DH 0 Fri Jan 6 17:10:15 2006
.nautilus DH 0 Fri Jan 6 17:10:18 2006
Desktop D 0 Sat Jan 14 10:42:14 2006
.Trash DH 0 Sat Jan 14 11:32:33 2006
.gnome DH 0 Fri Jan 6 17:10:17 2006
.gksu.lock H 0 Fri Jan 13 10:37:29 2006
.mozilla DH 0 Sun Jan 8 12:53:17 2006
.recently-used H 65259 Sat Jan 14 18:42:59 2006
.thumbnails DH 0 Sun Jan 8 00:19:06 2006
.qt DH 0 Sat Jan 7 15:18:38 2006
.kde DH 0 Sat Jan 7 15:18:39 2006
.macromedia DH 0 Sat Jan 7 15:59:08 2006
.evolution DH 0 Tue Jan 10 12:48:31 2006
.gimp-2.2 DH 0 Thu Jan 12 16:43:20 2006
.mcop DH 0 Sat Jan 7 15:21:10 2006
.bash_history H 1434 Sat Jan 14 16:29:47 2006
.mcoprc H 31 Sat Jan 7 15:21:07 2006
.gnome-system-monitor.casacaracol AH 0 Sat Jan 7 15:41:14 2006
.openoffice.org2 DH 0 Fri Jan 13 21:44:16 2006
.serpentine DH 0 Tue Jan 10 13:51:08 2006
.local DH 0 Thu Jan 12 11:17:25 2006

36605 blocks of size 1048576. 31101 blocks available
smb: \> cd .
smb: \> cd ..
smb: \> cd desktop
smb: \desktop\> dir
. D 0 Sat Jan 14 10:42:14 2006
.. D 0 Sat Jan 14 18:43:08 2006
hadjaha-00d83d4390.desktop 2044 Mon Oct 10 17:10:22 2005
Unknown Artist D 0 Mon Jan 2 21:45:05 2006
pics D 0 Tue Jan 3 20:42:53 2006
Maarten D 0 Wed Jan 11 19:36:58 2006
FOTOS D 0 Mon Jan 9 02:14:46 2006
NIX D 0 Tue Jan 10 13:49:28 2006

36605 blocks of size 1048576. 31101 blocks available
smb: \desktop\>


But i cant see the shared music folders - maybe they are in desktop somewhere but they arent showing up in dir. They are separate partitions....

Posh Tourer :P
15th January 2006, 10:20
For a comparison of smb.confs:

1.
Linux: ; guest account = nobody
Imac: guest account = unknown

; 1: Make sure that the user specified in "guest account" exists. Typically
; this will be a user that cannot log in and has minimal privileges.
; Often the "nobody" account doesn't work (very system dependant).

2.
Linux: passdb backend = tdbsam guest

Imac: passdb backend = opendirectorysam guest

3.
Also from the Linux conf:

; unix password sync = no

# For Unix password sync to work on a Debian GNU/Linux system, the following
# parameters must be set (thanks to Augustin Luton <aluton@hybrigenics.fr> for
# sending the correct chat script for the passwd program in Debian Potato).
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .


These are the bits that I´ve seen that *I* think (not that it counts for much) might be of interest. Particularly no. 1?? Any opinions??

Posh Tourer :P
15th January 2006, 11:33
Given what is said in the rest of the thread and the help files, these things oughtnt be a problem. I presume finder cant handle requiring a password, as the rest works fine, particularly through terminal. But I have set everything to require null passwords, perhaps if I set up a guest account or add some host allow lines into the linux .conf, it might help??

Posh Tourer :P
15th January 2006, 12:19
Wahoo!!!! progress, after changing the lines below:
Linux: ; guest account = nobody
Imac: guest account = unknown

to

Linux: guest account = unknown
Imac: guest account = unknown

I call it progress because I now have a new problem: If I now hit connect on finder it asks for a password, and no matter what i put in, it tells me "The alias "linuxmusic" could not be opened because the original item could not be found"

Skunk
15th January 2006, 17:13
'Cocktail' is one piece of software that will let you see hidden files and folders. Doesn't change the accessibility of them though.

Mac screenshot: cmd (apple/clover-whatever you know it as)+shift+3=whole screen
cmd+shift+4=drag select an area with the mouse button.
They save as pdfs.

Posh Tourer :P
15th January 2006, 22:14
Here are the screenshots:

on the imac they saved as .png....

Skunk
16th January 2006, 18:10
From that screenshot it looks like you're using an alias to connect. Try doing a new connection.
Or is it already connected?
I don't use the 'Network' item - I have better results using the Go/Connect to server... menu

limbimtimwim
16th January 2006, 19:15
Wahoo!!!! progress, after changing the lines below:
Linux: ; guest account = nobody
Imac: guest account = unknown
to
Linux: guest account = unknown
Imac: guest account = unknown
I call it progress because I now have a new problem: If I now hit connect on finder it asks for a password, and no matter what i put in, it tells me "The alias "linuxmusic" could not be opened because the original item could not be found"That sounds like a step backwards, unless Ubuntu has an 'unknown' user that is valid. From the smb.conf man page

" This is a username which will be used for access to services
which are specified as guest ok (see below). Whatever privi-
leges this user has will be available to any client connecting
to the guest service. This user must exist in the password file,
but does not require a valid login. The user account "ftp" is
often a good choice for this parameter."

Ie, when you connect as the guest user, the process that is serving files to the iMac will be running as the user 'unknown'. If the Ubuntu box doesn't have an 'unknown' user (And my Debian boxes don't), then it's probably working less now.

What do the logfiles on the Ubuntu box say now?

limbimtimwim
16th January 2006, 19:43
From that screenshot it looks like you're using an alias to connect. Try doing a new connection.
Or is it already connected?
I don't use the 'Network' item - I have better results using the Go/Connect to server... menuI second that, that just jogged my memory a little. I seem to recall helping someone with an OSX box once, and we had to do something like that.

(mumble)Bloody pretty pictures systems shoulda stayed in a reasearch institute(mumble)

Like Skunk said, make sure it's not connected somewhere else (Like you've closed the window, but the connection continues)

When you did $ smbclient //linuxmusic/casacaracol, you connected to the share exporting your homedir on the box, that's sweet. The smb process exporting that share won't let you 'cd ..' away somewhere else. So now you want to do $smbclient //linuxmusic/allmusic . Does that work (Once you put back the 'guest user =' parameter and restart samba) ? It should do, since that other share was working perfectly.

So if it doesn't work in the GUI, I blame apple ;-). No, that doesn't solve your problem. (rant) I know sorry, just the infinate dumbing down of computer interfaces seems inhibit users from doing what they want. (/rant)

In fact, not using a stinking GUI will probably solve your problem.

Let's use the approach I am used to, since it should work on a OSX box just fine.

If you can access the shares correctly via smbclient, you should be able to do this:

$ mount_smbfs //guest@linuxmusic/allmusic /the/directory/i/want/to/mount/this/share/on/the/imac

That work? Awesome.. Urr.. I don't know how to make that connection permanent on a OSX box however.. heh.. I don't think it has a /etc/fstab ..

We'll solve that next..

Posh Tourer :P
16th January 2006, 21:45
That sounds like a step backwards, unless Ubuntu has an 'unknown' user that is valid. From the smb.conf man page

" This is a username which will be used for access to services
which are specified as guest ok (see below). Whatever privi-
leges this user has will be available to any client connecting
to the guest service. This user must exist in the password file,
but does not require a valid login. The user account "ftp" is
often a good choice for this parameter."

Ie, when you connect as the guest user, the process that is serving files to the iMac will be running as the user 'unknown'. If the Ubuntu box doesn't have an 'unknown' user (And my Debian boxes don't), then it's probably working less now.

What do the logfiles on the Ubuntu box say now?

Who the hell is nicholas macnid???

Ubuntu is working fine.....

Will try stuff on imac soon

limbimtimwim
16th January 2006, 21:51
Who the hell is nicholas macnid???
A computer on your network, somewhere :-) It just makes up logfile names as it goes along.
Ubuntu is working fine.....I think samba on the ubuntu box would disagree with you, you have:
[2006/01/15 01:49:20, 0] smbd/password.c:authorise_login(567) authorise_login: Invalid guest account unknown??
all through your log files. :-)

Posh Tourer :P
16th January 2006, 22:13
I know, but OTOH, it changed something at the imac end....

Here is some more output

iMac:~ caracol$ smbclient //linuxmusic/allmusic
Password:
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.14a-Ubuntu]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME

limbimtimwim
16th January 2006, 22:18
I know, but OTOH, it changed something at the imac end....
Here is some more output
iMac:~ caracol$ smbclient //linuxmusic/allmusic
Password:
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.14a-Ubuntu]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME

AAAagh.. Computers..!

Now that you have created a samba user, what is the output of '$ smbclient -L localhost' on the Ubuntu box?

Posh Tourer :P
16th January 2006, 22:20
Like Skunk said, make sure it's not connected somewhere else (Like you've closed the window, but the connection continues)

When you did $ smbclient //linuxmusic/casacaracol, you connected to the share exporting your homedir on the box, that's sweet. The smb process exporting that share won't let you 'cd ..' away somewhere else. So now you want to do $smbclient //linuxmusic/allmusic . Does that work (Once you put back the 'guest user =' parameter and restart samba) ? It should do, since that other share was working perfectly.

If you can access the shares correctly via smbclient, you should be able to do this:

$ mount_smbfs //guest@linuxmusic/allmusic /the/directory/i/want/to/mount/this/share/on/the/imac

That work? Awesome.. Urr.. I don't know how to make that connection permanent on a OSX box however.. heh.. I don't think it has a /etc/fstab ..

We'll solve that next..

I always exit samba from terminal, and relaunch finder if necessary, so I dont think there are other connections.

I have not changed the samba.conf file yet, but
iMac:~ caracol$ smbclient //linuxmusic/casacaracol
Password:
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.14a-Ubuntu]
smb: \>
still works...

I was trying to cd away because casacaracol the user has access to the music files. Couldnt raise anything on desktop though... dunno why... Works ok just running through a user account with no other shares set up when I am trying to browse the imac from the linux box.

To make a mount permanent, sick it in a startup script somewhere?

Posh Tourer :P
16th January 2006, 22:23
casacaracol@linuxmusic:~$ smbclient -L localhost
Password:
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.14a-Ubuntu]

Sharename Type Comment
--------- ---- -------
homes Disk Home Directories
print$ Disk Printer Drivers
home Disk
hdb3 Disk
Itunes Disk
50Cent Disk
IPC$ IPC IPC Service (linuxmusic server (Samba, Ubuntu))
ADMIN$ IPC IPC Service (linuxmusic server (Samba, Ubuntu))
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.14a-Ubuntu]

Server Comment
--------- -------
IMAC iMac
LINUXMUSIC linuxmusic server (Samba, Ubuntu)

Workgroup Master
--------- -------
WORKGROUP LINUXMUSIC

Posh Tourer :P
16th January 2006, 22:25
I know, but OTOH, it changed something at the imac end....

Here is some more output

iMac:~ caracol$ smbclient //linuxmusic/allmusic
Password:
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.14a-Ubuntu]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME

changed allmusic to hdb3 and it is the same output

Posh Tourer :P
16th January 2006, 22:31
A computer on your network, somewhere :-) It just makes up logfile names as it goes along.

There are only 2 computers - someone is trying to hack in?

Posh Tourer :P
16th January 2006, 22:33
From that screenshot it looks like you're using an alias to connect. Try doing a new connection.
Or is it already connected?
I don't use the 'Network' item - I have better results using the Go/Connect to server... menu

No luck that route..... cant find server, or it times out

I dont want to use an alias - how do I stop it trying??

Posh Tourer :P
16th January 2006, 22:38
If you can access the shares correctly via smbclient, you should be able to do this:

$ mount_smbfs //guest@linuxmusic/allmusic /the/directory/i/want/to/mount/this/share/on/the/imac

That work?

errr... no.

iMac:~ caracol$ mount_smbfs //guest@linuxmusic/casacaracol /users
mount_smbfs: spnego blob2principal error 1
Password:
mount_smbfs: tree connect phase failed: syserr = Permission denied
iMac:~ caracol$

same if I remove guest@

Skunk
17th January 2006, 14:37
Here's what I do.

Find the IP number of the linuxmusic box.

In the Finder on the iMac use the Go menu and Connect to server.

Type in smb://192.168.1.1 <-- use your linuxmusic box IP

It will display an SMB Mount dialog box... IF THERE ARE MOUNTS AVAILABLE
From there select the share and username etc you want.

Done.

I have a trick way of making it mount at startup (as you can't do it without 'digging' under to hood) but first you must get this working.

limbimtimwim
17th January 2006, 19:11
errr... no.
iMac:~ caracol$ mount_smbfs //guest@linuxmusic/casacaracol /users
mount_smbfs: spnego blob2principal error 1
Password:
mount_smbfs: tree connect phase failed: syserr = Permission denied
iMac:~ caracol$
same if I remove guest@Yes that doesn't work because 'guest' doesn't have access to 'casacaracol's' homedir. On your imac you are 'caracol', so when it tries to login it tries to login as 'caracol' or not 'casacaracol'
iMac:~ caracol$ smbclient //linuxmusic/allmusic
Password:
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.14a-Ubuntu]
tree connect failed: NT_STATUS_BAD_NETWORK_NAMEYes, this is the weird bit...

Do exactly that again, making it error, and look in the logs on the Ubuntu end and see what the complaint was.

If it didn't say anything useful, put "log level = 3" (Or a higher number) in your /etc/smb.conf and restart samba and cause it to error again and see what the log said.

limbimtimwim
17th January 2006, 19:13
There are only 2 computers - someone is trying to hack in?Someone plugged in a computer and gave it that netbios name. Up to you to decide if that is cracking in or not. It could be perfectly innocent.

Posh Tourer :P
17th January 2006, 21:47
Someone plugged in a computer and gave it that netbios name. Up to you to decide if that is cracking in or not. It could be perfectly innocent.

Ah, hang on - could be the guy using wireless on his laptop...

Posh Tourer :P
18th January 2006, 02:16
Type in smb://192.168.1.1 <-- use your linuxmusic box IP

It will display an SMB Mount dialog box... IF THERE ARE MOUNTS AVAILABLE
From there select the share and username etc you want.

I tried that and it gave me the same thing as trying via network - asked me for a password....

And then tells me the username or password is incorrect....

Posh Tourer :P
18th January 2006, 04:17
Yes, this is the weird bit...

Do exactly that again, making it error, and look in the logs on the Ubuntu end and see what the complaint was.

If it didn't say anything useful, put "log level = 3" (Or a higher number) in your /etc/smb.conf and restart samba and cause it to error again and see what the log said.

Sorry that was my fault, I changed the share from the folder all music to the parent partition. I now just get "wrong password" messages

All that is in the logs is invalid guest account unknown.

Perhaps I should put unknown into the smbusers file?? I only added the second line recently but it doesnt seem to have made any difference

Skunk
18th January 2006, 07:08
I tried that and it gave me the same thing as trying via network - asked me for a password....

And then tells me the username or password is incorrect....That you got that dialog box means it is allowing access, but not to that user/password.

But I guess we have sorted that already. Just find out what user/password combo works :Pokey:

Posh Tourer :P
18th January 2006, 07:42
That you got that dialog box means it is allowing access, but not to that user/password.

But I guess we have sorted that already. Just find out what user/password combo works :Pokey:

Tried all that.... every combo that I can with usernames and passwords that I have. Is there a default samba password? Or is it that I dont have any users set up for this machine?? Look at my post below of the smbusers file. That worries me, as up until today it only had one line in it. I thought I´d added more users, but maybe not....
My addition hasn´t changed anything though - what format should I be adding to it in??

Posh Tourer :P
20th January 2006, 08:15
Do I need to have an ubuntu linux logon for the imac box specifically? and set the home dir as network://imac/caracol?

Would that help?

I am still worried about my very empty smbusers file though.....

Skunk
20th January 2006, 08:26
Do I need to have an ubuntu linux logon for the imac box specifically? and set the home dir as network://imac/caracol?

Would that help?

I am still worried about my very empty smbusers file though.....I'm not hot with Linux at all.
You're connecting from the Mac to the Linux eh?
AFAIK, and that's not far, you need to setup the Linux box with a user who has access to the music directory and share that directory out as an SMB share. How that is done I have not a clue. My guess would be a user id below 500 so it's not a real user.
Then the Mac can connect via smb://192.x.x.x and use that user and password.

I'll have a look at a server here and see if I can't work it out. Don't hold your breath.

Posh Tourer :P
20th January 2006, 08:35
My guess would be a user id below 500 so it's not a real user.
Then the Mac can connect via smb://192.x.x.x and use that user and password.

I'll have a look at a server here and see if I can't work it out. Don't hold your breath.

hmmm low user ID eh..... interesting....

Skunk
20th January 2006, 08:39
Just what I do here - 25 odd users - don't want them logging into the machine, just sharing a directory.
Unfortunately (for you) it's a Mac so I do stuff though GUI and shareware.

Posh Tourer :P
20th January 2006, 08:41
Tried the low user ID no, but didnt work.....

Skunk
20th January 2006, 08:44
What didn't work? Did the linux box create the user and share?
Can the Mac see the Linux box?

Posh Tourer :P
20th January 2006, 12:58
What didn't work? Did the linux box create the user and share?
Can the Mac see the Linux box?

Yes to both working, but it still tells me I have an incorrect password or user name when I try and connect.

Skunk
20th January 2006, 13:39
I believe the Linux box is not sharing that directory for that user. :slap:

It looks as though the Mac is fine (it's got the easy part), it's the Linux box that's not. We need this working before I can show you how to get the Mac to connect at start-up.

Sorry - where's our Linux pro?

limbimtimwim! Where are you?

Posh Tourer :P
23rd January 2006, 07:32
This:


iMac:~ caracol$ mount_smbfs //guest@linuxmusic/casacaracol /users
mount_smbfs: spnego blob2principal error 1
Password:
mount_smbfs: tree connect phase failed: syserr = Permission denied
iMac:~ caracol$

same if I remove guest@

now becomes this, after I added the user casa to the linux box with a low user ID as above

iMac:~ caracol$ mount_smbfs //casa@linuxmusic/casacaracol /users
mount_smbfs: 2 failures to open smb device: syserr = Resource busy
mount_smbfs: spnego blob2principal error 1
mount_smbfs: 2 failures to open smb device: syserr = Resource busy
Password:
mount_smbfs: tree connect phase failed: syserr = Permission denied
iMac:~ caracol$


Also, I had to return the guest user to unknown in smb.conf in linux, because otherwise finder would just freeze or refuse to recognise the linux box.

Posh Tourer :P
24th January 2006, 07:06
[2006/01/23 19:56:10, 0] smbd/password.c:authorise_login(567)
authorise_login: Invalid guest account unknown??
[2006/01/23 19:56:10, 0] smbd/password.c:authorise_login(567)
authorise_login: Invalid guest account unknown??
[2006/01/23 19:56:23, 0] smbd/password.c:authorise_login(567)
authorise_login: Invalid guest account unknown??
[2006/01/23 19:56:23, 0] smbd/password.c:authorise_login(567)
authorise_login: Invalid guest account unknown??

Is the latest log.imac with logging set at level 3.

Skunk
24th January 2006, 07:24
This:

Originally Posted by Posh Tourer :P
iMac:~ caracol$ mount_smbfs //guest@linuxmusic/casacaracol /users
mount_smbfs: spnego blob2principal error 1
Password:
mount_smbfs: tree connect phase failed: syserr = Permission denied
iMac:~ caracol$

same if I remove guest@
now becomes this, after I added the user casa to the linux box with a low user ID as above

iMac:~ caracol$ mount_smbfs //casa@linuxmusic/casacaracol /users
mount_smbfs: 2 failures to open smb device: syserr = Resource busy
mount_smbfs: spnego blob2principal error 1
mount_smbfs: 2 failures to open smb device: syserr = Resource busy
Password:
mount_smbfs: tree connect phase failed: syserr = Permission denied
iMac:~ caracol$


Also, I had to return the guest user to unknown in smb.conf in linux, because otherwise finder would just freeze or refuse to recognise the linux box.There's no password entered above is there? When you tried from the Finder what feedback did you get (after you fixed the guest account?


[2006/01/23 19:56:10, 0] smbd/password.c:authorise_login(567)
authorise_login: Invalid guest account unknown??
[2006/01/23 19:56:10, 0] smbd/password.c:authorise_login(567)
authorise_login: Invalid guest account unknown??
[2006/01/23 19:56:23, 0] smbd/password.c:authorise_login(567)
authorise_login: Invalid guest account unknown??
[2006/01/23 19:56:23, 0] smbd/password.c:authorise_login(567)
authorise_login: Invalid guest account unknown??

Is the latest log.imac with logging set at level 3.That doesn't look like it's connecting as a known user and unknown user is not authorised...

Posh Tourer :P
24th January 2006, 07:34
There's no password entered above is there? When you tried from the Finder what feedback did you get (after you fixed the guest account?

That doesn't look like it's connecting as a known user and unknown user is not authorised...

1. I do enter a password, otherwise it tells me unknown password. Finder feedback is "Username or password is not correct. Try Again?" or something similar

2. Yes, that was my conclusion. Perhaps I can add "unknown" as a user on the linux box??

Skunk
24th January 2006, 07:46
Perhaps I can add "unknown" as a user on the linux box??That is something I would never do...

Is there any way you can be sure sharing is working on the Linux box?
I don't think it is but I don't know Linux well enough.
Can you tell me the full path you want share and what username you want to share it as. Also what flavour of Linux it is.
I have contacts I can ask for instruction.

Posh Tourer :P
24th January 2006, 08:04
http://www.kiwibiker.co.nz/forums/showpost.php?p=477135&postcount=45

sharing is working, just not for the right folders or in a GUI that I can use with Itunes (ie Finder). I cant connect to server through the GUI, but I get a smb prompt in terminal, and can dir. Also, I can use sharing fully from the Linux box - all folders on the Imac are accessible.

I want to share (mostly) /media/hdb3/ as any of casacaracol, casa (ID sub 500) Cara (ID sub 500), or caracol. But casacaracol has access to hdb3, so I dont see why i cant cd to it in terminal used as above (for more info read some of my earlier posts).

It is on Ubuntu, the Breezy Badger install (no, really)

Skunk
24th January 2006, 09:07
http://www.kiwibiker.co.nz/forums/showpost.php?p=477135&postcount=45

sharing is working, just not for the right folders or in a GUI that I can use with Itunes (ie Finder). I cant connect to server through the GUI, but I get a smb prompt in terminal, and can dir. Also, I can use sharing fully from the Linux box - all folders on the Imac are accessible.

I want to share (mostly) /media/hdb3/ as any of casacaracol, casa (ID sub 500) Cara (ID sub 500), or caracol. But casacaracol has access to hdb3, so I dont see why i cant cd to it in terminal used as above (for more info read some of my earlier posts).

It is on Ubuntu, the Breezy Badger install (no, really)
I'm lazy and this computer is old and slow so I didn't read all the old posts. My bad. Sort of got a summary now though as to where we are now.

The fact you can see the iMac only means the iMac is sharing ok - it is not affected by the Linux sharing of course.

In summary (after re-reading the earlier posts quickly) the iMac can't see any of the Linux shares using any user?

Rather than hacking any conf files I'd like to troubleshoot the problem.

Have you got a Windows or second Linux box to check/test the shares?
Are the directory permissions correct? I don't know if that is set by Linux automatically when the share is created. I know Windows Server 2000 (when I had to use it) could be a pain with this at times if things were done in the wrong order.

A complete guess but has Ubuntu got a SMB server or is it just a client?

I'll query an 'expert' tonight (don't have the email address here) and post the response.

Posh Tourer :P
24th January 2006, 09:33
In summary (after re-reading the earlier posts quickly) the iMac can't see any of the Linux shares using any user?

err, no it can see shares for casacaracol user on the linux box. But only the root dir, not any of the other shares, and only via terminal, not via a GUI (finder)

Rather than hacking any conf files I'd like to troubleshoot the problem.

Have you got a Windows or second Linux box to check/test the shares?
Are the directory permissions correct? I don't know if that is set by Linux automatically when the share is created. I know Windows Server 2000 (when I had to use it) could be a pain with this at times if things were done in the wrong order.

no, yes, dont know

A complete guess but has Ubuntu got a SMB server or is it just a client?

It is listed as a master browser. Shouldnt be a problem.

I'll query an 'expert' tonight (don't have the email address here) and post the response.

Cool thanks.


10 characters

Skunk
25th January 2006, 18:20
This is all I have at the moment; starting from the basics so they know were we are at. I don't recall anything in the above posts about the right click question.
Is the samba package installed on the machine?

I'm using Kubuntu Breezy.

When I right click on a folder, I can select 'properties'. One of the tabs is
labelled 'sharing;. It informs me I'm not set up for sharing, and offers a
button to let me set sharing up.

If something else happens for you, tell us what.

Posh Tourer :P
25th January 2006, 23:56
I must have samba installed, but I dont have that sharing tab on the properties window

Posh Tourer :P
26th January 2006, 02:06
I think the problem currently being experienced is one of password problems. If I change the guest user to one that exists in the linux OS, I dont get prompted for a password, it just freezes. If I try and connect to the linux box with the guest user set to something else (unknown), I get prompted for a user and password, but none of the combos work

Skunk
26th January 2006, 06:37
Well thats shared to everyone (that's EVERYONE) so it's got to be a samba issue or a firewall or sharing. I don't think it's a user/group issue.

Here's another response:

I have only ever set up a linux box to Samba share a directory so that it is accessible from Windows, so I have no idea how to solve your
problem, sorry. However, if you simply want to share directories over
a network, you could look into nfs

http://nfs.sourceforge.net/nfs-howto/

My desktop linux box automatically mounts my linux servers music directory, as if it was a local filesystem.

I guess it depends on your needs (also, nfs might not be supported by Macs, i dont know).

And I don't know if nfs shares are accessible by smb either.

Posh Tourer :P
26th January 2006, 09:39
Well, I dunno.

It must be something to do with this linux requesting something that the imac can't give. Perhaps it has something to do with the fact that one does not need to enter a password on Mac startup, while on the linux box you *cannot* set up a password-less account

Skunk
26th January 2006, 09:46
Well, I dunno.

It must be something to do with this linux requesting something that the imac can't give. Perhaps it has something to do with the fact that one does not need to enter a password on Mac startup, while on the linux box you *cannot* set up a password-less accountThe Mac uses SMB. It's a standard so it should work. :crybaby:
I am concerned that sharing does not appear to be enabled on that drive... The permissions are correct for anyone to get in, so from where I am it's a sharing issue.

I'll see if I can find a spare PC and install Linux...

Posh Tourer :P
26th January 2006, 10:38
sharing not enabled on which drive?

Skunk
26th January 2006, 10:47
The music one - hdb3. As you can't get a right click sharing is sharing even an option? Is there another way of calling the sharing options that works?
I see a hand icon - does that mean it is shared?

Posh Tourer :P
26th January 2006, 11:09
The hand icon is a thing you can add to the icon. Doesn´t mean anything really. I use shared folders to share folders. Or I did, but now I use smb.conf, which is the same thing but minus the GUI.

Skunk
26th January 2006, 11:12
Can you try it using the GUI?

Skunk
26th January 2006, 17:49
Another reply...
In the KDE setup pages, there are pages for both Samba and "File Sharing".
Please look through the Intenet/Network setup pages for Ubuntu and make sure
you have visited and filled in the basic Samba settings (enable, workgroup,
create a share).

I did those steps first thing with my system, so for instance, the sharing tab
may only come into existence when it's enabled by that underlying setup.

Let us know what you find.
Guess you would have done all that. If you can confirm I'll reply to him.

Posh Tourer :P
26th January 2006, 23:33
Perhaps he has a different version of samba?
If you look back through my smb.conf files that I've posted, I have created shares, etc etc etc....

Using the GUI was how I originally set up shares. I've since modified some (but not all) of the shares I've set up.

Skunk
27th January 2006, 06:31
I'll get back to him.
I've downloaded Ubuntu Breezy Badger and will install it tonight (I have borrowed a PC) and will check the networking once I have that done. I don't have Tiger on the Mac, only Panther but I don't expect Tiger to be worst than Panther - more likely the other way around.

Skunk
27th January 2006, 18:14
Currently installing Ubuntu... meanwhile I've got two more replies which I'll quote here anyway:


I think there may be a samba setting that equates samba user accounts with
established (Linux) user accounts, but it may not be default behavior.

On the linux systems I set up at work to provide CVS, I have to create samba
user names and passwords before people can sign in. The samba command is
'smbpasswd'. Try using that on the Ubuntu box to set up a user name and
password (just something simple to try it) and see if the Mac can use that to
connect to a share.

In your smb.conf add a share like this :


[share1]
path=/some/path/here
public=yes
browsable=yes
read only = no

then see if you can mount that

If that works then just firewall smb and leave it alone ;-)

Skunk
27th January 2006, 21:37
Got Ubuntu installed and worked on this for three hours... I thought it had me beat. The box couldn't even connect to itself... :brick:

Simple really: the password for the SMB share is set in the terminal with the command 'smbpasswd -e username'. But first you must enable root and log in as root. Ubuntu has root disabled by default.

So
1. enable root,
2. set smb password,
3. activate smb,
4. setup smb share.

These I did via GUI except 1 & 2.

Let me know how you get on.


Well, I dunno. It must be something to do with this linux requesting something that the imac can't give. Perhaps it has something to do with the fact that one does not need to enter a password on Mac startup, while on the linux box you *cannot* set up a password-less account
How right you were for the wrong-ish reasons.

Once you've got this going I'll show you how to make the Mac mount it at start-up.

Posh Tourer :P
27th January 2006, 23:07
the -e is for enable a certain username?

I want to run the linux box in another user (not root), because it is a `public` internet access computer.

Posh Tourer :P
27th January 2006, 23:11
Currently installing Ubuntu... meanwhile I've got two more replies which I'll quote here anyway:

Got both of those done as it says anyway....

Posh Tourer :P
28th January 2006, 00:28
Got Ubuntu installed and worked on this for three hours... I thought it had me beat. The box couldn't even connect to itself... :brick:

Simple really: the password for the SMB share is set in the terminal with the command 'smbpasswd -e username'. But first you must enable root and log in as root. Ubuntu has root disabled by default.

So
1. enable root,
2. set smb password,
3. activate smb,
4. setup smb share.

These I did via GUI except 1 & 2.

Let me know how you get on.


How right you were for the wrong-ish reasons.

Once you've got this going I'll show you how to make the Mac mount it at start-up.


Got this going (except for activation), but WTF is this from the Imac?

iMac:~ caracol$ smbclient //linuxmusic/casacaracol
Error connecting to 192.168.1.33 (Invalid argument)
Connection to linuxmusic failed
iMac:~ caracol$

Or is samba just not activated, and if not how do i do it?

Posh Tourer :P
28th January 2006, 00:54
casacaracol@linuxmusic:~$ smbstatus
Global parameter interfaces found in service section!
Global parameter bind interfaces only found in service section!
sessionid.tdb not initialised
/var/run/samba/connections.tdb not initialised
This is normal if an SMB client has never connected to your server.
/var/run/samba/locking.tdb not initialised
This is normal if an SMB client has never connected to your server.
casacaracol@linuxmusic:~$

Posh Tourer :P
28th January 2006, 05:07
root@linuxmusic:~# sudo /etc/init.d/samba restart
* Stopping Samba daemons... [ ok ]
* Starting Samba daemons.. [fail]
root@linuxmusic:~#

[2006/01/27 18:27:42, 0] smbd/server.c:main(798)
smbd version 3.0.14a-Ubuntu started.
Copyright Andrew Tridgell and the Samba Team 1992-2004
[2006/01/27 18:27:43, 0] printing/pcap.c:pcap_cache_reload(149)
Unable to open printcap file /etc/printcap for read!
[2006/01/27 18:27:43, 0] printing/pcap.c:pcap_cache_reload(149)
Unable to open printcap file /etc/printcap for read!
[2006/01/27 18:27:43, 1] auth/auth_util.c:make_server_info_sam(840)
User unknown in passdb, but getpwnam() fails!

Gahhhh computers......

Skunk
28th January 2006, 07:54
I would use Synaptic Pachage Manager to remove and install samba (see screenshot.jpg and screenshot-2.jpg for what I have installed).

I setup a user to give the Samba password to. The user is 'andrew'. See screenshot-4.jpg for the terminal output.

Two things I had to do were from the GUI 'System/Administration/Services' turn on 'Folder Sharing Services (Samba)'.

Try that. The output you have at the moment says 'no samba' - mines fine.

I just tried adding another user (UID 1001) and had to use smbpasswd -a username to add them as a smb user.

Let me know how you get on.

Posh Tourer :P
28th January 2006, 09:02
aaarrrrgh....

Skunk
28th January 2006, 09:46
Unfortunately Linux is not my strong point... :pinch:
I won't really by able to help. PM limbimtimwim and see he he can help. Or start a new thread with a specific title and see who it catches. No need to mention that it's for a Mac now (as I find that puts people off...).
When it's working you can connect the Linux box to itself via Places/Network Servers. It will ask for a password to connect to the shares available.

To setup the start-up script on the Mac:
Go to Textedit (or similar) and type the path as you would for the 'Connect to server...' ie: smb://user@ipaddress/sharename and select and drop this onto the Desktop. It will create a .inetloc file. Move it to somewhere 'safe'. Don't even save the text file...
Go to System Preferences/Accounts/User/Startup Items and add the .inetloc file. All done. This will 'hang' the Mac for 90 seconds or so if the .inetloc cannot connect.
Easy eh.

Posh Tourer :P
28th January 2006, 22:34
wicked stuff, thanks :)

fixed the problem with samba not starting now....

Skunk
29th January 2006, 08:36
So you're all up and running? Connecting OK?

Posh Tourer :P
29th January 2006, 09:06
err, no, but I think I have made progress....

Skunk
29th January 2006, 09:55
Ubuntu users on Frappr (http://www.frappr.com/ubuntu)
Let me know if you need any more help and I'll do what I can. I'll leave Ubuntu installed until you're up and running.

dhunt
29th January 2006, 12:40
err, no, but I think I have made progress....
What ya got left to do. I might be able to help you? I just set up a ubuntu box for my dad a couple weeks ago so sort of up with ubuntu although I preferr my gentoo boxes.

Posh Tourer :P
2nd February 2006, 00:22
Ok, I've fixed the linux box again, now I can see all - but still need to check it out from the Imac end. Linuxbox was a simple matter of telling it which domain to look in......

Ok, so now the Imac can mount itself in samba but will not mount the linux box. Also, I think I´ve found out why using finder to click and connect doesnt work - see the attached screenshot - it is only running through NFS......

I can now access my linuxbox music in terminal - the problem before was the terminal slash - not needed... (screenshot 2) Now I just need to be able to mount at directoy at startup......However, finder still doesnt like connecting to server via the file menu. I know I´m using the right address, but it wont connect.

Skunk
2nd February 2006, 08:14
I can now access my linuxbox music in terminal - the problem before was the terminal slash - not needed... (screenshot 2) Now I just need to be able to mount at directoy at startup......However, finder still doesnt like connecting to server via the file menu. I know I´m using the right address, but it wont connect.Try the Finder using smb://linuxmusic/hdb3
I don't think that's the answer though. Try just smb://ip.address or does that crash the Finder?

Posh Tourer :P
2nd February 2006, 10:26
tried the first and it doesnt want to go; It is not an address, it is a folder. The second does not freeze finder, but it endlessly tries to connect, without doing anything else.

Skunk
2nd February 2006, 10:48
What point does it 'endlessly' try to connect at? After 'Connect', after selecting a volume, or after authenticating?

MrMelon
2nd February 2006, 12:13
Did you ever get itto stop acking for a user and password when you tried to connect to the share on the linux box? Setting "security = share" instead of "security = user" in your smb.comf should fix that...

dhunt
2nd February 2006, 14:41
tried the first and it doesnt want to go; It is not an address, it is a folder. The second does not freeze finder, but it endlessly tries to connect, without doing anything else.
So am I right in thinking you can't mount the linux box at all from the mac using the finder? Are you going to Tools menu(I think but can't remember and don't have a mac here) -> connect to server. That's normally how I use to do it.

Skunk
2nd February 2006, 14:50
Aaaargh!

Just so it's clear here: An OSX Mac can and will without any mods from a standard install mount any SMB share. You don't need to change a thing on the Mac. Doing so will probably stuff it up. Not sure if that is what has happened here...

A standard install of Ubuntu was fairly straight forward to get it to share an SMB share. No editing on any config file was required. I outlined the steps to do it on about page 6 of this thread. Here (http://www.kiwibiker.co.nz/forums/showpost.php?p=490599&postcount=89). Don't know what state the Ubuntu box is in now after all the config editing...

I tested all this. Reinstalled two clean machines and checked it again. If it doesn't work as I have posted then something is wrong with the install.

:calm:

I did not once use the Terminal on the Mac - no need to. One small use of the Terminal on Ubuntu on the PC to setup the SMB passwords/users.

Posh Tourer :P
3rd February 2006, 00:05
Yeah I know. I re-installed smb on ubuntu, and re-did all the steps from start. I have the Ubuntu box working, but I still cannot access the linux files on ITunes. I try using finder -> connect to server and it says "connecting to server 192.168.X.XX" (the correct number - I checked by pinging it and other things. The view I have in the finder/network window is trying to use a NFS share, perhaps the one I set up earlier, to access the files.

I was using terminal to try and check if I could get to the smb shares at all - which I can (IIRC, I didnt actually change any settings on the mac apart from setting null passwords for the local shares). I just cant do it through finder, which I think is what is needed to be able to mount the folder(s). Unless I can do it via terminal, but I dont know how to do that.

Skunk
3rd February 2006, 06:41
You're typing in "smb://ip.address"? - the smb:// is important... :scratch:
I know it's probably a silly question but it must be asked.
The first attachment is my old 10.2.8 box so it looks 'upside down', second is 10.3.9 - note the SMB connections vs the afp connections in the favourites of the 10.3.9

Posh Tourer :P
3rd February 2006, 10:48
Yes I am....

Skunk
3rd February 2006, 11:03
OK. Can you post the full transcript from the Terminal when you successfully connect from there? I want to see the making of the connection as well as the cd to the dir.

Posh Tourer :P
3rd February 2006, 11:37
iMac:~ caracol$ smbclient //linuxmusic/hdb3
Password:
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.14a-Ubuntu]
smb: \> dir
. D 0 Thu Jan 19 15:46:51 2006
.. D 0 Thu Jan 26 01:19:31 2006
lost+found D 0 Wed Mar 9 16:10:50 2005
mp3s-part1 D 0 Thu Jan 19 23:20:03 2006
itunes 2 D 0 Sun Aug 21 12:10:43 2005
.DS_Store AH 12292 Tue Oct 11 16:51:40 2005
Photos D 0 Mon Jan 2 18:11:59 2006
iTunes D 0 Fri Oct 14 18:57:00 2005
garbage D 0 Wed Aug 24 16:28:54 2005
untitled folder D 0 Sun Aug 7 16:42:38 2005
iPodRip D 0 Fri Aug 26 20:14:32 2005
allmusic D 0 Mon Aug 29 15:59:58 2005
.TemporaryItems DH 0 Wed Sep 28 00:30:52 2005
._.TemporaryItems AH 82 Wed Sep 28 00:30:52 2005
.Trash-casacaracol DH 0 Mon Jan 23 18:38:09 2006
smb.conf 8137 Fri Jan 13 21:13:47 2006

56808 blocks of size 2097152. 12508 blocks available
smb: \>

Posh Tourer :P
4th February 2006, 01:59
Well, it is finally fixed!!

Thanks to Skunk for the final fixes last night (connecting to smb://linuxmusic/hdb3 in finder, not 192.168.X.XX, or smb://linuxmusic/hdb3/), and thanks to limbimtimwim for your help getting to the end.....

Skunk
4th February 2006, 08:14
Yeah, it appears your Ubuntu is picking up a different IP number all the time for what you were saying on the chat. Trying to connect the Mac to a moving target... :confused: That might be something to look into. You are using DHCP on your router?

Having a non-working Samba install didn't help things either.

Most important: does the Mac connect at startup OK?

Posh Tourer :P
5th February 2006, 07:17
Yeah using DHCP for the router. The Mac mounts linux at startup fine, everyone is very happy :) I´ve scored a free dinner out of it too......

Skunk
5th February 2006, 08:26
Lucky you... :shake: :rofl: