samba

Access Samba Drive over SSH

Hello, I am trying to access a samba drive over ssh. I have a windows machine with a samba drive to connect to my linux vm drive, I also run cygwin on the windows machine. What I am trying to do is from my linux vm ssh into the windows cygwin side and cd into the samba drive which connects back into my linux directory. When I am in cyg...

samba windows gvim & "READ ERRORS"

I have a samba server on my embedded box. I was planning to use it to edit files easily. However when I open files on my windows machine, I get read errors. I have tried textpad, gvim and kate(andLinux). On gvim I first get "write error in swap file" and it is replaced by "[READ ERRORS]". If I access the same file through pyNeighborhoo...

Can any linux API or tool watch for any change in any folder below e.g. /SharedRoot or do I have to setup e.g. inotify for each folder?

I have a folder with ~10 000 subfolders. Can any linux API or tool watch for any change in any folder below e.g. /SharedRoot or do I have to setup inotify for each folder? (i.e. I loose if I want to do this for 10k+ folders). I guess yes, since I've already seen examples of this inefficient method, for instance http://twistedmatrix.com/...

Samba share on htdocs, getting permissions error on write

I've installed SAMBA on my ubuntu 10 server along with XAMPP. I'm trying to create a share to be able to easily manage files from my windows box. Unfortunately, I'm running into a write error. I can browse the share/folder just fine. I can read all the files... but I can't create any new files (or save changes to existing ones). smbd.co...

Create Hidden Windows file/folder from Linux

Is it possible to create a file on a mounted SMB share that is hidden from Windows? The .(dot) prefix doesn't work in this case because that only works on Linux. Basically I'm looking for the same affect as using attrib +h on Windows, but under Linux. ...

Available disk space on an SMB share, via Python

Does anyone know a way to get the amount of space available on a Windows (Samba) share via Python 2.6 with its standard library? (also running on Windows) e.g. >>> os.free_space("\\myshare\folder") # return free disk space, in bytes 1234567890 ...

Same-directory includes failing on a Fedora server with PHP.

I have a couple files that look like this: index.php: <?php include('includes/header.php'); ... includes/header.php: <?php include('config.php'); ... The error I get is Warning: require(config.php) [function.require]: failed to open stream: No such file or directory in [dir]/includes/header.php on line 2 Fatal error: re...

User in passdb, but getpwnam() fails!

Attempting to set up Samba + OpenLDAP using nss_ldap. After joining Windows7 to Samba stand alone PDC, I can not login with a domain account unless that account is also added to the /etc/passwd file. I get: user in passdb, but getpwnam() fails! Everything I've read points to an NSS_LDAP issue yet, getent passwd shows users perfectly ...

Cruisecontrol.net Robocopy SMB permissions issue

Hello I'm having problems with robocopying a repository from a windows server machine to a samba share. When I run the copy logged in with my domain username on the server it works in the terminal, but when I run it through cruisecontrol it's failing, CC is reporing back Access is denied. <message>2010/07/08 14:54:41 ERROR 5 (0x00000...

Samba, Apache and SVN. Getting the permissions right.

I have two machines I work on: Windows Client (Development Machine) Linux Web Server (Ubuntu) On the Linux server I have installed Apache, Samba and SVN. I've created a samba share that maps to the htdocs/ directory so that I can access the web files from Windows. The following illustrates my workflow: From command line on Linux ...

buildbot using msysGit causing intermittent datastreram error

We are using buildbot to run continuous integration. The built-in Git build step generates this command line: C:\Program Files\Git\bin\git.EXE fetch -t file:///s:/Repositories/repo +master s: is a samba share on a debian server mapped on the buildbot slave. It fails intermittently (once in ~50 builds) with this error: error: inflate:...

samba - remote connection

I have a samba-server. Can connect to it from my local network with no problem. Can see that 139 and 445 port are opened. Site "speed-tester.info" also tells me that these ports are opened. BUT when I scan my server nmap doesnt show me these ports! have this string in smb.conf, so samba should listen external interface: interfaces = lo...

Developing an automated software deployment program through Samba or Active Directory

I'm a web developer that needs to build a piece of software for my local office of about 20-30 Windows computers. It needs to automatically and silently run software updates and deployments on all computers. The Windows computers run on a local network. I'm not sure where to start putting my hands on with something like this... I'm an...

winbindd fails to resolve local network names when firestarter firewall is up on ubuntu.

I'm using Samba and windbindd on my linux boxes. Without a firewall up on the linux box I have no trouble resolving LAN machine names: user@laptop-linux:~$ ping desktop PING desktop (192.168.1.100) 56(84) bytes of data. 64 bytes from 192.168.1.100: icmp_seq=1 ttl=128 time=0.878 ms when I start the firewall I get: user@laptop-linux:...

Git clients over a network drive

If I have a network drive with a git repo checkout, for example, samba drive on a windows machine (A) connected to Linux machine (B) where the local checkout is. Is there a way for clients on A - who can see the drive - to do git operations through the the ssh access defined on B? ...

How to escape an @ sign in the password field of an smb:// URL

Hi, I'm trying to write a bash script in which I connect to a samba server, by getting the username and password, then saying $username:$password@SERVERNAME. However, this will fail if the password has an @ in it. Is there a way to escape the @ out of the password in bash? Thanks in advance Update: I'm setting up this network printer...

XSendFile can't stat file if on windows samba share?

Hello, I am having trouble getting apache to serve a file through the XSendFile when it is in a directory mounted with samba. To give a little background: I have a Ruby on Rails app that is slowly replacing an ASP.NET application, and I have it running on a linux server running apache2 and passenger. The Windows machine that is running...

samba share on rails

I am writing an XML file in rails(running on RHEL) and will then need to post this file across to a windows share. Sambala was installed so that we can SMB to the share, but after running some test code I get the error: uninitialized constant ApplicationController::Sambala samba = Sambala.new( :domain => 'myDOMAIN', ...

Is There a Windows SMB Client Opened Implement.

There was a smbmrx sample code using RDBSS in WDK Vista. But since WDK 7600 has been released, the sample was removed. -Do you know why? I'm finding a nice sample code to learn RDBSS. Is there a good open source better than smbmrx sample? ...

Synch and admin samba users from django?

I want to create and maintain my user database using the default user handling in django, but at the same time synch the samba user profiles so that users can access the django website and the samba shares using the same password. Any hints? ...