LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-07-2009, 10:04 PM   #1
lazybee26
LQ Newbie
 
Registered: Jul 2009
Posts: 4

Rep: Reputation: 0
CentOS 4.7,Samba 3.0.28: Share folder is visible but error on accessing it.


I looked at all the threads and have incorporated all the solns provided.But still cant get this working.

Problem
I'm simply looking to make a folder on my CentOS visible in readonly mode for everyone without any login.


Share name=pgdblogs

I can see the folder "pgdblogs" when I hit my server MYIP from my XP laptop. But when I double click the folder I get error
"\\MYIP\pgdblogs is not accessible.You may not have permission to use this network resource. Contact the administrator of this server to find out if you have access permissions.
No network provider accepted the given path."


smb.conf
---------
[global]
security = user
server signing = Auto
server string = ccs-stg-svr
map to guest = bad user

[pgdblogs]
path =/var/lib/pgsql/data/pg_log
case sensitive = no
read only = yes
guest ok = yes
guest only = yes
public = yes
writable = no
browseable =yes
hide unreadable = yes
msdfs proxy = no
hide dot files = yes


testparm - This is successful (Output below)
--------------------------------
[root@centos samba]# testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[pgdblogs]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
server string = ccs-stg-svr
map to guest = Bad User
server signing = auto

[pgdblogs]
path = /var/lib/pgsql/data/pg_log
guest only = Yes
guest ok = Yes
case sensitive = No
hide unreadable = Yes
msdfs proxy = no

SELinux
----------
I've changed the setenforce to permissive
setenforce 0

Firewall
-----------
This is turned off on my centos server, so probably not a firewall port enabling issue

Permissions on /var/lib/pgsql/data/pg_log (777)
------------------------------------------------
[root@centos pg_log]# ls -lah
total 108K
drwxrwxrwx 2 postgres postgres 44K Jul 7 00:00 .
drwx------ 11 postgres postgres 4.0K Jul 6 23:37 ..
-rwxrwxrwx 1 postgres postgres 458 Jul 1 10:25 postgresql-2009-07-01_000000.log
-rwxrwxrwx 1 postgres postgres 390 Jul 1 10:27 postgresql-2009-07-01_102718.log
-rwxrwxrwx 1 postgres postgres 0 Jul 2 00:00 postgresql-2009-07-02_000000.log
-rwxrwxrwx 1 postgres postgres 0 Jul 3 00:00 postgresql-2009-07-03_000000.log
-rwxrwxrwx 1 postgres postgres 0 Jul 4 00:00 postgresql-2009-07-04_000000.log
-rwxrwxrwx 1 postgres postgres 0 Jul 5 00:00 postgresql-2009-07-05_000000.log
-rwxrwxrwx 1 postgres postgres 420 Jul 6 23:13 postgresql-2009-07-06_000000.log
-rwxrwxrwx 1 postgres postgres 390 Jul 6 23:37 postgresql-2009-07-06_233735.log
-rwxrwxrwx 1 postgres postgres 0 Jul 7 00:00 postgresql-2009-07-07_000000.log"

Last edited by lazybee26; 07-08-2009 at 08:24 PM. Reason: Changing the content
 
Old 07-07-2009, 10:43 PM   #2
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 987
Blog Entries: 4

Rep: Reputation: 252Reputation: 252Reputation: 252
Two quick thoughts;

1) Seems like you want "Security=share", not "security=user".

2) I don't see a "workgroup=" anywhere in there. All of your Windows clients and your samba service will need to ride the same workgroup.

I actually found a Quick-n-Dirty over here.

Hope it helps!
 
Old 07-08-2009, 05:26 AM   #3
lazybee26
LQ Newbie
 
Registered: Jul 2009
Posts: 4

Original Poster
Rep: Reputation: 0
I may be a little ignorant here, but what if we dont use windows workgroup and instead if I'm a domain user? I looked at my computer properties, and I only see domain. There's no workgroup name. Anyways, I added workgroup=XXX (our domain) and changed security=share. But I get same result

Last edited by lazybee26; 07-08-2009 at 08:25 PM. Reason: Changed content
 
Old 07-08-2009, 12:18 PM   #4
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 987
Blog Entries: 4

Rep: Reputation: 252Reputation: 252Reputation: 252
Greetingz!
Regarding the "workgroup=", drop the ".lcl". You need to use the "Windows NT compatible" domain name (which should be in all caps).

However, if that doesn't work, you will probably have to setup Samba to utilize your Domain controllers, then go back and set the share to allow "@Domain Users" write access to it.
 
Old 07-08-2009, 08:33 PM   #5
lazybee26
LQ Newbie
 
Registered: Jul 2009
Posts: 4

Original Poster
Rep: Reputation: 0
My network admin resolved this issue. Changed workgroup=WORKGROUP, security=share, added guest account=postgres

Updated and working smb.conf below for those trying to do something similar


[global]
workgroup = WORKGROUP
security = share
server string = ccs-stg-svr
map to guest = bad user
guest account = postgres
interfaces = lo eth0
bind interfaces only = true

[pgdblogs]
path = /var/lib/pgsql/data/pg_log
case sensitive = no
read only = yes
guest ok = yes
guest only = yes
 
  


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
Samba share not visible from PC shamusfu Linux - Server 9 10-17-2008 03:16 PM
samba share not visible. keratos Linux - Software 4 10-31-2007 05:03 AM
Samba configuration error when accessing NTFS files " Network path not found" leo_ieo Linux - General 2 10-09-2006 09:55 PM
Samba share not visible kochuthara Linux - Software 5 02-25-2004 04:04 AM
Error while accessing samba share shankariyer Linux - Software 14 01-24-2004 05:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:42 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration