samba

Java I/O over an NFS mount

I have a bit of Java code that outputs an XML file to a NFS mounted filesystem. On another server that has the filesytem mounted as a Samba share, there is a process running that polls for new XML files every 30 seconds. If a new file is found, it is processed and then renamed as a backup file. 99% of the time, the files are written wi...

samba+openldap vs ad for university network , that's a question !

Hello , I'm a student in Shahed university in IRAN . Now I'm become a member of our uni IT-Center . We are going to have an organized network with a en-bloc user authentication and proxy server. In comparison between MS AD and Samba , i want to choose Samba server ( cause of my belief in Open Source ) . Our plan have a Forest(root : sha...

How do I stop Eclipse (EPIC Perl) from adding DOS CR/LF to my Perl scripts?

I use Eclipse on Windows to edit files on a remotely mounted Linux SMB share. Coupled with Samba's stubborn opposition to on-the-fly mapping, Eclipse's insistence on CR/LF creates a real headache with Perl scripts. Any workarounds? ...

Mac OSX cannot connect to Ubuntu samba

For about 3 years my mac could connect to my Ubuntu samba, and randomly it stopped working. I get an error code -36 error and it tells me that it can't connect to it. Weirdly enough, thinking I could just wipe my key chain and re-enter the user/pass (which didn't work), smbclient through the command line connects just fine. I am complete...

HTML link to directory in a Samba share, that works on Internet Explorer 7/8

Hello all, I want my HTML page to link to a directory in a Samba share (protocol SMB/CIFS Windows share). In my HREF I wrote file://server/Share2/folder3 Most browsers handle it fine (mount the share and open a file manager on folder3) except Internet Explorer 7 and Internet Explorer 8, which says Permission denied without even asking ...

Samba server issues

I have setup a new linux box that I am tinkering with. One item that I have always setup is samba so that I can easily copy files to and from the server. The reason I bring this topic up is I am not able to browse to the samba shares from my windows machine. Any help with this is greatly appreciated. The issue that I am having is whe...

Accessing samba shares with gio in python

I am trying to make a simple commandline client for accessing shares via the python bindings of gio (yes, the main requirement is to use gio). I can see that comparing with it's predecessor genome-vfs, it provides some means to do authentication stuff (subclassing MountOperation), and even some methods which are quite specific to samba ...

Fastest way to determine a stale Samba mount on Linux

What is the best(fastest) way to determine if a Samba mount point is dead on Linux? I need to do it in C. System calls like statfs(), statvfs() block for 30-40 sec when called on a stale mount, and they don't even return an error in this case. stat() seems to fail faster then others (about 10 sec) and returns an error. Mount point may g...

how to remove command line color highlighting of Vista Samba shared directories in Ubuntu?

Hi, I have a Vista share visible in Ubuntu but I which to make the BASH color highlighting of the directories/files the same as if it were a local dir/file. How would I go about doing this? Many thanks! ...

How to set file/directory ownership/permissions in a Samba share on Windows using Python/.NET?

I need to create directories and files in a Samba share on Windows, from a Python script. I can (and do) also use .NET 3.5 from Python. I would like to create these directories and files with certain owners and permissions. Can I achieve this somehow? ...

Auto refresh and Samba

Hello. I have server with debian5 and Samba. Also I have notebook with Windows XP. I connect from notebook to this server from internet. E.g.: \\123.123.123.123 But folders are not refreshing. If I create a new folder I must press "F5" button. How I turn on auto refreshing? ...

Silverlight play file from samba enabled remote server

Hello, Im currently working on Silverlight app, which resides on our ASP.NET webpage. I want to populate listbox with names of (audio wav) files that are on remote linux machine. I also want to be able to play those files using MediaElement. Im wondering if it is possible to get stream of remote samba enabled linux server. thx, for ...

How can my Linux daemon know when a Windows program has stopped writing a file that I access through SAMBA?

I'm developing a system that interfaces with a USPS shipping package called Dazzle. Part of this system includes a monitoring daemon whose purpose is to take tab-separated value files, turn them into XML that Dazzle recognizes, and pass them to Dazzle for label generation. And this part works just fine. What I also want to do, however...

Connect to a samba share with python in a platform independent manner?

Is there an abstraction that will allow me to connect to a samba share in python regardless of my platform? More information I do not want to mount a share. I simply want to upload files to a share, such as smbclient's put. Thanks, Pete ...

Detect file system changes on Samba share with Java on Windows

Hi, for a recent project I need to detect file system changes on a mapped Samba share from java on windows: Creates, updates and removes. At the moment I am using a folder poll that maintains a list of files and their modified timestamp to look for events. But my problem is that this folder poll only peeks into the folder at certain ti...

SVN, Samba and Symbolic Links. How to get them all to play together?

I've got a website project under version control that relies on files from an unversioned directory on the same server via Symbolic Links. I'm currently storing the symbolic links in the repository. The idea is that if someone checks out a working copy on to the same server they can edit and test the working copy of the project before c...

cifs/samba client library

Hello. I'm looking for some stand alone library to access SMB/CIFS shares. I am not looking for mounting the shares, just browsing and accessing the files for reading. Preferable something with a simple simple API similar to regular POSIX operations of opendir, scandir, read and etc. Thanks in advance! ...

Opening a project in an IDE / editor over Samba = SLOW

I'm not sure if this is the correct forum to ask this question so I'll probably be told about it, but anyway - I'm connected to the Samba share on my companies development server from my home (where I work now), and when viewing the files through explorer (windows 7) the browsing is relatively quick. However when I open a directory on t...

PHP is_file returns false (incorrectly) for Windows share on Ubuntu

Ubuntu server, PHP 5.3, connected via Samba to Windows server share. I am using file_exists() to check for availability of file on Windows machine. It returns false, although the filepath does exist. Meanwhile, file_get_contents() on the exact same filepath works fine. I'm wondering if it's a permission issue, since I'm having trouble ...

Vista/7 UAC: how to lower process privileges

Hi all, Is it possible for a process to lower itself from elevated UAC permission back to standard user? If not can the elevated process launch its copy with standard user token and then kill itself? Any code examples (C# preferred)? Details: Problem: - user installs my product (written in C#) - the installer elevates its UAC permissi...