samba

Using pysmbc to read files over samba

I am using the python-smbc library on Ubuntu to access a samba share. I can access the directory structure fine, I am however not sure how to access actual files and their content. The webpage (https://fedorahosted.org/pysmbc/) doesn't mention any thing, the code is in C/C++, with little documentation, so I am not quite sure how to use i...

How do you track files in SMB with an application?

I have built an application with PHP which shows all the files in the home directory of a user this directory is also available via samba so you can access it from the native explorer in windows, mac and linux. I wanted to give every file an ID so that I can asign tags to every file how would you go about doing this? Would you make hashs...

Is there a unique id for files?

I have the question http://stackoverflow.com/questions/990759/how-do-you-track-files-in-smb-with-an-application open and I was woundering whether maybe there are unique id's for files so that I can track when a file/folder is moved. Is there something like this? It can be very debian specific ...

Email link to local windows resource with space

How do I encode a link in a plaintext email to a local network resource with a space in it. For instance this will only highlight up to the word "file" but not "file name" \\SERVER\share\file name Yet if I do this \\SERVER\share\file+name or \\SERVER\share\file%20name Then Windows Explorer does not recognize the path correctly. ...

Is there any free network drive/share benchmark tool for Windows?

I want to know if there is any free tool to test the performance of a smb/CIFS network share. All free speed test I saw were for local drives only. ...

VBS Script: Copy directories listed in web file from Windows machine to Unix/Samba Share

[Outline] Hello Folks. In the home here we have five windows PC's running various editions of XP and Vista. As a backup solution, we have a file server with ample space for backups to be made too. Some of the users are not very competent at remembering to back their files up. I'd like to run a script on shutdown of a machine to fetch a ...

libsmbclient documentation

Hi I am trying to implement a remote file system and was thinking of using the libsmbclient to do that. Unfortunately, I have not come across any useful documentation when googleling for it. Could anyone advice me where the API of the libsmbclient is described in some detail? Many thanks ...

Quickly detect if a file mount is unavailable in Windows

We have a web application that attempts to use some resources on a Samba mount. If the mount has somehow failed, I need a way to quickly detect and report an error, however File.Exists and Directory.Exists are taking 30 seconds to return false when the mount goes away. What is the best way to quickly determine if a mount is available i...

Samba Implementation

Hi I am just trying to implement a simple Samba client. I am wondering what is happening to the TCP connection between the single request: will this one remain openend or do I open and close a connection each time I send a new request? Thanks ...

Vista UAC Issues with samba and Admin Credentials

We have Samba setup for our shared drive. I have pasted the smb.conf file below. Everything is working well accept when we try and run an EXE file using Windows Vista. When we run an EXE file it first ask for UAC control then it pops up the username and password prompt. You must then type your username and password in again before it wil...

Incorrect FileSystemWatcher behaviour with Samba

I am using a .NET FileSystemWatcher on a Windows server to watch a folder on a Windows server. I also have access to the same folder from a Linux server using Samba. If I copy a file from the watched folder to somewhere else, a change event is generated for the source file. Is this behaviour correct? It seems to change the 'last accessed...

FTP or Samba for hired VPS ?

I have a couple of websites in a couple of VPS. Obviously is not in my network because I hire a VPS provider. Now, what do you say is better practice. Use FTP to upload new versions of my software or NFS/SMB ? I think these 2 are my only posibilities. Thanks. ...

Samba, CIFS and Deleting Files

So I've got a Samba share located on server A. I have that share mounted to two other servers, B and C. The idea is that B and C need to write temporary files to a single location so that multiple background processing jobs (also running on B and C) have access to the same pool of files. When the background processes are complete they ...

After upgrading Fedora, why can I no longer change permissions of a file mounted via SMB

I had been running Fedora 9 for the last year --- I have a Windows box (actually a VM) that mounts a folder on the Fedora box using my own name/password. I do this so that I can run my version control program (Vault) on Windows. It has worked flawlessly for the last 6 months. Yesterday, I upgraded Fedora from version 9 to version 11. Si...

Record locking problem between linux and Windows

I need to run a bunch of old DOS FoxPro / Clipper applications in linux under DOSEMU. The programs access their "databases" located on a network server (could be a Windows or Linux server) Actually, the programs ran fine, but I cannot manage to make the record locking work as supposed: I can run a program in two terminals (or the server...

BASH: Strip new-line character from string (read line)

Hello! I bumped into the following problem: I'm writing a Linux batch script which does the following: Read line from file Strip the \n character from the end of the line just read Execute the command that's in there Example: commands.txt ls ls -l ls -ltra ps as The execution of the batch file should get the first line, and execu...

Paperclip gives Permission denied error with samba mount

In my development environment the codebase is mounted on a ubuntu-server VM using a samba mount, it is mounted as root and I run mongrel as root. When I try and upload a file with Paperclip the file saves fine but then it seems to have problems creating the different styles. I get the following error: Errno::EACCES (Permission denied ...

Exposing SQL Server database objects as files in a file system

There's more than one file system Most version control tools operate on the local disk file system. Database objects for most relational database systems do exist in a file system, inasmuch as there is a textual name identifying the object and the creation script can be retrieved or at least generated using this name. But it isn't th...

Samba share change user

I have mounted a NAS device on Debian Linux using mount -t smbfs, and everything works well. except for one thing. When I create a directory on the mounted device, it creates it with root user and group, and a 0777 permission. Can this be set to, that the current linux user is the owner of the new directory, with a different permission? ...

How to single sign on for Linux RedHat server from windows desktop

We are hosting our portal pages on a linux box. I am supposed to implement a single sign on where the user logs into his/her windows xp desktop and that login is consumed by the portal and used to set the user role appropriately. I really would like some answers on how this can work best. Environment: Jboss 4.2.2GA Jboss portal 2.6.5 ...