Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: larieu on September 03, 2009, 09:03:20 AM

Title: smbmount and smbumount was replaced in SME8?
Post by: larieu 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?
Title: Re: smbmount and smbumount was replaced in SME8?
Post by: cactus 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.
Title: Re: smbmount and smbumount was replaced in SME8?
Post by: larieu 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
Title: Re: smbmount and smbumount was replaced in SME8?
Post by: cactus 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.
Title: Re: smbmount and smbumount was replaced in SME8?
Post by: RedBeard 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?
Title: Re: smbmount and smbumount was replaced in SME8?
Post by: cactus 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.
Title: Re: smbmount and smbumount was replaced in SME8?
Post by: larieu 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
Title: Re: smbmount and smbumount was replaced in SME8?
Post by: jpl 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.