[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 222
  • Last Modified:

Samba - Removing all passwords on shares

Hi,

Im trying to setup samba on my redhat 9 box.

I want no security on it what so ever - that is, no password prompt when a windows client trys to connect to a share.

Could any one please explain how this is achieved?  I have tried various methods, all result in Samba still prompting for a username &  password when a client trys to access a share.

Many thanks, Elliot.
0
Eggeh
Asked:
Eggeh
  • 6
  • 5
  • 5
  • +1
2 Solutions
 
paranoidcookieCommented:
What the security set to in samba?

Have a look at the security permissions in your smb.conf also make sure the actual directory has permissions 777 read / write / execute on the unix file system.
If you dont want it world writable you can use the force group directive in smb.conf and allow the groups full access.

http://www.samba.org/samba/docs/man/smb.conf.5.html

how about

[share]

path = /path/to/share
read only = no
guest ok = no
0
 
wesly_chenCommented:
Hi,

Besides, in /etc/samba/smb.conf, change
-----
security = share
-----

Wesly
0
 
EggehAuthor Commented:
Afriad neither of the above works.

Permissions on the folders are 777.
0
Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

 
wesly_chenCommented:
Hi,

   Could you post your /etc/samba/smb.conf ?

Wesly
0
 
paullamhkgCommented:
set the service guest only = yes, and the security = share, the connection is made as the username given in the “guest account =” for the service, irrespective of the supplied password. so it should ask for login.
0
 
EggehAuthor Commented:
Hi,

This is my smb.conf file:

www.2wp.net/sambaconf.txt

Cheers, Elliot.

0
 
paranoidcookieCommented:
Which share do you want to be made totally available?
0
 
EggehAuthor Commented:
The [Apps] folder.
0
 
paranoidcookieCommented:
Why have set guest ok to no?
0
 
EggehAuthor Commented:
Becuase you told me to at the top of the thread? :)
0
 
paranoidcookieCommented:
In the words of homer simpson DOH!

Try changing it to yes.
0
 
EggehAuthor Commented:
And also in the words of homer simpson, WOOHOO!

It seems to work.. although i dont know why it didnt before as i know i had guest = yes pretty much all the time, as its common sense really!

Ill just double check on a few machines then ill be back with the points :)
0
 
wesly_chenCommented:
Hi,

   I guess you change the "security=share" and "guest ok=no" and the same time so it didn't work at that time.
So the right combination is "security=share" and "guest ok=yes".

Regards,

Wesly
0
 
paranoidcookieCommented:
Im not sure the security is the important bit to be honest if you say the share is writeable and guests are ok then I think thats it I might give it a test when I get home (dont think work would be impressed).
0
 
wesly_chenCommented:
> Im not sure the security is the important bit
I've tested it. Without security set to "share" ("user" or "server"), it will prompt you for username and password.
"guest ok = yes" is for directory sharing level.

Wesly
0
 
paullamhkgCommented:
I suggested at my 1st comment to use guest only = yes and security = share :-)
0
 
paullamhkgCommented:
oh after review my 1st comment there is a typo mistake, I wanna to said it shouldn't as for login ;-(
0
 
paranoidcookieCommented:
wesly_chen did your computer have an account on the domain?
0
 
wesly_chenCommented:
> wesly_chen did your computer have an account on the domain?
My Windows PC, yes.
My Samba test machine, no.

Wesly
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 6
  • 5
  • 5
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now