Koozali.org: home of the SME Server

smbmount and smbumount was replaced in SME8?

Offline larieu

  • *****
  • 214
  • +0/-0
smbmount and smbumount was replaced in SME8?
« on: September 03, 2009, 09:03:20 AM »
I have 2 servers

one now with 7.4 last update
and the other one for several tests 8.0 last update

I don't remember to install something special on the first one to have this commands
When I copied some automated tasks (shell scripts in cron jobs) created for the first one to verify on the second one to see if everything works smooth in that new one I received the error that this commands are not available

this is a new policy?
it is related to the new CentOS?
it will be available?
I must use standard mount/umount?
if everybody's life around you is better, probably yours will be better
just try to improve their life

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: smbmount and smbumount was replaced in SME8?
« Reply #1 on: September 03, 2009, 11:07:14 AM »
I have 2 servers

one now with 7.4 last update
and the other one for several tests 8.0 last update

I don't remember to install something special on the first one to have this commands
When I copied some automated tasks (shell scripts in cron jobs) created for the first one to verify on the second one to see if everything works smooth in that new one I received the error that this commands are not available

this is a new policy?
it is related to the new CentOS?
it will be available?
I must use standard mount/umount?
What errors? We do not have a crystal ball. If you need help try to be as clear as possible and show the errors verbatim instead of paraphrasing and vaguely describing them. TIA.

Aprrt from that errors with SME Server 8 core should be reported in the bugtracker.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline larieu

  • *****
  • 214
  • +0/-0
Re: smbmount and smbumount was replaced in SME8?
« Reply #2 on: September 03, 2009, 11:43:59 AM »
Sorry if I was not to clear

this two commands are wannished
if you write
smb <TAB> <TAB> don't apear on list

if you write by yourself the error is

Code: [Select]
-bash: smbumount: command not found
if everybody's life around you is better, probably yours will be better
just try to improve their life

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: smbmount and smbumount was replaced in SME8?
« Reply #3 on: September 03, 2009, 03:06:53 PM »
It is part of the Samba set and since SME Server 8 is based on CentOS 5 which in turn is based on RHEL 5 the following applies:

Quote
In Red Hat Enterprise Linux 5 smbmount command has been replaced by mount.cifs
Source: http://en.wikipedia.org/wiki/Smbmount

So you will have to rewrite your scripts.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline RedBeard

  • ***
  • 62
  • +0/-0
Re: smbmount and smbumount was replaced in SME8?
« Reply #4 on: September 03, 2009, 03:49:26 PM »
Cactus, could you also create an alias for the commands in question so that you would not have to rewrite the scripts for SME 8?
............

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: smbmount and smbumount was replaced in SME8?
« Reply #5 on: September 03, 2009, 04:01:34 PM »
Cactus, could you also create an alias for the commands in question so that you would not have to rewrite the scripts for SME 8?
Perhaps, I am unaware of the exact format of the parameters. It might well be that an alias could do, but then again if that is the case replacing the command in the script wouldn't be to much work either and really fixes it as the old commands will (most likely) not return in the future.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline larieu

  • *****
  • 214
  • +0/-0
Re: smbmount and smbumount was replaced in SME8?
« Reply #6 on: September 03, 2009, 04:14:30 PM »
thanks cactus

the correct approach seems to rewrite that scripts
because in the future all RedHat, CentOS, Fedora will have the same behaviour

once solved with the new commands will work on any of that distributions

the replacing command for smb(u)mount is

Code: [Select]
mount -t cifs
« Last Edit: September 03, 2009, 04:26:14 PM by larieu »
if everybody's life around you is better, probably yours will be better
just try to improve their life

Offline jpl

  • *
  • 112
  • +0/-0
Re: smbmount and smbumount was replaced in SME8?
« Reply #7 on: September 03, 2009, 08:31:25 PM »
Being accurate, smbmount is not replaced by mount.cifs

In SME 8 smbfs support is no more available, because it is seen as obsolete.

So use remaining cifs support, already available with sme 7.