LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Samba without authentication (https://www.linuxquestions.org/questions/slackware-14/samba-without-authentication-384697/)

maginotjr 11-19-2005 03:17 PM

Samba without authentication
 
I have a linux server running samba server and want to make a share and I dont want that the login dialog box appear in the windows box when try to access my server...
if some machine try to connect to another windows box it doesnt ask for password but when trying to access the linux box it asks...

how can I leave my server share open so any machine in the network could access it without providing a password?


regards

maginotjr 11-19-2005 03:19 PM

this is my smb.conf file:

Code:


[global]
workgroup = CODT
netbios name = LinuxFirebird
server string = Linux Server
security = user
encrypt passwords = yes
local master = no
;guest account = firebird
guest ok = yes
#===== Share Definitions =====
[homes]
comment = Home Directories
browseable = yes
writable = yes

[public]
comment = Firebird DB server
path = /var/firebird
public = yes
writable = yes
guest ok = yes


slackwh0re 11-19-2005 10:59 PM

Code:

[global]
        workgroup = PARTYDOME
        server string = Samba Server
        map to guest = Bad User
        log file = /var/log/samba.%m
        max log size = 50
        dns proxy = No
        interfaces = 192.168.0.0/24
        bind interfaces only = yes
        map guest user = Bad User
[homes]
        comment = Home Directories
        read only = No
        browseable = No

[storage]
        comment = storage
        path = /storage
        guest only = Yes
        guest ok = Yes

thats my smb.conf

basically it does prompt the user for a login, and if the user provides a bad username/password, it will automatically direct the user to the guest account. this is not exactly what you want, but i find it works the best because you can have people authenticating to their home shares and my storage drive (as you can see), as well as just allowing guests to access the storage drive only.

if you're still after no authentication screen what so ever.. your answer is around here:

http://www.oreilly.com/catalog/samba...k/ch06_03.html

Quote:

If the share is guest only , the user is immediately granted access to the share with the rights of the user specified by the guest account parameter; no password checking is performed.

maginotjr 11-21-2005 03:33 AM

Thanks, this helped me... I made a share like storage and it doesnt ask for a password.... but the option map guest user doesnt exist.. you can check with the command testparm


regards [ ]'s

slackwh0re 11-21-2005 03:43 AM

whoa.. you've just pointed out a mistake ive had in my smb.conf file for possibly years !

it should be: map to guest = Bad User

see http://au1.samba.org/samba/docs/man/...mb.conf.5.html

maginotjr 11-21-2005 05:56 AM

you helped me and I helped you, this is the beauty of the forums LOL

:D

chrisortiz 11-21-2005 05:07 PM

Code:

[global]
workgroup = CODT
netbios name = LinuxFirebird
server string = Linux Server
security = user
encrypt passwords = yes
local master = no
;guest account = firebird
guest ok = yes
#===== Share Definitions =====
[homes]
comment = Home Directories
browseable = yes
writable = yes

[public]
comment = Firebird DB server
path = /var/firebird
public = yes
writable = yes
guest ok = yes

you could also just change

Code:

security = user
to
Code:

security = share
then:
smbd restart


All times are GMT -5. The time now is 05:06 PM.