LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 03-26-2012, 12:37 PM   #1
kitek
Member
 
Registered: Apr 2005
Posts: 252

Rep: Reputation: 15
Centos 5.7 Samba Sharing and Wndows not browing


I have a CentOS 5.7 Box with samba on it. SELinux is off and iptables is off. Windows can map the resouce but is says that it is not accessible. I have racked my brains restarted keep chaning configes. It just will not browse. What am I missing?
Code:
# Samba config file created using SWAT
# from 0.0.0.0 (0.0.0.0)
# Date: 2011/12/02 12:00:35

[global]
        workgroup = GRACELINK
        netbios name = FILESERVER
        server string = File Server
        security = USER
        password server = files
        passdb backend = tdbsam
        preload = Grace_Folder
        default service = Grace_Folder
        comment = Grace Test Folder
        path = /home/grace
        cups options = raw

[printers]
        comment = All Printers
        path = /var/spool/samba
        printable = Yes
        browseable = No

[homes]
        writeable = yes
        valid users = grace,username,username2
        public = yes
        afs share = Yes

[bpippin]
        comment = John Doe
        writeable = yes
        valid users = username,@username
        write list = @username
At this point if I can just view a share and write to it. I will turn SElinux and iptables on once I can find out the problem.
 
Old 03-26-2012, 02:44 PM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Hi kitek,

Are you trying to access Samba share from Windows 7 machine? If yes, then this is the link you should look at: http://nwlinux.com/access-samba-shar...-professional/
 
Old 03-26-2012, 03:16 PM   #3
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
Hi,

I will let you see my working (no password or user required) writable samba share in mixed Windows network (XP, Vista, Win7 -> Linux)
Code:
[global]
        workgroup = WORKGROUP_NAME
        server string = LINUX Server %v

netbios name = SERVER

;       interfaces = lo eth0 192.168.12.2/24 192.168.13.2/24
;       hosts allow = 127. 192.168.12. 192.168.13.
        hosts allow = 127. 192.168. 192.168.0.   #(there are spaces between numbers deliberately with purpose to satisfy netmask)

security = SHARE

        local master = no

        wins support = yes

# --------------------------- Printing Options -----------------------------
# I don't share printers from this server
printcap name = /dev/null
load printers = No
printing =
disable spoolss = yes

#============================ Share Definitions ==============================
[shared]
comment = some shared documents
path = /usr/tmp/shared
read only = No
; force user = abmas
; force group = office
guest ok = Yes
nt acl support = No
writable = yes 
create mask = 0766
now you try to configure your samba with no users/password first to see if you can browse, then continue to setup users accessing with privileges in samba.
All the emphasized values are to change according to your needs.

good luck

Last edited by lithos; 03-26-2012 at 03:19 PM.
 
Old 03-27-2012, 10:47 AM   #4
kitek
Member
 
Registered: Apr 2005
Posts: 252

Original Poster
Rep: Reputation: 15
shuks. I can't get it to browse still. It still asks for a password too browse....it shouldn't. could SWAT be doing something to it? I verified. Firewalls off and SElinux still.
 
Old 03-27-2012, 12:41 PM   #5
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
do you have permissions in this shared directory set to 777 (files and dirs ) ?
That might help.

and did you use "smbpasswd " to create any users ? that may not be needed now if you use my config above.

Last edited by lithos; 03-27-2012 at 12:46 PM.
 
Old 03-27-2012, 02:43 PM   #6
kitek
Member
 
Registered: Apr 2005
Posts: 252

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by lithos View Post
do you have permissions in this shared directory set to 777 (files and dirs ) ?
That might help.

and did you use "smbpasswd " to create any users ? that may not be needed now if you use my config above.
The permissions is set and the smbpasswd file is encrypted it appears. User names are in english the rest is jumblish.
 
Old 03-27-2012, 02:55 PM   #7
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
there you have it.
You defined users/passwords for Samba, therefore change one user's password, you know you can test
Code:
smbpasswd –a username
take a look here about managing samba users
 
  


Reply



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
CentOS /Samba server- XP Windows client file sharing issue 3phoenix Linux - Server 7 11-06-2009 11:05 AM
Allowing directory browing in apache cwwilson721 Slackware 9 08-11-2006 05:54 PM
Automated firefox browing in a shellscript. dr_zayus69 Programming 2 02-26-2006 10:09 PM
Browing Windows network in RedHat 9 ShakyJake Linux - Newbie 1 04-17-2003 07:35 AM
SAMBA and wndows problem hugosoto Linux - Networking 1 07-08-2002 07:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:58 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration