Connecting to OS X file shares from Linux
I need to connect to file shares on an OS X computer and mount them on a Linux server.
Every resource I've seen seems to try to do this the other way around.
I can ping the OS X computer so I know it can see it. I have enable SMB under sharing and set a user with permissions.
However if I call
smbclient -L <mac ip address> -U testuser
I get the following errors
timeout connecting to <ip>:445
timeout connecting to <ip>:139
Error connecting to <ip> (Operation already in progressm)
Connection to <ip> failed (Error NTSTATUS_ACCESSDENIED)
Anyone got any ideas at all?
Have you looked in /var/log/samba to see if there are any logged messages that tell you what the server is thinking?
You might also look at /var/log/security.log to see if there is anything about the NTSTATUS_ACCESSDENIED error.
Similar Messages
-
Accessing file shares from JSP
Hi,
I need to be able to access file shares from a JSP page. Here's the JSP code:
<%@ page language="java" %>
<%@ page import="java.io.*" %>
<%@ page errorPage="errorPage.jsp" %>
<%
String fileSystemPath = "\\\\130.26.1.199\\MeetingManager30\\test.txt";
File f = new File(fileSystemPath);
f.createNewFile();
%>The above code resides in a server with IP 130.9.68.6 and is deployed onto the Tomcat on the server.
When I tried to run the above code, I got this error
java.io.IOException: Access is denied at java.io.WinNTFileSystem.createFileExclusively(Native Method) at java.io.File.createNewFile(File.java:827) at org.apache.jsp.test_jsp._jspService
(test_jsp.java:55) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service
(JspServletWrapper.java:210) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422) at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199) at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:833) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processCon
nection(Http11Protocol.java:711) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.java:687) at java.lang.Thread.run(Thread.java:536) Seems like I'm having a system level security setting problem here.
I know it's a security issue, because I've encountered the equivalent problem in ASP/IIS, and I had to give a domain user rights to both the IIS Virtual Directory, and the file share to be able to access.
Any ideas how to set up Tomcat to be able to access the file share successfully?
Thanks in advance!Hello Veer,
From what you have posted it looks like while logging your error another problem occurred. Did you get any output from your System.out calls? If not can you try adding a few in order to home in the problem area.
Hussein Badakhchani
www.orbism.com -
Issue with G4 connecting to a Windows File Share
We have a single MAC G4 that our marketing department uses for graphic development. when we first setup the PC we were able to connect to our Windows shares on the network. For better than a year now we have had intermittent problems with connecting to our Windows file share. It would drop the TCP connection to the file share, you would need to go back a re-authenicate to the share. Two weeks ago the problem worsened, we can't connect the to Windows files share at all now. I have tried different users accounts including my own which has domain admin authority. However I have a samba file share and a snap server running on the network and I am able to connect to these machines with no issues. I suspect a configuration problem, but not sure where to look next.
The MAC is running the following OS version and Kernel
OS 10.3.9 (7W98)
Kernel Darwin 7.9.0
Any guidance would be appreciatedI just figured it out myself.
-
AD accounts can no longer connect to Lion AFP File Shares
I am running into an issue where AD users can no longer connect to AFP file shares. If you attempt to authenticate with one of our Lion server's local accounts, you connect without any issues, but if you put network credentials in then you get the window shake denial. This issue just came up this morning. I attempted unbinding and rebinding the machine, updating from 10.7.2 to 10.7.3, removing and re-adding share point permissions, turning file sharing off then on, and still no network account authentication.
Anyone have any advice for how to get network credential authentication to AFP filesharing working again?You could enable the AFP server access log:
sudo serveradmin settings afp:activityLog=yes
and then look at log at /Library/Logs/AppleFileService/AppleFileServiceAccess.log
to see if that offers any clues. -
HELP!! Solaris 10 - Mount NFSv4 Share from Linux using Kerberos Security
Greetings all, my apologies if this post is in the wrong place...
I have an issue getting Solaris 10 to mount an NFSv4 share from a SuSE Linux 10 machine using kerberos security.
I am able to mount the NFSv4 share from another SuSE 10 machine. The kerberos principal for that is nfs/host.domain and is working perfectly with the mount command of 'mount -t nfs4 -o sec=krb5 host:/ /mnt'
My problem is that when I try to mount that same share on Solaris 10 using the command 'mount -F nfs -o sec=krb5 host:/ /mnt' I am getting nowhere fast. My kerberos principals for the Solaris machine are nfs/host.domain, host/host.domain, and root/host.domain. I have tried rebooting the Solaris 10 machine with a different keytab file in place each time (as I'm not sure which principal to make the keytab from for Solaris).
When I run the Solaris 10 mount command all it does is hang. I don't get any error message, etc. On the kerberos server I can see where the Solaris machine has communicated and appears to receive a ticket, and I can see that the NFS server was responding to the client's request, however the mount command just hangs.
Any ideas / suggestions? I really need someone to point me in the right direction!
Your help is very appreciated!I had similar, not identical, issues with a custom JumpStart DVD I was creating. I was not using flar and it was for x86, not SPARC.
I found that changing the case for the value assigned to network_interface made a difference. In looking at the sysidcfg manpage and online JumpStart documentation, all the examples they used had capitalized "PRIMARY" and "NONE". When I changed the value to the capitalized equivelant, my particular issue had gone away.
You may also want to consider adding ip_address and default_route to the network_interface section. Test either way to identify the differing results.
In my particular scenereo, I did not want any networking configuration to be done. The resulting line in sysidcfg was:
network_interface=NONE {hostname=jsclient}HTH -
How to create and use file share in linux
Hi,
I just started trying out Azure, I have 2 linux ubuntu instances. I would like to create a File share to use as a type of NAS and mount it on both of the instances.
How can I go about doing that? Is there a tutorial?
thanks
RicardoHi,
We can use Azure File services to do this, for more information, please have a look at this article:
http://blogs.msdn.com/b/windowsazurestorage/archive/2014/05/12/introducing-microsoft-azure-file-service.aspx. The Azure File service exposes file shares using the standard SMB 2.1 protocol. Applications running in Azure can now easily share files between
VMs using standard and familiar file system APIs like ReadFile and WriteFile.
Best Regards,
Jambor
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
From my macbook..I have a few times seen the IMac listed on the devices list. I don't know what I did to make it appear but I was able to
file share..etc. Now ...when I open Sharing folder from laptop..I see "IMac" as Computer name. Should this be changed? Screen Sharing:On..Allow access for all users is checked. I don't know how to launch my Imac screen again. Please advise. Thanks!If screen share it turned on with both computers there are several ways to then screen share. First ensure Screen Sharing is selected on each computer in System Preferences - Sharing. Once this is done then open a Finder Window on the Left you will see Shared on the left side, then click the computer you want to share and you will see a screen like the following. From there click where it says Screen Share.
-
Problem with file share from iTunes to iPad - not enough memory
Hi
I've got iTunes (10.7.0.21) installed - latest version.
On my iPad I have an app - OpenSong. I need to transfer a number of files to this app throug Application - File share (don't know if this is the correct description, I use a Danish version).
I want to add around 750 small files (1-3 kb) to the iPad. The problem is that it only will copy around 30-60 files at a time before iTunes comes with a box indication that the program encountered a problem and cannot copy the file xxxxx. "Not enough availabel memory".
I then have to close iTunes and continue from where I came to. If i don't, that is I try to copy again, iTunes frequently crashes.
iPad 3, 64 GB - plenty of free memory
Win 7, 4 GB RAM, plenty of free disc space. Windows and iTunes fully updated.
Anyone got an idea? Or how do I report this to Apple?Hi Damse,
I have the same problem. I also have about the same number of small files to transfer to the iPad. The point at which the transfer through iTunes to the iPad varies within the range you describe. I also have taken to loading in as many files as I can, integrating them into the applicatiom, ejecting the iPad, and stopping and starting iTunes again and repeating the process.
Best regards,
Bob Charest -
File Transfer from LINUX to WINDOWS....?
I have to copy the auto backup .dmp file from Linux to Windows in Same Network. Can You please suggest me how to do this task through Shell Script.
So i can schedule the running time of Shell script through DBMS_SCHEDULER and at that specified time files will copy successfully....
Please help me...Thank you.Rajnish,
Check this link : Scripting and Task Automation :: WinSCP
Command-line Options :: WinSCP
Converting Windows FTP script to WinSCP SFTP script :: WinSCP
Onkar
Message was edited by: onkar.nath -
Connecting to a Windows Vista share from an iMac
I just purchased the imac intel based pc and I am very new but a seasoned windows user. I connected my maxtor external storage to my imac but for the life of me cannot connect to a Windows Vista share. I keep getting a timed out message or I have the option of fixing or deleting the alias. It is a constant loop.
Has anyone done this successfully and will you share? I have turned on windows sharing in the system preferences. What else should I do?I just figured it out myself.
-
[SOLVED]Internet share from linux to windows 7
hi,
i want to share my internt connection from my arch linux netbook to my win7 pc
I succesfully followed this wiki article( https://wiki.archlinux.org/index.php/Internet_Share ) until: 'Assigning ip addresses to the client pc(s)'.
now i'm stuck with my linux netbook being fully configured, but i can't get my win7 pc to connect properly.
Idk maybe i need to configure the netbook in a different way in order to make it work with a windows client???
maybe
ip addr add 192.168.1.0 dev enp8s0
instead of
ip addr add 191.168.1.0/24 dev epn8s0
or an additional iptables command? (FORWARD ACCEPT maybe?)
Here's some data about my netbook in order to make it easier for you:
internet device: wlp2s0
internet device ip range: 192.168.2.x
lan(which conects my netbook to the win7 pc) device: enp8s0
thank you for your time.
regards b0b
Last edited by b0b2 (2013-09-13 22:47:58)Lone_Wolf wrote:
you're on the right track, but the devil is in the details.
Basically you have TWO separate networks, but the internet share wiki page implicitly describes a 1 network setup.
the first network has the netbook lan & the windows lan device in it.
your second network has the netbook wireless and the router in it.
If you want to stick with 2 separate networks, you'll need to setup the netbook as a router, check the wiki router page.
Warning : setting up your netbook to function as a router will require you to understand/learn networking basics.
In both setups, the netbook wireless device will need to be setup with a STATIC ip-address.
Internet sharing setup :
make sure all devices are in the 192.168.2.0/24 network .
ex :
router 192.168.2.1
netbook wireless 192.168.2.2
netbook lan 192.168.2.3
windows 7 pc 192.168.2.4
Follow the internet sharing page in the wiki.
Once you have setup things , verify if you can ping 192.168.2.1 (router) from the windows pc.
if you prefer using 2 separate networks, check the wiki router page.
hi,
thank you for your post.
How do you know the wiki implies a 1 network setup?
the wiki says 'The first 3 bytes of this address cannot be exactly the same as those of another interface.'
I actually don't want to stick with 2 networks, since i don't want to waste 1gb of my hdd for the router software. -
Smb was working under 10.9.1. Now smb and usning the finder I get "connection failed". Both of my NAS are not out when i am using my mac book pro thru the wifi connection. Is any one else have the same problem?
Same story here - smb:// worked under 10.9.1, but the Update 10.9.2 broke it.
Some facts:
Mac Book Pro Retina 2012
Network connection is over WLAN (The connection is very stable and no issues else where)
The issue seems to be caused when there are larger files (> 500MB) in the share
smb:// works for shares with lots of folders but only small files in them
smb:// and cifs:// are both almost unusable
smb:// shows a blank screen for ages- Finder will eventually hang up
cifs:// will connect fast (wow!), but the connection is very unstable for larger files
The funny part is, that Mavericks (pre 10.9.2) was the first OS X which fixed most SMB issues of its predecessor. (SMB2 was somwhat slow, but quite usable) Now, I can not really use my Mac to work...
Moral of the story, I think I will switch to Ubuntu 14 when it is released in April - it should support HDPI Displays. -
ITunes says it cannot find the files I want to file share from my iPad
I have the Freegal app on my iPad. I was able to transfer music from this app to my computer once before, but now I just keep getting an error message that the files to share cannot be found. Sometimes it says the error code is 0x00000000. When I go to file sharing in iTunes and select the app, the file folder shows, but it won't save to my computer. What do I do next?
That's the problem. When using a referenced library the source files must be place in a permanent location before adding to the library and not move afterward. Unless you can restore the source files to the locater where the were when the photos were added to the library they are gone.
That's the biggest problem with running a referenced library. Check that box and use a managed library from now on.
OT -
File size limit of 2gb on File Storage from Linux mount
Hi!
I setup a storage account and used the File Storage (preview). I have followed instructions at
http://blogs.msdn.com/b/windowsazurestorage/archive/2014/05/12/introducing-microsoft-azure-file-service.aspx
I created a CentOS 7 virtual server and mounted the system as
mount -t cifs //MYSTORAGE.file.core.windows.net/MYSHARE /mnt/MYMOUNTPOINT -o vers=2.1,username=MYUSER,password=MYPASS,dir_mode=0777,file_mode=0777
The problem is that I have a file size limit of 2gb on that mount. Not on other disks.
What am I doing wrong?Hi,
I would suggest you check your steps with this video:
http://channel9.msdn.com/Blogs/Open/Shared-storage-on-Linux-via-Azure-Files-Preview-Part-1, hope this could give you some tips.
Best Regards,
Jambor
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Accessing Mac File Share from Windows Server 2003
I currently have a windows domain that has a few Mac OS x leopard servers on it. I can map a drive to the Mac share using windows XP and Windows Vista, but I cannot map the drive in Windows Server 2003. I have enabled the Windows Sharing on the Mac server, and enabled the Mac File Sharing on the Windows server, but the windows server does not find the Mac server. I can ping the Mac server by FQDN and IP, but when I go to map a drive to it I get the error:
The mapped network drive could not be created because the following error has occurred: An unexpected network error occurred.
I have also checked the Local Security Policies, and did not find anything that would cause the issue. Any ideas anyone?
Message was edited by: GovHelper
Message was edited by: GovHelperDoes anyone else have any ideas? I checked again today and receive "The specified network name is no longer available" and after a few more attempts "An unexpected network error occurred"
Maybe you are looking for
-
Material Stock is not Updated in T.Code MC.9
I am running Material stock report in T.code MB5B it is showing the correct stock report but when i execute T.code MC.9 (Material Analysis) it is showing difference of Rs 96015 This difference is whatever transaction we have made in Movement type 12
-
Since installing OS X Mavericks I am unable to open Adobe CS5 software such as Photoshop CS5 etc
Since installing OS X Mavericks I am unable to open Adobe CS5 software such as Photoshop CS5 etc
-
Exporting to Media Encoder and file locating issue
Ok, Now I've read a LOT of threads trying to find a solution to this but none of them have answered my problem exactly, so here's what I have: Running a New computer with a clean install of Windows 7 64 bit and Adobe CS4 Master Suite Hardware: Dell P
-
Dear friends, I have query regarding vendor payment i try to psot vendor payment its thrown error table T043G is missing pls give me soggetion how can i overcome this one. Thanks and regards, Nauma.
-
Why is my computer doesn't recognize my Ipod Touch?
My computer doesn't recognize my Ipod Touch. Any suggestion?