Page 3 of 8 FirstFirst 12345 ... LastLast
Results 31 to 45 of 118

Thread: Networking (LAN) Imac + linux box

  1. #31
    Join Date
    19th March 2004 - 11:00
    Bike
    BMW R65LS, part time R75 old fart rider
    Location
    Home!!!!
    Posts
    1,711
    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....
    Attached Files Attached Files
    Queiro voya todo Europa con mi moto.... pero no tengo suficiente tiempo o dinero.....

  2. #32
    Join Date
    19th March 2004 - 11:00
    Bike
    BMW R65LS, part time R75 old fart rider
    Location
    Home!!!!
    Posts
    1,711
    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....
    Queiro voya todo Europa con mi moto.... pero no tengo suficiente tiempo o dinero.....

  3. #33
    Join Date
    19th March 2004 - 11:00
    Bike
    BMW R65LS, part time R75 old fart rider
    Location
    Home!!!!
    Posts
    1,711
    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 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??
    Queiro voya todo Europa con mi moto.... pero no tengo suficiente tiempo o dinero.....

  4. #34
    Join Date
    19th March 2004 - 11:00
    Bike
    BMW R65LS, part time R75 old fart rider
    Location
    Home!!!!
    Posts
    1,711
    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??
    Queiro voya todo Europa con mi moto.... pero no tengo suficiente tiempo o dinero.....

  5. #35
    Join Date
    19th March 2004 - 11:00
    Bike
    BMW R65LS, part time R75 old fart rider
    Location
    Home!!!!
    Posts
    1,711
    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"
    Queiro voya todo Europa con mi moto.... pero no tengo suficiente tiempo o dinero.....

  6. #36
    Join Date
    20th November 2002 - 11:00
    Bike
    SW-125R(F4-TF125), ZXRD400, RD250LC
    Location
    Wellington, New Zealand,
    Posts
    5,963
    Blog Entries
    36
    '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.

  7. #37
    Join Date
    19th March 2004 - 11:00
    Bike
    BMW R65LS, part time R75 old fart rider
    Location
    Home!!!!
    Posts
    1,711
    Here are the screenshots:

    on the imac they saved as .png....
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	Picture 1.jpg 
Views:	7 
Size:	99.8 KB 
ID:	24074   Click image for larger version. 

Name:	Picture 2.jpg 
Views:	7 
Size:	21.7 KB 
ID:	24075  
    Queiro voya todo Europa con mi moto.... pero no tengo suficiente tiempo o dinero.....

  8. #38
    Join Date
    20th November 2002 - 11:00
    Bike
    SW-125R(F4-TF125), ZXRD400, RD250LC
    Location
    Wellington, New Zealand,
    Posts
    5,963
    Blog Entries
    36
    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

  9. #39
    Join Date
    30th September 2004 - 20:08
    Bike
    Tojo and nothing. Damnit.
    Location
    Brighton, UK
    Posts
    2,338
    Quote Originally Posted by Posh Tourer :P
    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?

  10. #40
    Join Date
    30th September 2004 - 20:08
    Bike
    Tojo and nothing. Damnit.
    Location
    Brighton, UK
    Posts
    2,338
    Quote Originally Posted by Skunk
    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
    I 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..

  11. #41
    Join Date
    19th March 2004 - 11:00
    Bike
    BMW R65LS, part time R75 old fart rider
    Location
    Home!!!!
    Posts
    1,711
    Quote Originally Posted by limbimtimwim
    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
    Attached Files Attached Files
    Queiro voya todo Europa con mi moto.... pero no tengo suficiente tiempo o dinero.....

  12. #42
    Join Date
    30th September 2004 - 20:08
    Bike
    Tojo and nothing. Damnit.
    Location
    Brighton, UK
    Posts
    2,338
    Quote Originally Posted by Posh Tourer :P
    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. :-)

  13. #43
    Join Date
    19th March 2004 - 11:00
    Bike
    BMW R65LS, part time R75 old fart rider
    Location
    Home!!!!
    Posts
    1,711
    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
    Queiro voya todo Europa con mi moto.... pero no tengo suficiente tiempo o dinero.....

  14. #44
    Join Date
    30th September 2004 - 20:08
    Bike
    Tojo and nothing. Damnit.
    Location
    Brighton, UK
    Posts
    2,338
    Quote Originally Posted by Posh Tourer :P
    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?

  15. #45
    Join Date
    19th March 2004 - 11:00
    Bike
    BMW R65LS, part time R75 old fart rider
    Location
    Home!!!!
    Posts
    1,711
    Quote Originally Posted by limbimtimwim
    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?
    Queiro voya todo Europa con mi moto.... pero no tengo suficiente tiempo o dinero.....

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •