Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 02-27-2004, 05:31 PM   #1
Registered: Aug 2003
Distribution: Mandriva, Slackware
Posts: 265

Rep: Reputation: 30
Question Sharing folder at linux

Hello all:

I'm trying to set up a small file server running mdk 9.1 using samba, of course. I'm at my office and i'm able to see, connect and mount windows shares from linux. However, i'm in trouble when trying to do it backwards: accesing a linux shared folder from WinXP machines.
They can 'see' it, but is in access when trouble comes up: when i click on the linux share it asks for a password. 'big deal' i thought, since i already setup a few test samba users, but neither of them work, even root can't login.
I've tried several combinations of config , both editing smb.conf and via webmin without success
Anybody can shed some light on this??

Thanks in advance folks

Here's ,my smb.conf, i hope this could help...

log file = /var/log/samba/log.%m
smb passwd file = /etc/samba/smbpasswd
load printers = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
map to guest = bad user
encrypt passwords = yes
dns proxy = no
netbios name = linux-cas
server string = Samba Server %v
default = utilerias
workgroup = CORPORATIVO
os level = 20
auto services = sharedfile
printcap name = cups
security = domain
max log size = 50

comment = Home Directories
browseable = no
writable = yes

# Un-comment the following and create the netlogon directory for Domain Logons
; [netlogon]
; comment = Network Logon Service
; path = /var/lib/samba/netlogon
; guest ok = yes
; writable = no

# This one is useful for people to share files
; comment = Temporary file space
; path = /tmp
; read only = no
; public = yes

# A publicly accessible directory, but read only, except for people in
# the "staff" group
; comment = Public Stuff
; path = /home/samba/public
; public = yes
; writable = no
; write list = @staff
# Audited directory through experimental VFS module:
# Uncomment next line.
; vfs object = /usr/lib/samba/vfs/

# A publicly accessible directory, read/write to all users. Note that all files
# created in the directory by users will be owned by the default user, so
# any user with access can delete any other user's files. Obviously this
# directory must be writable by the default user. Another user could of course
# be specified, in which case all files would be owned by that user instead.
; path = /usr/somewhere/else/public
; public = yes
; only guest = yes
; writable = yes
; printable = no

# The following two entries demonstrate how to share a directory so that two
# users can place files there that will be owned by the specific users. In this
# setup, the directory should be writable by both users and should have the
# sticky bit set on it to prevent abuse. Obviously this could be extended to
# as many users as required.
guest account = myguestaccount
printable = no
writeable = yes
path = /usr/somewhere/shared
comment = Server Linux
valid users = manrike,rockmanexe cas
create mode = 0775
public = yes
Old 02-27-2004, 06:49 PM   #2
Senior Member
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
Hi there,

since i already setup a few test samba users
Ok, so right there I'm assuming you ran 'smbpasswd -a <username>'. Ok,
in the smb.conf find the line that says something like:

"password encryption = false"

That was the thing that made my username/password failed all the time. Window's machine passes username/passwords encrypted so therefore you must make that statement = 'true'. Solved everything for me. Hope that helps...

Old 03-09-2004, 05:54 PM   #3
Registered: Aug 2003
Distribution: Mandriva, Slackware
Posts: 265

Original Poster
Rep: Reputation: 30
I'm done. I completely erased my smb. conf file and rebuilt it from scratch via webmin. here's the result, quite simple and works like a charm. Maybe is not as secure as it should be but it acomplishes the requierments here, as a small file server which everyone can acess and write on.

Thanks for the help

guest account = my-account
comment = test folder
writeable = yes
public = yes
path = /usr/myshare/share

workgroup = mygroup
os level = 20
netbios name = linux
encrypt passwords = yes
security = share


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
Sharing a home folder between 2 Linux distros Jongi Fedora 1 10-26-2005 04:38 PM
Need help sharing folder across LAN stelmate Linux - Networking 3 10-24-2005 11:52 AM
folder sharing problem jnev Linux - Networking 5 06-23-2005 10:41 PM
problem sharing folder via NFS cdavidson Linux - Newbie 4 04-03-2005 08:39 PM
Sharing Windows Folder Caveman Linux - Newbie 5 09-26-2003 01:37 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:22 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
Open Source Consulting | Domain Registration