Koozali.org: home of the SME Server

SME 10 Beta 1 - Samba & Runlevel

Offline STRyk

  • ****
  • 190
  • +0/-0
SME 10 Beta 1 - Samba & Runlevel
« on: March 22, 2021, 03:23:27 PM »
Does anyone can tel me how Samba works on SME10 b1 ?
I can't see SME10 on "workgroup".

Same for Runlevel :
# runlevel
unknown

Where can I install .rc files ?

Thanks.

Offline Jean-Philippe Pialasse

  • *
  • 2,763
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: SME 10 Beta 1 - Samba & Runlevel
« Reply #1 on: March 22, 2021, 04:16:17 PM »
samba is running with SMBv2/SMBv3 protocols , so no more advertising through netbios which is deprecated for security reason (as is SMBv1).

you can install this contrib, still in smetest, to restore some advertising of the server. https://wiki.contribs.org/Wsdd
It is working great, while some work still need to be done on it, but this is more in term of coding standard of the integration, nothing about its functionality.


Runlevel is a deprecated approach left with the end of SysVinit. We are using systemd, we then use target, and our target is sme-server.target. The philosophy of target is totally different of runlevel, so do not try to reproduce the behaviour, but rather try to integrate to the flow.
Systemd will launch in parallel all service that are able to be launched, while respecting their own dependencies. I.E. if service samba needs the network, it will wait for network to run before starting samba.


There is not real easy way to know the current target, while you can get what is the default target (which might not be the running target as one could have isolate to another one, or this one was not yet reached because it is waiting for a job to end ....

Code: [Select]
# systemctl get-default
sme-server.target

and check if some elements are still in queue before reaching the default target
Code: [Select]
# systemctl list-jobs
No jobs running.

« Last Edit: March 22, 2021, 04:18:53 PM by Jean-Philippe Pialasse »

Offline STRyk

  • ****
  • 190
  • +0/-0
Re: SME 10 Beta 1 - Samba & Runlevel
« Reply #2 on: March 22, 2021, 05:46:50 PM »
OK, thanks !

# systemctl status smbd.service
# systemctl restart smbd.service
etc...

I think it's better than ".rc" !?!
;)

Is it possible to use Samba v4 on SME 10b1 ?

I don't know why, I can't see SME 10b1 on workgroup...
« Last Edit: March 22, 2021, 05:49:14 PM by STRyk »

Offline ReetP

  • *
  • 3,736
  • +5/-0
Re: SME 10 Beta 1 - Samba & Runlevel
« Reply #3 on: March 22, 2021, 06:20:58 PM »

# systemctl status smbd.service
# systemctl restart smbd.service
etc...

I think it's better than ".rc" !?!
;)

Petsonally hate it but apparently ut's 'progress'

Quote
Is it possible to use Samba v4 on SME 10b1 ?

Don't confuse version and protocol version.

You have Samba 4.

Code: [Select]
rpm -qa |grep samba-common
samba-common-tools-4.10.16-9.el7_9.x86_64
samba-common-4.10.16-9.el7_9.noarch
samba-common-libs-4.10.16-9.el7_9.x86_64

Quote
I don't know why, I can't see SME 10b1 on workgroup...

Please read Jean Philippes answer again.

SMB v1 is deprecated and is not running.

Please see wsdd.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline STRyk

  • ****
  • 190
  • +0/-0
Re: SME 10 Beta 1 - Samba & Runlevel
« Reply #4 on: March 22, 2021, 06:28:08 PM »
OK for protocols.

And why this ?
# systemctl status wsdd.service
Unit wsdd.service could not be found.
 :shock:

And how connect Windows XP users And Mac Users on "Samba" shares ?
Have you any link to understand the problem ?

Offline ReetP

  • *
  • 3,736
  • +5/-0
Re: SME 10 Beta 1 - Samba & Runlevel
« Reply #5 on: March 22, 2021, 06:47:05 PM »
And why this ?
# systemctl status wsdd.service
Unit wsdd.service could not be found.
 :shock:

Why do you think? Have you read the wiki page?

Quote
And how connect Windows XP users And Mac Users on "Samba" shares ?
Have you any link to understand the problem ?

XP is EOL and should not be used. Same for Win 7. The internet is full of pages about that.

Mac. I don't know. It may depend on versions.

You said 'ok for protocols' but asking these questions means you don't really understand.

You really need to read about SMB protocols. Start with a proper read on the wsdd page.

...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline STRyk

  • ****
  • 190
  • +0/-0
Re: SME 10 Beta 1 - Samba & Runlevel
« Reply #6 on: March 22, 2021, 07:02:43 PM »
XP is EOL and should not be used. Same for Win 7. The internet is full of pages about that.

Mac. I don't know. It may depend on versions.

You said 'ok for protocols' but asking these questions means you don't really understand.

You really need to read about SMB protocols. Start with a proper read on the wsdd page.

You will have to explain to the bosses to have to buy new machines with new licenses. Good luck ! haha.
There is a good reason why we use SME.
All the more so with what is being prepared the budget is far from being present. I think the end is near ...
Too bad thank you all the same.

Start with a proper read on the wsdd page.
I'm not co-learning it already, so to continue... There are sums of nested things to learn.

I'm going to have to stay a long time on SME 9.2, we finally have no choice.
 :(

Offline ReetP

  • *
  • 3,736
  • +5/-0
Re: SME 10 Beta 1 - Samba & Runlevel
« Reply #7 on: March 22, 2021, 10:10:26 PM »
So you are going to run even more EOL software? Have you explained the cost of being hacked/ransomed?

Just tell your bosses to speak to me....

There are solutions on v10 for you, but you are going to have to do some work, most of which is just reading & learning.

It isn't difficult. Just a bit of your time. It will be worth it in the long run.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline STRyk

  • ****
  • 190
  • +0/-0
Re: SME 10 Beta 1 - Samba & Runlevel
« Reply #8 on: March 23, 2021, 12:31:29 AM »
Hacking ?
As long as they are not in the mud until the blow they will not understand, then to make them understand something which does not include even a hundredth, it is wasted effort. They want a quick return on their investment, the rest ... Especially without spending anything.
We are in France here, don't forget that. The country of excessive aid, we do not have a round, we tinker, we give false diplomas to children, we set up "leaders" because they are the friends of the bosses ... In short ... Lousy. This is the reality in France.
I do not gain anything at all with SME, I try to get my head out of the water with inexpensive and reliable solutions, with a lot of time allocated (nights of weekends).
Fortunately there is SME and you.
I'm especially fed up with things that quickly become obsolete, changing everything, buying everything back (impossible) and learning everything again to end up never winning anything. I've been doing it all my life.
Fed up ...
Thanks for the help anyway.

Offline ReetP

  • *
  • 3,736
  • +5/-0
Re: SME 10 Beta 1 - Samba & Runlevel
« Reply #9 on: March 23, 2021, 01:05:22 AM »
I am not interested in politics thanks.

I cannot change UPSTREAM changes. We can only go with them. I dislike systemd but that is what is now 'standard'.

If we had more help we could do more things differently. But we are very few. As far as possible we accept what we are given to make it easier for us.

So please don't blame us for systemd, or for SMB1 being deprecated because it is bug ridden, or XP being EOL.

It is not our fault. Note CentOS 6 was suported for 10 years and CentOS 7 for 10 years too. We get complaints from some that it is too fast, and others it is too slow.....

Most of us earn absolutely nothing from  developing SME. Some are retired. Some just use SME at home. Some because it is our server at work. We all do it because we like it.

We wish more people would help us as it is fun working together.

You know where we are if you want to join in.

In the meantime, you will find your answers here, but you have got to do some of this yourself.

Please, help yourself and read. Wiki and forums and bugs.

If you do not understand the difference between SMB versions there is no point in anyone explaining anything else.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline STRyk

  • ****
  • 190
  • +0/-0
Re: SME 10 Beta 1 - Samba & Runlevel
« Reply #10 on: March 23, 2021, 01:16:00 AM »
I did not talk about politics, I am making observations.