Solved

Linux Samba authentication

Posted on 2010-09-20
4
486 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
As a financial services provider, your business is impacted by two of the strictest federal regulations on record: the Sarbanes-Oxley Act and the Gramm-Leach-Bliley Act. Correctly implementing faxing into your organization to provide secure, real-ti…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

914 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now