Welcome, Guest. Please login or register.

Author Topic: OS4.1 and Samba configuration question.  (Read 2016 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline mchaggisTopic starter

  • Jr. Member
  • **
  • Join Date: Jan 2008
  • Posts: 85
    • Show only replies by mchaggis
OS4.1 and Samba configuration question.
« on: August 31, 2009, 01:37:11 AM »
Hi all,

Looking for some help with syntax please.

I have set up SAMBA on my SAM440 with OS4.1. And from a CLI I can type the following:

smbclient //MyDomain/MyShare MyPassword -U MyUser

This gets me a connection to the shared resource and I can use it from within that CLI.

However what I want to do is, and this is where my Amiga Syntax skills are lacking. Is add this sort of entry into the s:user-startup such that the share is mounted and available like any other device on start up.

Is anyone able to give me some pointers on the syntax I would need to use?

Thanks in advance,
Derek.
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16881
  • Country: gb
  • Thanked: 5 times
    • Show only replies by Karlos
Re: OS4.1 and Samba configuration question.
« Reply #1 on: August 31, 2009, 02:07:04 AM »
I have a linux box with a samba share that contains my UAE installation and other shared development stuff that I have OS4.1 (and also 3.9 on my 1200T) connect to automatically on start-up.

For 4.1, I created a script called MountSMB in SYS:S/Shell/ with the following commands:
Code: [Select]
stack 65536
run >nil: *>nil: smbfs workgroup=megaburken2 user=****** password=****** service=//Megaburken-II/UAE device=SMB0: volume=UAE:

I then set the script file protection bit
Code: [Select]
protect S:Shell/MountSMB0 +s
and added the following to my S:User-Startup
Code: [Select]
MountSMB0
The samba share then pops up as a disk drive on the desktop (device name SMB0, volume name UAE).
« Last Edit: August 31, 2009, 02:09:50 AM by Karlos »
int p; // A
 

Offline mchaggisTopic starter

  • Jr. Member
  • **
  • Join Date: Jan 2008
  • Posts: 85
    • Show only replies by mchaggis
Re: OS4.1 and Samba configuration question.
« Reply #2 on: August 31, 2009, 12:26:21 PM »
Thanks for your help, although if I could lean on you a bit further...

I receive this error message:
Device "SMB0:" not found in the file "DEVS:MountList:".

I also need to use smbclient, not smbfs but the syntax is very much the same.

If i change the user-startup entry, "Mount SMB0", ie dropping the colon, nothing appears to happen at all.
 

Offline Golem!dk

  • Sr. Member
  • ****
  • Join Date: Dec 2002
  • Posts: 414
    • Show only replies by Golem!dk
    • http://www.google.com/
Re: OS4.1 and Samba configuration question.
« Reply #3 on: August 31, 2009, 02:04:59 PM »
Quote from: mchaggis;521574

I receive this error message:
Device "SMB0:" not found in the file "DEVS:MountList:".

That would be because of the changes you made to the command Karlos gave you, there is no space and no colon.
Quote
I also need to use smbclient, not smbfs but the syntax is very much the same.
If i change the user-startup entry, "Mount SMB0", ie dropping the colon, nothing appears to happen at all.

If you need to use smbclient you're stuck with command line usage, you get no nice device access like smbfs provides. Is there any reason why you would not want to use smbfs?
~
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16881
  • Country: gb
  • Thanked: 5 times
    • Show only replies by Karlos
Re: OS4.1 and Samba configuration question.
« Reply #4 on: August 31, 2009, 03:49:58 PM »
I find smbfs great. I actually keep all my source code (which has x86/x64/PPC and m68k forks) on the linux box and have an assign on the OS4 machine. It actually compiles the code across the network :)

I'm even triggering the OS4 compile process from the linux box via telnet. How lazy is that? :D
int p; // A
 

Offline mchaggisTopic starter

  • Jr. Member
  • **
  • Join Date: Jan 2008
  • Posts: 85
    • Show only replies by mchaggis
Re: OS4.1 and Samba configuration question.
« Reply #5 on: August 31, 2009, 11:42:18 PM »
OK, thanks for this help. I'll get smbfs from os4depot tonight. As for why I'm not already using smbfs it is because sbmclient is all that came with the samba download and I was unaware (although Karlos's post should have prompted me to think harder and find it -my mistake) that smbfs was available.

I have another go with the right tools tonight.

Thanks.
« Last Edit: September 01, 2009, 11:47:25 AM by mchaggis »
 

Offline mchaggisTopic starter

  • Jr. Member
  • **
  • Join Date: Jan 2008
  • Posts: 85
    • Show only replies by mchaggis
Re: OS4.1 and Samba configuration question.
« Reply #6 on: September 01, 2009, 11:55:09 AM »
Thanks Karlos and Golem!dk; smbfs is now happily allowing my OS4 machine to browse server resources.