Modules should use the includes.d folder and make their own files. # The first line (nf) is included for backwards compatibility. # A SMB.createConf() will need to be run for it to detect new SMB config files # Will scan /etc/samba/includes.d/ for extra configuation files as well # Optional extra definitions created by other programs. Postexec = /opt/space/modules/SMB/bin/scripts/event.py -event disconnect -profile 105 -service %S -user %u -client-ip %I -server-ip %i -path %P -pid %d Root preexec = /opt/space/modules/SMB/bin/scripts/event.py -root -event connect -profile 105 -service %S -user %u -client-ip %I -server-ip %i -path %P -pid %d ![]() ![]() Preexec = /opt/space/modules/SMB/bin/scripts/event.py -event connect -profile 105 -service %S -user %u -client-ip %I -server-ip %i -path %P -pid %d # The "security" option is put in this file as well. # Authentication is handled by the UserDirectory module. # (Options from the currently enabled Global Profile. Hide files = //:2eDS_Store/:2eFBCLockFolder/.FBCLockFolder/:2eFBCIndex/.FBCIndex/TheVolumeSettingsFolder/TheFindBåontentFolder/Temporary Items/Network Trash Folder/.AppleDB/:2eVolumeIcon.icns/.VolumeIcon.icns/Icon/.AppleDouble/.AppleDesktop/desktop.ini/RECYCLER// # Include the base global configuration options. I know files can be deleted easily locally on the machine, but I need to delete the file from the mounted location because the module I want to test works only over smb so I can't just ssh to the machine and delete the file manually. This functionality is available in Far Manager and Explorer (it's possible to go one level up from any shared folder). What else can I try to be able to achieve the deletion? Currently muCommander can connect to \\servername\share\but throws the error message 'This folder doesnt exist or is not available' when connecting to just \\servername. from smb.SMBConnection import SMBConnection import json import pprint import warnings pp pprint. : Failed to list on \\\\H021BSBD20\\sharedfolder: Unable to connect to shared device The code I am using looks like. ![]() I have tried to use chattr -i command based on other related questions I have found but I get: chattr: Permission denied while setting flags on /mnt/smb_mnt/file. Trying to connect to an smb share via pysmband getting error. I checked with ls -l and the permissions are the ones I assign to both file and parent file ( smb_mnt) I give the file 777 permissions and I execute the rm command as root which is also the owner of the file. Also, I tried the mount -o remount,rw /mnt/smb_mnt to remount using read and write privileges but the file can still not be deleted. Sudo mount -t cifs //ipaddress/share /mnt/smb_mnt/ -oguest,vers=2.0 and as a root too and none of it worked. I have mounted a share with SMB to an Ubuntu 17.10 VM and I am trying to delete a file from the mount location ( /mnt/smb_mnt). Apologies for not having a proper resolution and I am just closing the issue. Browse button might not work, however if you enter the full path to the share, and set credentials, it should work (Veeam will try connecting to the share when you click Next, and you can also test if it can reach the share by clicking the Populate button). UPDATE: It seems like the problem was caused because of another service which had nothing to do with smb.
0 Comments
Leave a Reply. |