Koozali.org: home of the SME Server

Ibay access for Guests - no logon required

Offline john56

  • ***
  • 143
  • +0/-0
Ibay access for Guests - no logon required
« on: May 08, 2023, 08:27:05 PM »
Hi,
i need to create a ibay (or better a sharefolder with the contrib) with write and execute permissions for computers from another domain without ask to log in.

I try this method from https://forums.koozali.org/index.php/topic,44889.msg216789.html#msg216789 (sme 7) with no success.

SME 10.1
A part of my smb.conf with add  "guest ok = yes" from the method above.
[nicspeed]
comment = nicspeed
path = /home/e-smith/files/ibays/nicspeed
read only = no
writable = yes
printable = no
inherit permissions = yes
create mode = 0664
guest ok = yes

I've tried with a virtual machine "linux mint" and this is ok with nautlius gui to give theses permissions on a folder.

Thanks for your help.

Offline ReetP

  • *
  • 3,731
  • +5/-0
Re: Ibay access for Guests - no logon required
« Reply #1 on: May 08, 2023, 11:27:13 PM »
I need to create a ibay..... with write and execute permissions for computers from another domain without ask to log in.

First question. Why would you want to do that?

Write and Execute?

You do understand it is very insecure?

Perhaps if we understand your needs we can help you.
...
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 john56

  • ***
  • 143
  • +0/-0
Re: Ibay access for Guests - no logon required
« Reply #2 on: May 09, 2023, 08:31:51 AM »
Hi,
i've created a batch (.bat) to know the speed of the auto negociation for the network cards.
(i have to investigate why sometines its 10 Mbits/s, sometimes 100, or 1000 about 300 computers)
This batch needs to write in a folder to see results (.txt) . It's ok with the network from sme but not from outside.
"Everyone" rights are for users from this network not the others. So i need to give rights to guest without account.

Offline ReetP

  • *
  • 3,731
  • +5/-0
Re: Ibay access for Guests - no logon required
« Reply #3 on: May 09, 2023, 11:49:45 AM »
Hi,
i've created a batch (.bat) to know the speed of the auto negociation for the network cards.
(i have to investigate why sometines its 10 Mbits/s, sometimes 100, or 1000 about 300 computers)

OK. Obvious questions - is all your networking equipment and cabling Gigabit compatible? Are you sure?

Quote
This batch needs to write in a folder to see results (.txt) . It's ok with the network from sme but not from outside.

Hmmm OK.

Quote
"Everyone" rights are for users from this network not the others. So i need to give rights to guest without account.

You do know that this is a massive security hole you are blowing in your server?

Someone else may chip in with a more sensible method than this as I am not sure it is a very good way to do it.
...
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 john56

  • ***
  • 143
  • +0/-0
Re: Ibay access for Guests - no logon required
« Reply #4 on: May 09, 2023, 11:54:45 AM »
I understand for security advertisment.  That's why i use a vm for the moment
But why not use a sme network share i "open" just to launch my script sometimes.

Offline Jean-Philippe Pialasse

  • *
  • 2,762
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Ibay access for Guests - no logon required
« Reply #5 on: May 09, 2023, 01:28:24 PM »

Quote

This batch needs to write in a folder to see results (.txt) . It's ok with the network from sme but not from outside.
"Everyone" rights are for users from this network not the others. So i need to give rights to guest without account.


you do not need guest access, you need to add access to the other network.

your manual configured linux mint was not taking into account the network filtering, which is also a security issue.

Offline john56

  • ***
  • 143
  • +0/-0
Re: Ibay access for Guests - no logon required
« Reply #6 on: May 09, 2023, 01:34:11 PM »
jpp ! you haven't read (you've told me enough for me to be able to tell you  8))
The other network have already access this share, but with login ...

Offline Jean-Philippe Pialasse

  • *
  • 2,762
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Ibay access for Guests - no logon required
« Reply #7 on: May 09, 2023, 07:36:55 PM »
jpp ! you haven't read (you've told me enough for me to be able to tell you  8))
The other network have already access this share, but with login ...

your previous quote says the opposite.
if the other network has access then you just need to have the connected user to have the write access on the needed folder, not a guest access that would allow any script kiddies in the school to mess with your results or to full your disk to 100% which could stop a few services on your server. 

Offline john56

  • ***
  • 143
  • +0/-0
Re: Ibay access for Guests - no logon required
« Reply #8 on: May 09, 2023, 07:45:12 PM »
Yes jpp, the second quote is less clear thant the first one where i explain it :)

My script is launched with nobody login, it's more easy to do it in a school because all computers are not always used.
It's launched manually when i decide.

That's the machine account who write the information in the folder (i see it on the file .txt
That's why i want to use guests in my case.
« Last Edit: May 10, 2023, 07:20:03 AM by john56 »

Offline ReetP

  • *
  • 3,731
  • +5/-0
Re: Ibay access for Guests - no logon required
« Reply #9 on: May 11, 2023, 03:09:36 AM »
Take JPs advice.

You are asking for a mountain of problems (kids......  :twisted: ), and then you will be back here asking for a fix.....

Fix the problem properly. Don't bodge around it.
...
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 john56

  • ***
  • 143
  • +0/-0
Re: Ibay access for Guests - no logon required
« Reply #10 on: May 11, 2023, 08:26:40 AM »
Ok, i always follow jpp since 2003 ...  :)
I just keep linux mint in vm for that and i turni it on only to launch that script.

Thanks to everyone.