samba

Using celery in a django app to run script with root priviliges?

I need to run some commands on my ubuntu box where my django project resides that requires root privileges, from within my django project. I'm using celery to fire off an asynch process, this process in turn calls shell commands that requires root privileges to succeed. How can I do this without risking creating huge security holes? P...

PHP SAMBA/SMB/CIFS and smb4php classes

have to access some media files from Network storage to be accessible through SMB and Common Internet File System. PHP website is required to do file manipulation operations on remote storage block. You may suggest some alternate method or if you have any idea or may help on: configuring SAMBA/SMB/CIFS SMB/SAMBA/CIFS client configura...

Is there a way with smbmount to mount drives with the dollar sign?

Hi, I am trying to do an equivalent to this: smbmount //srv_files/f$/ /mnt/srv_files -o username=user,password=pass,rw I am getting permission denied though, but if I do: smbmount //srv_files/active/ /mnt/srv_files -o username=user,password=pass,rw then it works just fine, just wondering if this type of mounting with smbmount is eve...

Git over samba - unable to write sha1 filename | Permission denied

When i am usig git over samba share on windows i get an error when i want to commit a file via git_extentions or tortoiseGIT. The error is: error: unable to write sha1 filename .git/objects/b4/e819f886bf31b67c42249a0eff8e8b16cf7622: Permission denied When i add the file via the ubuntu server and commit the file it works fine. I am also w...

Was Samba ever distributed commercially?

I have heard that there was once a company whose only purpose was to sell Samba to corporations that forbade open source software. Is this true? If so, what was that company's name? ...

Open Java SMB server implementation

Is there an open implementation of a SMB/CIFS server in Java? The only implementation I can find at all is Alfresco's but it isn't open source. A related question: assuming there is no such implementation, I'm surprised there isn't a library providing even a subset of SMB e.g. for simple file transfer. My intuition is that it wouldn't b...

samba activity as nobody despite guest account setting

I'm setting up samba on linux for single user access from Windows, and need to prevent password checking. I've added my linux username to smbpasswd. Despite the guest account setting in my smb.conf, files I create are owned by user nobody. How do I get samba to operate as my user id? smb.conf: [global] security = share guest account = ...

How do I set permission of file on samba network drive from windows

Hi all, I am accessing network drive (Z:\stream) on windows. Now the permission set on stream folder is like chmod -R 777 streams/ means all the files inside stream is at 777 but now i am copying some files from windows to this streams folder but permission on those files are not 777 ,i would like to have permission 777 on those files t...

Can't tell if a file exists on a samba share

I know that the file name is file001.txt or FILE001.TXT, but I don't know which. The file is located on a Windows machine that I'm accessing via samba mount point. The functions in os.path seem to be acting as though they were case-insensitive, but the open function seems to be case-sensitive: >>> from os.path import exists, isfile ...

why smb returns NT_STATUS_INVALID_PARAMETER? How to fix smbclient?

Hi, I have a linux box that I use all the time and it always work with different machines. However, I also have a Windows box that is accessible from other windows box, but when I try access from the linux box I only get root@hosting02:/# smbclient -L //10.10.10.5 -U Admin Enter Admin's password: session setup failed: NT_STATUS_INVAL...

Case-sensitivity issues with mounted samba share

I'm trying to read a file on a samba mount point. I can list the file, and I can stat the file. But I can't open it without unless I have the correct file name case. Unfortunately, I can't programmatically determine the file name case (short of listing the directory, which is too slow). $ ls /mnt/windows_share/file001.txt /mnt/windows_...

sqlite3 db is locked

I am on Ubuntu10. Create new db file with touch development.db Want my migrations rake db:migrate but get locked error SQLite3::BusyException: database is locked How it can be locked?! update it can be locked by samba. it's shared folder ...