CentOS 5 Server :: Openvpn Connect To Samba Share From Windows XP Client?
Sep 15, 2009
I'm trying to set up a VPN connection between our CentOS 5.3 server at work and my bosses XP computer at home. At this point, we are kinda locked into Quickbooks. I'm testing the connection from my XP boot at home to see if it works. I can log into our servicemanuals easily enough from XP at home however, the windows takes forever to update. I have the Samba server only listening on port 445 because is seems to work more efficiently at work. I connect to the Samba shares via linux from home and everything works well but, when I try to do anything with the shares from Windows client at home, it's very slow!
I'm thinking that it must have something either to do with the Windows OpenVPN client or the client.conf file. Is there anything I should look at in the .conf file for answers?
When I try to connect to the share from my XP machine, I get a "network path cannot be found" error message.
Below is the entry in /var/log/samba/samba.log
[2008/11/19 11:57:51, 0] smbd/service.c:make_connection_snum(1003) '/server2/test' does not exist or permission denied when connecting to [server2] Error was Permission denied
Here is my smb.conf file:
[global] # Server name server string = Intranet Server (Primary)
# These are the default password settings. ; encrypt passwords = yes ; smb passwd file = /etc/samba/smbpasswd
# Define NT domain/workgroup name. workgroup = intranet
# Security mode. (See SAMBA documentation for details.) ; security = user
# Restrict conections to specific IP addresses. hosts allow = all
# The %m variable sets a separate log file for each # connecting machine. # log file = /var/log/samba-log.%m # Keep it basic - one file! log file = /var/log/samba/samba.log
# The number of minutes inactivity before a connection is # disconnected. (This disconnection should be transparent to most # clients, which an have auto-reconnect feature. Removing inactive # connections is to preserve the server's resources.) deadtime = 10
# These socket options are suggested in the default smb.conf file. # Who am I to disagree? socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
# Define both Ethernet interfaces. (Otherwise, I suspect only one # will be configured??) interfaces = eth0 eth1 username map = /etc/samba/smbusers ; guest ok = no ; guest account = nobody
if i try to connect to my samba server ( share ) from my windows xp ( or vista, i've tried both ) it says, that the network share cannot be found. i've installed all necessary rpms on my fedora 10, necessary for running a samba server:
after that, i've configured the smb.conf file, as follows:
Quote:
[root@*********** samba]# cat /etc/samba/smb.conf #======================= Global Settings ===================================== [global] # ----------------------- Netwrok Related Options ------------------------- workgroup = GROUP
[code]....
there is no iptables definition, or any other firewall installed, neither on the server nor the client. i've read through alot of howtos an manuals, but was not able to find the problem.
I have a CentOS + Samba server and Windows XP client machines. Users, passwords and permissions are entered on the server machine.users and passwords ( same as on the server ) are entered in the XP client machine.When attempting to access a public file on the server using a XP client machine and the IP address of my server, I am asked a user name and password and none of the already entered seem to work. I cannot access the server file (prompted again and again to enter user name and password). What did i miss
I can't be the first one with this problem. What am I missing?
I have setup Samba servers in the past, just none under SELinux. The last one I configured was a couple years ago, so I wouldn't doubt I'm a bit rusty.
---- Environment summary: Clean server install of CentOS 5.4 includes SELinux - lets call this 'server' - updated samba to 3.0.33-3.15.el5_4.1
Client1 - Windows XP sp4 - WINS configuration uses 'server' noted above Client2 - Windows Vista - WINS configuration uses 'server' noted above
---- What works / what doesn't ------ Clients can see the server (XP and vista) in network neighborhood. The following does not work from windows (xp or vista) net view net view \server net view \server-ip net view \servershare
This does work on the server smbclient -L \server smbclient -L \server --user validuser smbclient -L \client1 --user validuser
---- What I have configured and tried (config/output below) -------- firewall ports for samba are open SELinux enforcing or permissive file context is set on share samba booleans are set
***firewall -A RH-Firewall-1-INPUT -s 192.168.0.0/24 -m state --state NEW -m tcp -p tcp --dport 445 -j ACCEPT -A RH-Firewall-1-INPUT -s 192.168.0.0/24 -m state --state NEW -m udp -p udp --dport 137 -j ACCEPT -A RH-Firewall-1-INPUT -s 192.168.0.0/24 -m state --state NEW -m udp -p udp --dport 138 -j ACCEPT -A RH-Firewall-1-INPUT -s 192.168.0.0/24 -m state --state NEW -m tcp -p udp --dport 139 -j ACCEPT
***SELinux mode/booleans # sestatus SELinux status: enabled SELinuxfs mount: /selinux Current mode: permissive Mode from config file: enforcing Policy version: 21 Policy from config file: targeted
# getsebool -a | grep smb allow_smbd_anon_write --> off smbd_disable_trans --> on
# getsebool -a | grep samba samba_domain_controller --> on samba_enable_home_dirs --> on samba_export_all_ro --> off samba_export_all_rw --> off samba_share_fusefs --> off samba_share_nfs --> off use_samba_home_dirs --> on virt_use_samba --> off
This will be a little long (having read Phil's 'how to ask questions' FAQ). I'm trying to get OpenVPN working between my CentOS server and some Windoze laptops running XP. There seems to be plenty of sample config files available, but to date, none of them have worked for me. Pulling out my trusty Wireshark, I've found some clues,
BACKGROUND: My local subnet (NAT'ed by my gateway router) is 192.168.52.x. My router has been configured with a conduit (port-forward) for port 1194 (the standard OpenVPN port), which points towards my CentOS server.The CentOS server is .52.112, and the supplicant is .52.110. I have tried the lient both inside and outside my local subnet, with no difference in events or outcomes.
I have set up my Openvpn Server in Centos and it is working fine. Windows XP clients are able to connect the OpenVPN Server and access the network. This is a customized OpenVPN Gui Client. Now I need the customized OpenVPN Client for MS Windows 7Bit. I am using openvpn-2.1.4-install OpenVPN Client in MS Windows 7 64Bit. This is a executable and working fine in the said architecture. Now I want to compile this version. I am following the given steps at : [URL].. As per the direction i have copied the source from 2.1.4 and tried to compile, but compiled copy is giving the error " An error occurred Installing the TAP-Win32 Device Driver". I have tried this compilation by making every change and hack but all in vain.
I think that there are some certain steps which are missing and not documented any where. And sure that someone in forum will know the facts.
I am not able to configure nfs mounted disk for shareing samba. i have a server X. which configure samba for windows XP client this is done. now i have export X server samba share disk to mount Y server using nfs. this is mount and ok. but i don't share this disk using Y server samba configure.
What client can I use on a MAC to connect to an openvpn server? All the client s seem to use password connections whereas the openvpn server uses certificates.
I am setting up samba on my CentOS server for the first time. I am using webmin to configure samba. Here is the smb.conf
Code:
[global] netbios name = KISKA cups options = raw load printers = yes server string =
[code]...
I can see the domain name "KISKA" in the "network" tab of windows explorer, however when I click on it I get this error: Windows cannot access \KISKA check the spelling of the name. otherwise there might be a problem with your network. Under the details of this error I get this: "The network path was not found" Also I have stopped iptables so it cant be firewalled
I have been using Ubuntu sense about 6.10 and never had to network with a Windows computer before. I have a decent understanding of Linux itself but I am having issues with this samba client. I have a clean install of Ubuntu 9.10 and am trying to use samba to access my shares on a Windows XP(SP3) computer. I am on the network just fine, and all the computers on the network have static IP addresses. When I go to Places->Network->Windows Network I see the "TITANNET" workgroup, (Even before I changed my workgroup to "TITANNET" in the smb.conf file.), but when I try to access it I get this error:
Code: Unable to mount location Failed to retrieve share list from server.
P.S.[0] I tried using /etc/init.d/samba restart but it did not work, I am not sure I am even running the samba server. (Well, it is obvious I am not, what I really mean is what am I running to (not =D)access the shares on my Windows PC.) P.S.[1] I know that this has probably been posted before. I have searched and searched, I am about 1.5 pots of coffee and 4 hours into this.
I've setup a samba server on a centos 5 machine and am trying to connect to it via a windows 7. The problem I'm encountering is that the only share I am able to connect to is the tmp share. It doesn't matter if it is a protected share or not, I always get a "network path could not be found error" when trying to open the share from windows.
Fairly new Linux user, running Fedora 12, attempting to set up a simple Samba share to share files with a Windows box. I've gotten to the point where I can connect from the Windows box, and see a home directory and the directory I'm trying to share. The home directory is accessible and works as expected, but when I try to access the other directory I get "The network path could not be found."
I'm running Lucid and and trying to get Samba set up to allow sharing files on my network. My problem is that my Windows laptop (Win7) can't see the Linux PC when I click on Network. It only shows my own laptop and my roommate's Vista laptop. However, if I manually connect to the computer (\serenity) it works just fine.
Right now I'm simply using the smb.conf that comes with the package and adding my share info.
I have Samba PDC server on CentOS 5..we have 10 thin clients in our network which were working fine previously with the windows Terminal services... Now i have replaced my windows 2003 Domain to Samba Domain Controller.. Is there any why i can connect our thin clients with SAMBA DC in the our environment?
I have set up a Samba share via my CentOS 5 server (the samba share is actually a mounted filesystem, not local machine space). I have been successful in adding permissions for my windows users within the smb.conf, but have an additional need that I cannot figure out. I would like for my Windows administrators to be able to create folders and assign permissions from their machines (and their Windows GUI). Ultimately I need the folders on the Samba share to behave correctly when Windows group permissions are applied by these administrators.
When the folders are created, the "Everyone" identity cannot be deleted and sometimes "Creator Owner" or "Creater Group" show up. I have seen several threads start down this path, but haven't seen a definite answer (I may have just missed it!).
i did install and configure samba buy google tutorials. I can ping the centos box from windows but cannt access folder which is on centos. I can ping the machine.
I have configured samba in linux .i can share file from windows client. we are not using any domain or ldap. using workgroup only. kindly let me know is it possible to change the smbpassword from client.
My network is barely functional. I'm running 2 linux servers connected by openvpn (tun) through routers on both sides. There are Windows clients (98 and XP) on both subnets. One server (ls3) acting as PDC for the domain. The Windows clients use the respective linux boxes as gateways. On the server side (ls3 which is both openvpn server and samba server), all the clients can read/write properly to shares on both sides. The problems are all on the client side. Share connections to the server side disconnect after a few moments.
Browsing on the client side windows machines is fine. I can see shares on the server side. Some server side files open and are readable, writable, other server side files will not open. Some samba logon scripts on the server side can be opened from the client side. Others open after a long wait to a blank file! Permissions on server side files are set to 777 for testing. If a file won't open or reads "blank", that doesn't change no matter how many times you try. A non-readable/writable file overwritten by a readable/writable one can be read and written to!
I can ping successfully from any client on either side to any other client by either ip address or workstation name. Firewalls on both side are set to forward tcp and udp traffic going to port 1194 to the respective gateway linux boxes. Iptables on both linux gateways are down for testing. I tried reversing the openvpn server/client roles with the same result; the same physical side of the network had the problem. On one of the windows 98 clients, I wiped out the networking configuration completely and rebuilt it from scratch. Same result.
One one of the windows xp clients, I tried to rejoin the domain. It went through successfully but the result was the same as above. The network was operating smoothly for several years until the client side dsl modem broke last week. It was replaced with a newer model and at the same time I migrated from a pptp connection to openvpn. How to resolve this, Is this something to do with openvpn? Is this a network hardware problem? Am I missing something in the port forwarding on the routers? My smb.conf files are ancient except I added interface tun0. I have never seen 2 files sitting next to each other in the same directory where one opens and the other doesn't!
I'm running Mandrake 9.2 on the client side and Mandriva 2008 on the server side. I have a Sonicwall firewall on the server side, a Westell 7500 on the client side. I note that during the modem install, the http port was opened to the linux box on the client side and the access log got huge over the weekend and I ran out of disk space until I closed it down and deleted the log. I tried a simple test while viewing /var/log/daemons/errors on the client side. From a windows workstation in the client subnet, I opened a dos window and tried to print a file located on the samba server on the openvpn server machine which I knew NOT to be problematic.
The file printed and there were no errors reported in the log. I repeated the test with a known problematic file. The file would not print. The errors log noted: Authenticate/Decrypt packet error: packet HMAC authentication failed I regenerated the static.key file on the server side and scp'd it to the client side and restarted both openvpn's. I checked for duplicate files named static.key on both sides. Same error.
I have Linux installed on one machine with samba running and a second machine running XP. They are going through my router and I am using the same username/passwords for both machines and I have even gone to the point of allowing access to everyone for the share I created and the worgroup in samba is MSHOME just like my XP machine. When I view (or search) my workgroup computers my Linux machine shows up and so do the shares I created but when I try to open them I just get a message that permission is denied and I may not have permission to use this resource. I even tried setting access to the shared folder to 777 but still I can't open this share. Has anyone got any idea of why this is?
I have a very nice SUSE 11.2 Samba PDC that runs well with Windows XP clients. I am using NETBIOS for name resolution since I dont want to put in a DNS server because my router already has one, Im pretty sure it would make things more complicated. I enabled wins support in smb.conf and made the name resolve order with lmhosts first. lmhosts lists all the ip adresses with their computer names in capitals. I hope thats right. I set up my windows 7 with the reg file from the samba wiki on windows 7 [URL].
That's great now I get the old screen from XP in windows 7 when joining the domain. I gave the machine netbios name MAINPC a smb trust account MAINPC and added the unix user MAINPC$ that should all work. I manage to successfully join it says welcome to domain, afterwards an error appears "changing the dns name of this computer to "" failed" and something bout not finding the domain controller. although I joined. then I resatart and when I try to log on it says "trust relationship failed". How to make it join and logon properly.
I have the following problem:I have to networks in remote places.I have an opnvpn client in one network that connects to the the router (openvpn server).My question is,can i connect the network where the openvpn client is,throught the computer with the client to the other network.If yes,how? (please make it an idiot proof anwser because i have limited knowledge about iptables). I was thinking like forwarding (the router in the network with the openvpn client is also firewalling with iptables) the request of the ip class of the openvpn network to the computer with the client,which masquarades the interface
I'm trying to set up a test system for Windows 7. I've been having trouble getting it to map drives on the domain where I work, so I wanted to set up a test system with a similar setup so I can play around with settings without mucking up our network. Only problem is I can't get it configured to even work with XP, which does work on our domain.
When I type \server in the Run box I get the explorer window showing all of the test shares I've set up. But when I try to access them, it says the network path could not be found. Here is my smb.conf file:
[global] workgroup = MAJOR netbios name = VPN realm = MAJOR.COM
I wanted to setup a Samba share on a box running Ubuntu 10.4 and share it to Windows 7 computers throughout my house. When I browse the Network (thru Windows), I can see "Media Devices" that correspond with the locations of where I will put the media. The problem is that I have been unable to copy the media to the Ubuntu server because I cannot see the Ubuntu "computer" from Windows 'Network'.
All computers are on the same Workgroup
Running the following command line from Windows returns no errors and lists the samba share:
Using the testparm command on my smb.conf returns only one error (which previous googling seems to indicate is not an issue). The following is what was returned by the command:
I need to allow my Windows users to be able to check off "Read-Only" or "Hidden" attributes on our Samba share. Currently its not allowing me to do so.
After searching online, I set the map readonly, hidden and archive option to "yes". Then my entire files were hidden.
I'm having a hard time understanding the concept of the "map" option in smb.conf
Client OS :- Windows XP Server OS :- Centos 5.4 Service :- samba or smb
Actually i want to take a back of windows xp's users data which on d: or etc and that backup i want to store in samba share which i made on my centos 5.4 . To do this we need to mount samba share as local drive then any script or any software can detect that share easily in that drive.
I don't think it has anything to do with the config file.More to do with SElinux. I need to know how to configure SElinux so I can see my samba share when SELinuxis on. When I setenforce 0 I can seen all the files and folders set it to setenforce 1 cannot see anything.Here is the output when I ran [root@fileserver /]# getsebool -a | grep smballow_smbd_anon_write --> onsmbd_disable_trans --> onThese two options were off I tried turning them on.This is another one of the commands I tried running. I did change a few options but I am not sure which I do need to change. I am running a stand alone server so I don't need the DC option.
[root@fileserver /]# getsebool -a | grep samba samba_domain_controller --> off samba_enable_home_dirs --> off
I finished setup Samba PDC with Openldap backend. I can joint Winxp client to domain but can not change pass by press Ctrl + Alt + Delete and choose Change password button
This is my conf. I used samba3x-3.3.8 openldap 2.3.43 slapd.access.conf
Code: access to attrs=userPassword,shadowLastChange,sambaNTPassword,sambaLMPassword by dn="cn=Manager,dc=microhdesk,dc=net" write by anonymous auth by self write by * none
I installed Samba on CentOS, create a principal share called "public" . I want to populate this share with subfolders, and to grant access rights to specific folders for specific users. The content of "public" will be visible for all Samba users, but they will have read/write access only to the specified subfolders based on my security policy. I need the best way for doing this kind of stuff...