Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.