CentOS 4.7,Samba 3.0.28: Share folder is visible but error on accessing it.
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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 07:25 PM.
Reason: Changed content
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.