Solved

Linux Samba authentication

Posted on 2010-09-20
4
489 Views
Last Modified: 2013-12-09
Hey people,

I have a home server which has a share that I would like to have everyone access. At the moment, sometimes Windows machines can get straight, other times they will ask for authentication and I have to hit cancel and try again, until eventually it works.

I think I have the permissions setup right, but authentication seems to be a problem. How do I just allow everyone access?

This is my current smb.conf

Thanks
[global]
	workgroup = WORKGROUP
        netbios name = server
        hosts allow = 192.168.
	security = share

wins support = no
[printers]
        comment = All Printers
        path = /var/spool/samba
        create mask = 0700
        printable = Yes
        browseable = No

[print$]
        comment = Printer Drivers
        path = /var/lib/samba/printers
[tsunami]
        comment = RAID5 Array
        path = /media/tsunami
        browseable = yes
        guest ok = yes
        printable = no
        read only = no
        create mask = 0777
        directory mask = 0777
        force create mode = 0777
        force directory mode = 6775

Open in new window

0
Comment
Question by:chipped
4 Comments
 
LVL 2

Expert Comment

by:mobilescholar
ID: 33716473
I suspect that samba is having difficulty mapping a *nix account to the share request. Try including "guest only = yes" in your [tsunami] section, and defining a guest account in the global section with "guest account = guest" or some such username and restarting the samba service. Just make sure you have that guest account created in your system with appropriate permissions to the directory/files you want to share. This will give samba a definite *nix user account to use.

See the man page for smb.conf for additional information: http://www.samba.org/samba/docs/man/manpages-3/smb.conf.5.html
0
 
LVL 29

Expert Comment

by:Sudeep Sharma
ID: 33720893
you could try:

quest account = nobody

I hope that would help

Sudeep
0
 
LVL 4

Accepted Solution

by:
pingvinos earned 500 total points
ID: 33727653
Hello!
I am posting you my /etc/samba/smb.conf, which basically shares with write access to everyone folder /var/www/html.It is as simple as:

security = share
guest account = user_with_privileges_on_/var/www//html/

[HTML]
       comment = Guest access share        path = /var/www/html        browseable = yes        writable = yes        guest ok = yes


You don't need anything else.If you suspect you have a problem with your current setup,you should examine logs (tail -f /var/log/samba/smbd.log  ) while trying to connect to a share from another computers.
Ciao!



0
 

Author Comment

by:chipped
ID: 33730940
Ok thanks, I will try that tonight :)
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Online collaboration is quickly becoming embedded in the workplace, and its benefits are tangible. See what the current landscape looks like and what the future holds for collaboration tools and the future of work.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question