LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 08-31-2006, 12:50 AM   #1
lhrt
Member
 
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

Quote:
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.

Quote:

[global]
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

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

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

[profiles]
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

[public]
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
lhrt
 
Old 09-01-2006, 12:37 AM   #2
gv_rajasekhar
LQ Newbie
 
Registered: Aug 2006
Posts: 16

Rep: Reputation: 0
[public]
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
lhrt
Member
 
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
synpse
LQ Newbie
 
Registered: Mar 2004
Location: Pennsylvania
Distribution: CentOS
Posts: 28

Rep: Reputation: 15
[public]
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.
 
  


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
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


All times are GMT -5. The time now is 04:26 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