Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-31-2006, 12:50 AM   #1
Registered: Mar 2006
Posts: 82

Rep: Reputation: 15
Samba user mode with out password

Hi I have configured samaba as my Primary Domain controller so security mode is user.
the problem is i want to share a specific directory to all with write permission with out entering any password so that even guest users can use this shared directory.
I can login to this directoy as an anonumous user using linux command

smbclient //MYDOMAIN/public
But when I try to access this share from awindows machien it will ask for password.

my smb.conf is the following and server is centos 4 clients are WindowsXP service pack 2.


workgroup = MYWORKGROUP
netbios name = MYDOMAIN
server string = Samba PDC
hosts allow = 192.168.1.
security = user
encrypt passwords = Yes
allow trusted domains = No
log level = 3
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = CUPS
local master = yes
domain logons = Yes
os level = 65
preferred master = True
domain master = True
dns proxy = No
printing = cups
null passwords = Yes
hide unreadable = yes
hide dot files = yes
domain logons = yes
logon Script = scripts\logon.bat
logon path = \\%L\profiles\%U
logon drive = X:
logon home = \\%L\home\%U
wins support = yes
name resolve order = wins lmhosts host bcast
dns proxy = no
time server = yes
add user script = /usr/sbin/useradd -m %u
delete user script = /usr/sbin/userdel - r %u
add group script = /usr/sbin/groupadd %g
delete group script = /usr/sbin/groupdel %g
add user to group script = /usr/sbin/usermod -G %g %u
add machine script = /usr/sbin/useradd -s /bin/false -d /dev/null %u
passwd chat = "*New password:*" %n\r "*New pasword (again):*" %n\r "*passwor
d changed*"
unix charset = ISO8859-1

comment = Home Directories
path = /home/%U
browseable = no
valid users = %S
guest ok = no
read only = No
browseable = No
inherit permissions = yes

comment = Network Logon Service
path = /home/samba/netlogon
guest ok = no
read only = yes
browseable = No
locking = no

path = /home/samba/profiles
browseable = no
writeable = yes
default case = lower
preserve case = no
short preserve case = no
case sensitive = no
hide files = /desktop.ini/ntuser.ini/NTUSER.*/
write list = @users @root
create mask = 0600
directory mask = 0700

comment = Public Stuff
path = /home/samba/public
guest only = Yes
public = Yes
read only = Yes
browsable = Yes
If anybody know whats the configuration mistake please share the knowledge

thank you all
Old 09-01-2006, 12:37 AM   #2
LQ Newbie
Registered: Aug 2006
Posts: 16

Rep: Reputation: 0
comment = Public Stuff
path = /home/samba/public
guest only = Yes
public = Yes
read only = Yes
browsable = Yes

try guest ok =yes
Old 09-02-2006, 08:34 PM   #3
Registered: Mar 2006
Posts: 82

Original Poster
Rep: Reputation: 15
but still it ask for a username.
so i cant give access to an anonymous user.
Old 09-06-2006, 08:27 AM   #4
LQ Newbie
Registered: Mar 2004
Location: Pennsylvania
Distribution: CentOS
Posts: 28

Rep: Reputation: 15
comment = Public Stuff
path = /home/samba/public
guest only = Yes
public = Yes
read only = Yes
browsable = Yes
guest ok = Yes
username = mydefaultaccountnamehere

Try something like that.. that way anyone accessing that share will be using THAT username, regardless of password. HTH.


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
Slackware's Single User Mode requires root password too? StevenO Slackware 2 01-25-2006 08:28 PM
Samba -- XP user can log in to shares but smbclient user always gets password errors ejoe Linux - Software 3 04-18-2005 10:55 AM
Super User mode, my root password doesn't work? kko88 Linux - Newbie 8 05-20-2003 06:01 PM
Password Recovery and Single User mode natso Linux - Newbie 4 05-28-2002 04:59 AM
Samba user/password EternalKnight Linux - Networking 3 01-12-2002 05:35 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:27 AM.

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