LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 09-16-2009, 09:26 AM   #1
uncle-c
Member
 
Registered: Oct 2006
Location: The Ether
Distribution: Fedora 14, Ubuntu , Slax 5.1.8, OpenSolaris, Centos 4.8
Posts: 296

Rep: Reputation: 30
smb.conf file - "map to guest / guest ok = yes" query.


Hi,
I'm running a Samba server on Fedora9 box and have a question concerning the use of the above in my smb.conf file. Three scenarios

A:
Code:
workgroup = LINUX
        server string = Samba Server Version %v
        netbios name = FEDORA
        hosts allow = *****************
        hosts deny = **************
        log file = /var/log/samba/log.%m
        security = user                
;	map to guest = Bad User  

    [samba]

   path= /home/samba
   read only = no
    guest ok = yes

********* LINES OMITTED ***********
B:
Code:
workgroup = LINUX
        server string = Samba Server Version %v
        netbios name = FEDORA
        hosts allow = *****************
        hosts deny = **************
        log file = /var/log/samba/log.%m
        security = user                
	map to guest = Bad User  

    [samba]

   path= /home/samba
   read only = no
;    guest ok = yes
C:

Code:
workgroup = LINUX
        server string = Samba Server Version %v
        netbios name = FEDORA
        hosts allow = *****************
        hosts deny = **************
        log file = /var/log/samba/log.%m
        security = user                
	map to guest = Bad User  

    [samba]

   path= /home/samba
   read only = no
    guest ok = yes

In scenarios A and C I can access the share without putting in a password by just pressing enter at the password prompt. In scenario B I have to enter the correct password to access the share. So could someone clarify the purpose of "map to guest = Bad User" and why it can or cannot be used alongside "guest ok = yes" in order to gain passwordless access. Why would Scenario B not let me access without a password ? Also it seems to me that there is no need for "map to guest = Bad User" provided "guest ok = yes".

cheers
C
 
Old 09-16-2009, 09:44 AM   #2
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,379

Rep: Reputation: 824Reputation: 824Reputation: 824Reputation: 824Reputation: 824Reputation: 824Reputation: 824
In scenario B and C, 'map to guest = Bad User' is in the global section of your smb.conf. It is the general default. In scenario B, the global default is used for the share, so a guest login is not allowed. In scenario C, the global default is overridden by the 'guest ok = yes' for the [samba] share, so a guest login is allowed.
In scenario A, there is no global default and a 'guest ok = yes' for the [samba] share, so a guest login is allowed.

See 'man smb.conf' for more information.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Connect to a "Guest" Redhat AS4 to W2K Server without Network? KimInWis Linux - Networking 4 06-10-2009 01:53 PM
Xen Problem while creating guest " Invalid file location given: No such file " mgurnani Linux - Software 0 05-09-2009 03:02 PM
KVM Win XP guest can internet, can see smb on Slack 12.1 host "but can't find path" acummings Slackware 6 12-02-2008 01:16 AM
xp workgroup pc cannot change "<samba server>/Guest" in connection pop-up duderancher Linux - Server 4 09-17-2008 02:34 PM
guest access to a share in smb.conf ?? ludeKing Linux - Networking 1 10-27-2003 01:36 PM


All times are GMT -5. The time now is 12:39 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration