Silencer001
asked on
samba shares accessibility
Hi everyone,
I would like to define 2 samba shares on my network. I have a 3-leg perimeter with a samba-server on the green zone (with all my other clients and servers).
1 share is a public share for all the clients and servers. So no authentication
1 share is a share which only clients may access. So authentication with the local accounts on the linux-server.
Is this possible to access 1 share without authentication and the other one with authentication?
And how what would the stanza of the 2 shares be in the smb.conf ?
Thanks in advance!
I would like to define 2 samba shares on my network. I have a 3-leg perimeter with a samba-server on the green zone (with all my other clients and servers).
1 share is a public share for all the clients and servers. So no authentication
1 share is a share which only clients may access. So authentication with the local accounts on the linux-server.
Is this possible to access 1 share without authentication and the other one with authentication?
And how what would the stanza of the 2 shares be in the smb.conf ?
Thanks in advance!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi Small_Student,
I just adapted the settings and worked like a charm!! Really nice help!
I gave 770 for the auth share and 777 for the public share. (I changed the group-owner to the group with the users that may access the samba-server).
So the next 2 lines made sure that you don't need to logon immediatly when you access the samba-server? Can you please give me some additional information about these 2 lines?
guest account = nobody
map to guest = bad user
Already thank you soo much! 500 point coming your way! ;-)
Kind regards,
Sven
I just adapted the settings and worked like a charm!! Really nice help!
I gave 770 for the auth share and 777 for the public share. (I changed the group-owner to the group with the users that may access the samba-server).
So the next 2 lines made sure that you don't need to logon immediatly when you access the samba-server? Can you please give me some additional information about these 2 lines?
guest account = nobody
map to guest = bad user
Already thank you soo much! 500 point coming your way! ;-)
Kind regards,
Sven
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Wow thanks, great explanation!!
Thanks for all your information!!
Thanks for all your information!!
ASKER
But I don"t understand what you mean with "for the public share in the global section you must have"..
Is it like this:
[public share]
path =/path/to/dir
guest ok = yes
readonly = no
guest account = nobody
map to guest = bad user
I just want to give everyone full access so I will give 777 on the dir. Or is this not smart?
But the problem is that I need to give in a password when I want to connect to the server. So when I access \\172.27.10.10, I will be promted for a password. How can I resolve this so that I only need to give in a password when I want to join auth share?
And is there also a way to just block access to the auth share for server by its ip-address?
I also added the users to samba.
Thanks for your reply already, much appreciated!