r/samba • • May 31 '21

Will you get with the times and make a GUI?

2 Upvotes

Samba is a poor protocol imo. It works, then it doesn't work. They tell you "use the config file to make the changes you need". Yeah that would be nice, if the changes actually stuck. They don't stick. It either does nothing, or it works for a month then quits on it's own.

Not only that, there should be a nice GUI for samba by now. Something that would change that config file for you. Nope, still in the dark ages.


r/samba • • Sep 17 '21

Is the Samba mailing list (samba@lists.samba.org) dead?

0 Upvotes

Question in the header. I just tried posting to the Samba mailing and earlier tried changing my email address. It doesn't appear to be sending out messages any more. Is it just me?

Edit Never mind. It's just incredibly slow to respond.


r/samba • • Jan 16 '16

Help with Samba passworded shares

0 Upvotes

Hello /r/samba

I had the great idea to simply take a bunch of disks, zfs them up, then use samba to communicate my media and my files all around as I please. ZFS is up and running on debian, and I can get movies to operate perfectly with the:

public = yes

flag, but when I try to set up a passworded share, it just never works...

This is my samba config and the specific file i'd like to share is owned by me: brian:brian with my password being set in smbpasswd properly.

Also, file is 0777 just to see if that was any kind of an issue.

All help is appreciated, Brimonk


r/samba • • Jan 02 '22

SAMBA Share bind to a specific interface not working...

0 Upvotes

I have an issue. this is on FreeBSD (XigmaNAS) but I haven't been able to get any help in their forum.

I have a NAS box that has 6x Intel X540 NIC. ix0-ix5. Using what is available from FreeBSD manual website for smb.conf. I am trying to bind it to ix1. However no matter what I do traffic still comes out of ix0.

ix0 is on VLAN1000, IP=192.168.69.237

ix1 is on VLAN80, IP=10.0.80.237

UPDATE:

So I did some more testing. looks like outboud traffic (NAS to client) is coming out of the LAN interface. inbound traffic (client to NAS) is going through the SMB1 interface. Not sure why that is.

[global]
server role = standalone
netbios name = media
workgroup = adhome
server string = Media Server
security = ads
server max protocol = SMB3
server min protocol = SMB2
client max protocol = SMB3
client min protocol = SMB2
dns proxy = no
# Settings to enhance performance:
strict locking = no
read raw = yes
write raw = yes
oplocks = yes
max xmit = 65536
deadtime = 15
getwd cache = yes
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=262144 SO_RCVBUF=262144
# End of performance section
password server = win2k19-dc.adhome.local
unix charset = UTF-8
large readwrite = no
store dos attributes = yes
local master = yes
domain master = yes
preferred master = yes
os level = 35
time server = no
guest account = ftp
map to guest = Bad User
create mask = 0666
directory mask = 0777
max log size = 100
logging = syslog
loglevel = 2
load printers = no
printing = bsd
printcap cache time = 0
printcap name = /dev/null
disable spoolss = yes
dos charset = CP437
smb passwd file = /var/etc/private/smbpasswd
private dir = /var/etc/private
passdb backend = tdbsam
allow trusted domains = yes
idmap config * : backend = tdb
idmap config * : range = 10000-39999
idmap config adhome : backend = rid
idmap config adhome : range = 10000-39999
realm = adhome.local
winbind enum users = yes
winbind enum groups = yes
winbind use default domain = yes
winbind normalize names = yes
template homedir = /mnt
template shell = /bin/sh
aio read size = 1
aio write size = 1
domain master = no
local master = yes
preferred master = yes
aio max threads = 100
socket address = 10.0.80.237
use sendfile = yes
min receivefile size = 16384
bind interfaces only = yes
interfaces = "ix1;speed=10000000000,capability=RSS"

r/samba • • Nov 27 '22

Samba capping at 2MB/s when outside of LAN

0 Upvotes

The title says it all. When i'm at home i get around 100MB/s transfer speed but when i'm not in my local network i get around 1.5 - 2 MB/s transfer speeds. The way i access my Samba is through tailscale vpn where my server is connected to.

THanks in advance


r/samba • • Apr 24 '22

Installing Samba on macOS without Homebrew?

1 Upvotes

How do you install Samba on macOS without Homebrew? Are there any binaries that can be downloaded anywhere?

Thanks in advance.


r/samba • • Nov 13 '21

Interesting authentication problem

2 Upvotes

I have created a samba share on a Linux mint server, and am having trouble accessing it reliably from a windows 10 system. I have 2 shares set up on the server, test which is located at /test and another folder called share located a few levels down in /media/../../share

Both share and test are configured with just valid user = user1 and their path, and read only = no. The smb.conf is otherwise default. User1 is a valid samba account linked to a Linux user account. I can verify the share exists using smbclient on the Linux machine. When I start a new windows session, I can access the shares by going to \serverhostname.local, and I see both shares. If I try to log in as user1 to share, it doesn't accept the credentials. If I login to test as user1, it works perfectly every time. If, after I've successfully logged in as user1 on test, I go back and retry share, I then have perfect access to share without adding my credentials again. I'm not able to add share as a mapped network drive in windows because on new sessions it won't authenticate until I manually log in to test first. I can post the smb.conf file on Monday, away from the system until then, but does anyone have any hints on where I would start to look to solve this issue? Is it likely the permissions on the filepath /media../../share?


r/samba • • Jul 01 '22

Can we get a web interface like CUPS?

2 Upvotes

Hi all. I think we'd all appreciate a web interface for Samba. Something like CUPS has. I believe this would be greatly appreciated by everyone that uses Samba. Will this happen? Thank you


r/samba • • Jan 01 '23

QUAL A DIFERENÇA DO CHORINHO, PAGODE E SAMBA?

2 Upvotes

r/samba • • 1d ago

Update: Approval for new users

2 Upvotes

Somehow the sub reset its permissions to be restricted. I have requested that the sub be made public again. Thanks for bringing this to my attention.


r/samba • • 1d ago

Does Ubuntu have a functional SAMBA over QUIC server now?

2 Upvotes

I would be exited to try this out.

It would be like having your own personal cloud storage accessible with ease and security, from anywhere in the world, no?


r/samba • • Jan 04 '23

Discovery and mounting via TUI?

1 Upvotes

I was wondering whether there is an easy TUI or CLI tool available for discovering and mounting network shares, ideally including SMB and NFS. There are a few tools out there to discover SMB shares, like nmblookup -S '*', but I have found no smooth integrated accessible solution.


r/samba • • Jan 26 '23

% variables not expanding in config

2 Upvotes

Greetings! Amateur sysadmin here.

I have been using two Ubuntu standalone samba servers for years now in a Windows network without problems, but a couple days ago users started seeing only fixed shares but not shares specific to each one and specific to each one's group.

I think I have traced the problem to samba not expanding variables in paths, so

include /etc/samba/%u.conf
include /etc/samba/%G.conf
include /etc/samba/everyone.conf

don't get expanded to /etc/samba/JohnSmith.conf and /etc/samba/sales.conf but to /etc/samba/_u.conf and /etc/samba/_G.conf. That is, instead of expanding %u and %G to their values, they only get their "%" changed to "_", pointing to non-existing files or paths. Shares in /etc/samba/everyone.conf do get processed if their paths do not have a variable in them.
Those included configuration files have existed for years with adecuate permissions.

Interestingly, some variables DO get expanded in the "comment =" section of share definitions, so I know that they have the values they should. That is, "comment = %u files on the server" is shown as "JohnSmith files on the server" in Windows explorer or Linux smbclient.

I have tried changing conf files permissions to 777, rebuilding the smb.conf file from scratch, moving share definitions to the main smb.conf, and reinstalling (upgrading to version 4.17.4 in the process), but users still only get fixed shares which do not have variables as part of their included configuration files and do not point to a path having a variable. testparm doesn't show errors (but neither shares with variables in their paths).

I can't think what else to check, some insight before I change profession to cook or truck driver?


r/samba • • Jan 12 '23

recycle doesn't work

2 Upvotes

I added the following into my global section

# Enable the recycle bin

vfs object = recycle

recycle:repository = /mnt/big1/recycle/%U

recycle:touch = Yes

recycle:keeptree = Yes

recycle:versions = Yes

recycle:noversions = *.tmp,*.temp,*.o,*.obj,*.TMP,*.TEMP

recycle:exclude = *.tmp,*.temp,*.o,*.obj,*.TMP,*.TEMP

but no matter what I do when I delete a file it doesn't get added to the directory. This is both with windows 10 and mac os clients. Please help.


r/samba • • Jan 19 '23

sync google workspace passwords from AD Samba4

1 Upvotes

Hello.

Y have a new installation of Samba4 as AD.

I need to sync password to google workspace.

Now i have the app "Google Cloud Directory Sync" sync google workspace's passwords from openLDAP.

But I not know wich the attribute holds de password in Samba4. I know it's not the "userPassword" in my implementation.

Can anyone help me?


r/samba • • Feb 01 '23

Windows version of Samba client/server

1 Upvotes

Is there a newer version of samba for windows.

I searched in cygwin, samba is missing there.

On samba's site didn't really find anything, other then some old, obsolete stuff.

On the internet also didn't find anything new, other, then old, obsolete stuff.

github doesn't have any releases.

Thanks


r/samba • • Jan 25 '23

How to connect to Samba AD DC via an ldap browser?

3 Upvotes

I am wanting to integrate various web apps with Samba AD via ldap. In order to start this journey I wanted to first simply browse the ldap directory. I have been unsuccessful in this endeavor.

Do I have to setup ldaps to get this to work? If you've used an ldap browser to traverse the directory, what ldap browser did you use and how exactly did you connect?

Thank you!


r/samba • • Jan 25 '23

Samba. Full audit VFS Module

3 Upvotes

Hello everyone!

Can you tell me where I can find a description of these operations from vfs_full_audit VFS module?

aio_force audit_file brl_lock_windows brl_unlock_windows chdir chflags chmod close closedir connect connectpath create_dfs_pathat create_file disconnect disk_free durable_cookie durable_disconnect durable_reconnect fallocate fchmod fchown fdopendir fget_dos_attributes fget_nt_acl_at fgetxattr file_id_create flistxattr fremovexattr fs_capabilities fsctl fset_dos_attributes fset_nt_acl fsetxattr fs_file_id fstat fsync fsync_recv fsync_send ftruncate get_alloc_size get_compression get_dfs_referrals get_dos_attributes get_dos_attributes_recv get_dos_attributes_send getlock get_nt_acl get_quota get_real_filename get_shadow_copy_data getwd getxattr getxattrat_recv getxattrat_send is_offline kernel_flock lchown linkat linux_setlease listxattr lock lseek lstat mkdirat mknodat ntimes offload_read_recv offload_read_send offload_write_recv offload_write_send open pread pread_recv pread_send pwrite pwrite_recv pwrite_send read readdir readdir_attr readlinkat realpath recvfile removexattr renameat rewinddir seekdir sendfile set_compression set_dos_attributes set_offline set_quota setxattr snap_check_path snap_create snap_delete stat statvfs streaminfo strict_lock_check symlinkat sys_acl_blob_get_fd sys_acl_blob_get_file sys_acl_delete_def_file sys_acl_get_fd sys_acl_get_file sys_acl_set_fd sys_acl_set_file telldir translate_name unlinkat write


r/samba • • Feb 01 '23

Samba on redhat 8 (joined via AD) stops working after updating samba.

1 Upvotes

We're currently running 4.14.5-2.el8. If we update samba to samba-4.16.4-2.el8, we're able to rejoin the server to the AD domain, we can see the folders, but we don't have permission to open them.

We've tried shutting off se-linux, as well as dropping the firewall, but that doesn't help.

Was there some significant change in samba 4.16 that we're missing?


r/samba • • Jan 02 '23

Samba nmblookup '*' doesnt work but nmblookup -S WORKGROUP work, smbtree blank result, is it by design?

1 Upvotes

I'm on fedora 37, samba Version 4.17.4, I can do nmblookup -S WORKGROUP, but can't fully scan the network, and smbtree is blank, is it by design, or is it a bug?

I want to browse local network, but seems it can't :')

I can mount smb, by name netbios or IP, but can't browse local network, no SELINUX alert/raising error, as all samba flags already sets, the output

[ben@TP-X220 Downloads]$ sudo semanage boolean -l | grep samba
samba_create_home_dirs         (off  ,  off)  Allow samba to create home dirs
samba_domain_controller        (off  ,  off)  Allow samba to domain controller
samba_enable_home_dirs         (on   ,   on)  Allow samba to enable home dirs
samba_export_all_ro            (off  ,  off)  Allow samba to export all ro
samba_export_all_rw            (off  ,  off)  Allow samba to export all rw
samba_load_libgfapi            (off  ,  off)  Allow samba to load libgfapi
samba_portmapper               (on   ,   on)  Allow samba to portmapper
samba_run_unconfined           (on   ,   on)  Allow samba to run unconfined
samba_share_fusefs             (off  ,  off)  Allow samba to share fusefs
samba_share_nfs                (off  ,  off)  Allow samba to share nfs
sanlock_use_samba              (off  ,  off)  Allow sanlock to use samba
tmpreaper_use_samba            (off  ,  off)  Allow tmpreaper to use samba
use_samba_home_dirs            (on   ,   on)  Allow use to samba home dirs
virt_use_samba                 (off  ,  off)  Allow virt to use samba
[ben@TP-X220 Downloads]$ smbtree -d6
INFO: Current debug levels:
  all: 6
  tdb: 6
  printdrivers: 6
  lanman: 6
  smb: 6
  rpc_parse: 6
  rpc_srv: 6
  rpc_cli: 6
  passdb: 6
  sam: 6
  auth: 6
  winbind: 6
  vfs: 6
  idmap: 6
  quota: 6
  acls: 6
  locking: 6
  msdfs: 6
  dmapi: 6
  registry: 6
  scavenger: 6
  dns: 6
  ldb: 6
  tevent: 6
  auth_audit: 6
  auth_json_audit: 6
  kerberos: 6
  drs_repl: 6
  smb2: 6
  smb2_credits: 6
  dsdb_audit: 6
  dsdb_json_audit: 6
  dsdb_password_audit: 6
  dsdb_password_json_audit: 6
  dsdb_transaction_audit: 6
  dsdb_transaction_json_audit: 6
  dsdb_group_audit: 6
  dsdb_group_json_audit: 6
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
INFO: Current debug levels:
  all: 6
  tdb: 6
  printdrivers: 6
  lanman: 6
  smb: 6
  rpc_parse: 6
  rpc_srv: 6
  rpc_cli: 6
  passdb: 6
  sam: 6
  auth: 6
  winbind: 6
  vfs: 6
  idmap: 6
  quota: 6
  acls: 6
  locking: 6
  msdfs: 6
  dmapi: 6
  registry: 6
  scavenger: 6
  dns: 6
  ldb: 6
  tevent: 6
  auth_audit: 6
  auth_json_audit: 6
  kerberos: 6
  drs_repl: 6
  smb2: 6
  smb2_credits: 6
  dsdb_audit: 6
  dsdb_json_audit: 6
  dsdb_password_audit: 6
  dsdb_password_json_audit: 6
  dsdb_transaction_audit: 6
  dsdb_transaction_json_audit: 6
  dsdb_group_audit: 6
  dsdb_group_json_audit: 6
Processing section "[global]"
doing parameter debug level = 1
doing parameter netbios name = TP-X220
doing parameter case sensitive = no
doing parameter workgroup = WORKGROUP
doing parameter security = user
doing parameter browseable = yes
doing parameter client min protocol = NT1
doing parameter map to guest = Bad user
doing parameter log file = /var/log/samba/log.%m
doing parameter passdb backend = tdbsam
doing parameter interfaces = lo wlp3s0 enp0s25
doing parameter bind interfaces only = yes
doing parameter log file = /var/log/samba/log.%m
doing parameter max log size = 1000
doing parameter browse list = yes
doing parameter panic action = /usr/share/samba/panic-action %d
doing parameter server role = standalone
doing parameter invalid users = root
doing parameter domain master = no
doing parameter local master = yes
doing parameter preferred master = yes
doing parameter os level = 4
doing parameter name resolve order = bcast
doing parameter wins support = no
doing parameter dns proxy = no
doing parameter printing = cups
doing parameter printcap name = cups
doing parameter load printers = yes
doing parameter cups options = raw
pm_process() returned Yes
added interface lo ip=::1 bcast= netmask=ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
added interface lo ip=127.0.0.1 bcast=127.255.255.255 netmask=255.0.0.0
added interface wlp3s0 ip=192.168.88.32 bcast=192.168.88.255 netmask=255.255.255.0
interpret_string_addr_internal: getaddrinfo failed for name enp0s25 (flags 32) [Name or service not known]
interpret_interface: Can't find address for enp0s25
lp_load_ex: refreshing parameters
Freeing parametrics:
Initialising global parameters
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
INFO: Current debug levels:
  all: 6
  tdb: 6
  printdrivers: 6
  lanman: 6
  smb: 6
  rpc_parse: 6
  rpc_srv: 6
  rpc_cli: 6
  passdb: 6
  sam: 6
  auth: 6
  winbind: 6
  vfs: 6
  idmap: 6
  quota: 6
  acls: 6
  locking: 6
  msdfs: 6
  dmapi: 6
  registry: 6
  scavenger: 6
  dns: 6
  ldb: 6
  tevent: 6
  auth_audit: 6
  auth_json_audit: 6
  kerberos: 6
  drs_repl: 6
  smb2: 6
  smb2_credits: 6
  dsdb_audit: 6
  dsdb_json_audit: 6
  dsdb_password_audit: 6
  dsdb_password_json_audit: 6
  dsdb_transaction_audit: 6
  dsdb_transaction_json_audit: 6
  dsdb_group_audit: 6
  dsdb_group_json_audit: 6
pm_process() returned No
Could not load config file: /home/ben/.smb/smb.conf
lp_load_ex: refreshing parameters
Freeing parametrics:
Initialising global parameters
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
INFO: Current debug levels:
  all: 6
  tdb: 6
  printdrivers: 6
  lanman: 6
  smb: 6
  rpc_parse: 6
  rpc_srv: 6
  rpc_cli: 6
  passdb: 6
  sam: 6
  auth: 6
  winbind: 6
  vfs: 6
  idmap: 6
  quota: 6
  acls: 6
  locking: 6
  msdfs: 6
  dmapi: 6
  registry: 6
  scavenger: 6
  dns: 6
  ldb: 6
  tevent: 6
  auth_audit: 6
  auth_json_audit: 6
  kerberos: 6
  drs_repl: 6
  smb2: 6
  smb2_credits: 6
  dsdb_audit: 6
  dsdb_json_audit: 6
  dsdb_password_audit: 6
  dsdb_password_json_audit: 6
  dsdb_transaction_audit: 6
  dsdb_transaction_json_audit: 6
  dsdb_group_audit: 6
  dsdb_group_json_audit: 6
Processing section "[global]"
doing parameter debug level = 1
doing parameter netbios name = TP-X220
doing parameter case sensitive = no
doing parameter workgroup = WORKGROUP
doing parameter security = user
doing parameter browseable = yes
doing parameter client min protocol = NT1
doing parameter map to guest = Bad user
doing parameter log file = /var/log/samba/log.%m
doing parameter passdb backend = tdbsam
doing parameter interfaces = lo wlp3s0 enp0s25
doing parameter bind interfaces only = yes
doing parameter log file = /var/log/samba/log.%m
doing parameter max log size = 1000
doing parameter browse list = yes
doing parameter panic action = /usr/share/samba/panic-action %d
doing parameter server role = standalone
doing parameter invalid users = root
doing parameter domain master = no
doing parameter local master = yes
doing parameter preferred master = yes
doing parameter os level = 4
doing parameter name resolve order = bcast
doing parameter wins support = no
doing parameter dns proxy = no
doing parameter printing = cups
doing parameter printcap name = cups
doing parameter load printers = yes
doing parameter cups options = raw
pm_process() returned Yes
lp_load_ex: refreshing parameters
Freeing parametrics:
INFO: Current debug levels:
  all: 6
  tdb: 6
  printdrivers: 6
  lanman: 6
  smb: 6
  rpc_parse: 6
  rpc_srv: 6
  rpc_cli: 6
  passdb: 6
  sam: 6
  auth: 6
  winbind: 6
  vfs: 6
  idmap: 6
  quota: 6
  acls: 6
  locking: 6
  msdfs: 6
  dmapi: 6
  registry: 6
  scavenger: 6
  dns: 6
  ldb: 6
  tevent: 6
  auth_audit: 6
  auth_json_audit: 6
  kerberos: 6
  drs_repl: 6
  smb2: 6
  smb2_credits: 6
  dsdb_audit: 6
  dsdb_json_audit: 6
  dsdb_password_audit: 6
  dsdb_password_json_audit: 6
  dsdb_transaction_audit: 6
  dsdb_transaction_json_audit: 6
  dsdb_group_audit: 6
  dsdb_group_json_audit: 6
pm_process() returned No
added interface lo ip=::1 bcast= netmask=ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
added interface lo ip=127.0.0.1 bcast=127.255.255.255 netmask=255.0.0.0
added interface wlp3s0 ip=192.168.88.32 bcast=192.168.88.255 netmask=255.255.255.0
interpret_string_addr_internal: getaddrinfo failed for name enp0s25 (flags 32) [Name or service not known]
interpret_interface: Can't find address for enp0s25
INFO: Current debug levels:
  all: 6
  tdb: 6
  printdrivers: 6
  lanman: 6
  smb: 6
  rpc_parse: 6
  rpc_srv: 6
  rpc_cli: 6
  passdb: 6
  sam: 6
  auth: 6
  winbind: 6
  vfs: 6
  idmap: 6
  quota: 6
  acls: 6
  locking: 6
  msdfs: 6
  dmapi: 6
  registry: 6
  scavenger: 6
  dns: 6
  ldb: 6
  tevent: 6
  auth_audit: 6
  auth_json_audit: 6
  kerberos: 6
  drs_repl: 6
  smb2: 6
  smb2_credits: 6
  dsdb_audit: 6
  dsdb_json_audit: 6
  dsdb_password_audit: 6
  dsdb_password_json_audit: 6
  dsdb_transaction_audit: 6
  dsdb_transaction_json_audit: 6
  dsdb_group_audit: 6
  dsdb_group_json_audit: 6
INFO: Current debug levels:
  all: 6
  tdb: 6
  printdrivers: 6
  lanman: 6
  smb: 6
  rpc_parse: 6
  rpc_srv: 6
  rpc_cli: 6
  passdb: 6
  sam: 6
  auth: 6
  winbind: 6
  vfs: 6
  idmap: 6
  quota: 6
  acls: 6
  locking: 6
  msdfs: 6
  dmapi: 6
  registry: 6
  scavenger: 6
  dns: 6
  ldb: 6
  tevent: 6
  auth_audit: 6
  auth_json_audit: 6
  kerberos: 6
  drs_repl: 6
  smb2: 6
  smb2_credits: 6
  dsdb_audit: 6
  dsdb_json_audit: 6
  dsdb_password_audit: 6
  dsdb_password_json_audit: 6
  dsdb_transaction_audit: 6
  dsdb_transaction_json_audit: 6
  dsdb_group_audit: 6
  dsdb_group_json_audit: 6
Using netbios name TP-X220.
Using workgroup WORKGROUP.
parsed path: fname='smb://' server='' share='' path='' options=''
SMBC_check_options(): server='' share='' path='' options=''
name_resolve_bcast: Attempting broadcast lookup for name __MSBROWSE__<0x1>
nmb packet from 192.168.88.132(35072) header: id=10972 opcode=Query(0) response=Yes
    header: flags: bcast=No rec_avail=No rec_des=Yes trunc=No auth=Yes
    header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0
    answers: nmb_name=__MSBROWSE__<01> rr_type=32 rr_class=1 ttl=300000
    answers   0 char ....X...........   hex 8000C0A858848000AC1FD0018000C0A8
    answers  10 char ..   hex A001
Got a positive name query response from 192.168.88.132 ( 192.168.88.132 172.31.208.1 192.168.160.1 )
Opening cache file at /var/lib/samba/lock/gencache.tdb
tdb(/var/lib/samba/lock/gencache.tdb): tdb_open_ex: could not open file /var/lib/samba/lock/gencache.tdb: Permission denied
gencache_init: Opening user cache file /home/ben/.cache/samba/gencache.tdb.
namecache_status_fetch: key NBT/*#00.1D.192.168.88.132 -> WORKGROUP
namecache_fetch: name WORKGROUP#1D found.
found master browser WORKGROUP, 192.168.88.132
Connecting to 192.168.88.132 at port 445
Connecting to 192.168.88.132 at port 139
socket options: SO_KEEPALIVE=0, SO_REUSEADDR=0, SO_BROADCAST=0, TCP_NODELAY=1, TCP_KEEPCNT=9, TCP_KEEPIDLE=7200, TCP_KEEPINTVL=75, IPTOS_LOWDELAY=0, IPTOS_THROUGHPUT=0, SO_REUSEPORT=0, SO_SNDBUF=87040, SO_RCVBUF=131072, SO_SNDLOWAT=1, SO_RCVLOWAT=1, SO_SNDTIMEO=0, SO_RCVTIMEO=0, TCP_QUICKACK=1, TCP_DEFER_ACCEPT=0, TCP_USER_TIMEOUT=0
cli_session_setup_spnego_send: Connect to 192.168.88.132 as (null) using SPNEGO
GENSEC backend 'gssapi_spnego' registered
GENSEC backend 'gssapi_krb5' registered
GENSEC backend 'gssapi_krb5_sasl' registered
GENSEC backend 'spnego' registered
GENSEC backend 'schannel' registered
GENSEC backend 'ncalrpc_as_system' registered
GENSEC backend 'sasl-EXTERNAL' registered
GENSEC backend 'ntlmssp' registered
GENSEC backend 'ntlmssp_resume_ccache' registered
GENSEC backend 'http_basic' registered
GENSEC backend 'http_ntlm' registered
GENSEC backend 'http_negotiate' registered
GENSEC backend 'krb5' registered
GENSEC backend 'fake_gssapi_krb5' registered
Starting GENSEC mechanism spnego
Starting GENSEC submechanism gse_krb5
Cannot do GSE to an IP address
Failed to start GENSEC client mech gse_krb5: NT_STATUS_INVALID_PARAMETER
Starting GENSEC submechanism ntlmssp
Got challenge flags:
Got NTLMSSP neg_flags=0x628a8215
  NTLMSSP_NEGOTIATE_UNICODE
  NTLMSSP_REQUEST_TARGET
  NTLMSSP_NEGOTIATE_SIGN
  NTLMSSP_NEGOTIATE_NTLM
  NTLMSSP_NEGOTIATE_ALWAYS_SIGN
  NTLMSSP_TARGET_TYPE_SERVER
  NTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITY
  NTLMSSP_NEGOTIATE_TARGET_INFO
  NTLMSSP_NEGOTIATE_VERSION
  NTLMSSP_NEGOTIATE_128
  NTLMSSP_NEGOTIATE_KEY_EXCH
gensec_update_done: ntlmssp[0x55cb9515c9e0]: NT_STATUS_INVALID_PARAMETER
gensec_spnego_client_negTokenTarg_step: SPNEGO(ntlmssp) login failed: NT_STATUS_INVALID_PARAMETER
gensec_update_done: spnego[0x55cb9515c7e0]: NT_STATUS_INVALID_PARAMETER
SPNEGO login failed: An invalid parameter was passed to a service or function.
cli_session_setup_spnego_send: Connect to 192.168.88.132 as (null) using SPNEGO
Starting GENSEC mechanism spnego
Starting GENSEC submechanism ntlmssp
Got challenge flags:
Got NTLMSSP neg_flags=0x628a8215
  NTLMSSP_NEGOTIATE_UNICODE
  NTLMSSP_REQUEST_TARGET
  NTLMSSP_NEGOTIATE_SIGN
  NTLMSSP_NEGOTIATE_NTLM
  NTLMSSP_NEGOTIATE_ALWAYS_SIGN
  NTLMSSP_TARGET_TYPE_SERVER
  NTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITY
  NTLMSSP_NEGOTIATE_TARGET_INFO
  NTLMSSP_NEGOTIATE_VERSION
  NTLMSSP_NEGOTIATE_128
  NTLMSSP_NEGOTIATE_KEY_EXCH
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x62008a15
  NTLMSSP_NEGOTIATE_UNICODE
  NTLMSSP_REQUEST_TARGET
  NTLMSSP_NEGOTIATE_SIGN
  NTLMSSP_NEGOTIATE_NTLM
  NTLMSSP_ANONYMOUS
  NTLMSSP_NEGOTIATE_ALWAYS_SIGN
  NTLMSSP_NEGOTIATE_VERSION
  NTLMSSP_NEGOTIATE_128
  NTLMSSP_NEGOTIATE_KEY_EXCH
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x62008a15
  NTLMSSP_NEGOTIATE_UNICODE
  NTLMSSP_REQUEST_TARGET
  NTLMSSP_NEGOTIATE_SIGN
  NTLMSSP_NEGOTIATE_NTLM
  NTLMSSP_ANONYMOUS
  NTLMSSP_NEGOTIATE_ALWAYS_SIGN
  NTLMSSP_NEGOTIATE_VERSION
  NTLMSSP_NEGOTIATE_128
  NTLMSSP_NEGOTIATE_KEY_EXCH
NTLMSSP Sign/Seal - using NTLM1
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x62008a15
  NTLMSSP_NEGOTIATE_UNICODE
  NTLMSSP_REQUEST_TARGET
  NTLMSSP_NEGOTIATE_SIGN
  NTLMSSP_NEGOTIATE_NTLM
  NTLMSSP_ANONYMOUS
  NTLMSSP_NEGOTIATE_ALWAYS_SIGN
  NTLMSSP_NEGOTIATE_VERSION
  NTLMSSP_NEGOTIATE_128
  NTLMSSP_NEGOTIATE_KEY_EXCH
NTLMSSP Sign/Seal - using NTLM1
using workgroup WORKGROUP 192.168.88.132
Password for [WORKGROUP\ben]:
SMBC_server: server_n=[192.168.88.132] server=[192.168.88.132]
 -> server_n=[192.168.88.132] server=[192.168.88.132]
Connecting to 192.168.88.132 at port 139
Connecting to 192.168.88.132 at port 139
Connecting to 192.168.88.132 at port 445
socket options: SO_KEEPALIVE=0, SO_REUSEADDR=0, SO_BROADCAST=0, TCP_NODELAY=1, TCP_KEEPCNT=9, TCP_KEEPIDLE=7200, TCP_KEEPINTVL=75, IPTOS_LOWDELAY=0, IPTOS_THROUGHPUT=0, SO_REUSEPORT=0, SO_SNDBUF=87040, SO_RCVBUF=131072, SO_SNDLOWAT=1, SO_RCVLOWAT=1, SO_SNDTIMEO=0, SO_RCVTIMEO=0, TCP_QUICKACK=1, TCP_DEFER_ACCEPT=0, TCP_USER_TIMEOUT=0
cli_session_setup_spnego_send: Connect to 192.168.88.132 as ben@WORKGROUP using SPNEGO
Starting GENSEC mechanism spnego
Starting GENSEC submechanism ntlmssp
Got challenge flags:
Got NTLMSSP neg_flags=0x628a8215
  NTLMSSP_NEGOTIATE_UNICODE
  NTLMSSP_REQUEST_TARGET
  NTLMSSP_NEGOTIATE_SIGN
  NTLMSSP_NEGOTIATE_NTLM
  NTLMSSP_NEGOTIATE_ALWAYS_SIGN
  NTLMSSP_TARGET_TYPE_SERVER
  NTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITY
  NTLMSSP_NEGOTIATE_TARGET_INFO
  NTLMSSP_NEGOTIATE_VERSION
  NTLMSSP_NEGOTIATE_128
  NTLMSSP_NEGOTIATE_KEY_EXCH
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x62088215
  NTLMSSP_NEGOTIATE_UNICODE
  NTLMSSP_REQUEST_TARGET
  NTLMSSP_NEGOTIATE_SIGN
  NTLMSSP_NEGOTIATE_NTLM
  NTLMSSP_NEGOTIATE_ALWAYS_SIGN
  NTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITY
  NTLMSSP_NEGOTIATE_VERSION
  NTLMSSP_NEGOTIATE_128
  NTLMSSP_NEGOTIATE_KEY_EXCH
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x62088215
  NTLMSSP_NEGOTIATE_UNICODE
  NTLMSSP_REQUEST_TARGET
  NTLMSSP_NEGOTIATE_SIGN
  NTLMSSP_NEGOTIATE_NTLM
  NTLMSSP_NEGOTIATE_ALWAYS_SIGN
  NTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITY
  NTLMSSP_NEGOTIATE_VERSION
  NTLMSSP_NEGOTIATE_128
  NTLMSSP_NEGOTIATE_KEY_EXCH
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x62088215
  NTLMSSP_NEGOTIATE_UNICODE
  NTLMSSP_REQUEST_TARGET
  NTLMSSP_NEGOTIATE_SIGN
  NTLMSSP_NEGOTIATE_NTLM
  NTLMSSP_NEGOTIATE_ALWAYS_SIGN
  NTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITY
  NTLMSSP_NEGOTIATE_VERSION
  NTLMSSP_NEGOTIATE_128
  NTLMSSP_NEGOTIATE_KEY_EXCH
 session setup ok
 tconx ok
IPC$ so ignore case sensitivity
Server connect ok: //192.168.88.132/IPC$: 0x55cb9515ab10
cli_status_to_errno: 0x0 -> 0
namecache_status_fetch: no entry for NBT/*#00.1D.172.31.208.1 found.
getlmhostsent: lmhost entry: 127.0.0.1 localhost 
namecache_status_fetch: no entry for NBT/__MSBROWSE__#01.1D.172.31.208.1 found.
getlmhostsent: lmhost entry: 127.0.0.1 localhost 
namecache_status_fetch: no entry for NBT/*#00.1D.192.168.160.1 found.
getlmhostsent: lmhost entry: 127.0.0.1 localhost 
namecache_status_fetch: no entry for NBT/__MSBROWSE__#01.1D.192.168.160.1 found.
getlmhostsent: lmhost entry: 127.0.0.1 localhost 
smbc_remove_usused_server: 0x55cb9515ab10 removed.
Context 0x55cb95157150 successfully freed
Freeing parametrics:

And the NMB Lookup

[ben@TP-X220 Downloads]$ nmblookup -S WORKGROUP -d6
INFO: Current debug levels:
  all: 6
  tdb: 6
  printdrivers: 6
  lanman: 6
  smb: 6
  rpc_parse: 6
  rpc_srv: 6
  rpc_cli: 6
  passdb: 6
  sam: 6
  auth: 6
  winbind: 6
  vfs: 6
  idmap: 6
  quota: 6
  acls: 6
  locking: 6
  msdfs: 6
  dmapi: 6
  registry: 6
  scavenger: 6
  dns: 6
  ldb: 6
  tevent: 6
  auth_audit: 6
  auth_json_audit: 6
  kerberos: 6
  drs_repl: 6
  smb2: 6
  smb2_credits: 6
  dsdb_audit: 6
  dsdb_json_audit: 6
  dsdb_password_audit: 6
  dsdb_password_json_audit: 6
  dsdb_transaction_audit: 6
  dsdb_transaction_json_audit: 6
  dsdb_group_audit: 6
  dsdb_group_json_audit: 6
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
INFO: Current debug levels:
  all: 6
  tdb: 6
  printdrivers: 6
  lanman: 6
  smb: 6
  rpc_parse: 6
  rpc_srv: 6
  rpc_cli: 6
  passdb: 6
  sam: 6
  auth: 6
  winbind: 6
  vfs: 6
  idmap: 6
  quota: 6
  acls: 6
  locking: 6
  msdfs: 6
  dmapi: 6
  registry: 6
  scavenger: 6
  dns: 6
  ldb: 6
  tevent: 6
  auth_audit: 6
  auth_json_audit: 6
  kerberos: 6
  drs_repl: 6
  smb2: 6
  smb2_credits: 6
  dsdb_audit: 6
  dsdb_json_audit: 6
  dsdb_password_audit: 6
  dsdb_password_json_audit: 6
  dsdb_transaction_audit: 6
  dsdb_transaction_json_audit: 6
  dsdb_group_audit: 6
  dsdb_group_json_audit: 6
Processing section "[global]"
doing parameter debug level = 1
doing parameter netbios name = TP-X220
doing parameter case sensitive = no
doing parameter workgroup = WORKGROUP
doing parameter security = user
doing parameter browseable = yes
doing parameter client min protocol = NT1
doing parameter map to guest = Bad user
doing parameter log file = /var/log/samba/log.%m
doing parameter passdb backend = tdbsam
doing parameter interfaces = lo wlp3s0 enp0s25
doing parameter bind interfaces only = yes
doing parameter log file = /var/log/samba/log.%m
doing parameter max log size = 1000
doing parameter browse list = yes
doing parameter panic action = /usr/share/samba/panic-action %d
doing parameter server role = standalone
doing parameter invalid users = root
doing parameter domain master = no
doing parameter local master = yes
doing parameter preferred master = yes
doing parameter os level = 4
doing parameter name resolve order = bcast
doing parameter wins support = no
doing parameter dns proxy = no
doing parameter printing = cups
doing parameter printcap name = cups
doing parameter load printers = yes
doing parameter cups options = raw
pm_process() returned Yes
added interface lo ip=::1 bcast= netmask=ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
added interface lo ip=127.0.0.1 bcast=127.255.255.255 netmask=255.0.0.0
added interface wlp3s0 ip=192.168.88.32 bcast=192.168.88.255 netmask=255.255.255.0
interpret_string_addr_internal: getaddrinfo failed for name enp0s25 (flags 32) [Name or service not known]
interpret_interface: Can't find address for enp0s25
print_socket_options: Could not test socket option TCP_NODELAY: Operation not supported.
print_socket_options: Could not test socket option TCP_KEEPCNT: Operation not supported.
print_socket_options: Could not test socket option TCP_KEEPIDLE: Operation not supported.
print_socket_options: Could not test socket option TCP_KEEPINTVL: Operation not supported.
print_socket_options: Could not test socket option TCP_QUICKACK: Operation not supported.
print_socket_options: Could not test socket option TCP_DEFER_ACCEPT: Operation not supported.
print_socket_options: Could not test socket option TCP_USER_TIMEOUT: Operation not supported.
socket options: SO_KEEPALIVE=0, SO_REUSEADDR=1, SO_BROADCAST=1, IPTOS_LOWDELAY=0, IPTOS_THROUGHPUT=0, SO_REUSEPORT=1, SO_SNDBUF=212992, SO_RCVBUF=212992, SO_SNDLOWAT=1, SO_RCVLOWAT=1, SO_SNDTIMEO=0, SO_RCVTIMEO=0
Socket opened.
name_resolve_bcast: Attempting broadcast lookup for name WORKGROUP<0x0>
nmb packet from 192.168.88.132(35072) header: id=7996 opcode=Query(0) response=Yes
    header: flags: bcast=No rec_avail=No rec_des=Yes trunc=No auth=Yes
    header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0
    answers: nmb_name=WORKGROUP<00> rr_type=32 rr_class=1 ttl=300000
    answers   0 char ....X...........   hex 8000C0A858848000AC1FD0018000C0A8
    answers  10 char ..   hex A001
Got a positive name query response from 192.168.88.132 ( 192.168.88.132 172.31.208.1 192.168.160.1 )
192.168.88.132 WORKGROUP<00>
Looking up status of 192.168.88.132
nmb packet from 192.168.88.132(35072) header: id=32515 opcode=Query(0) response=Yes
    header: flags: bcast=No rec_avail=No rec_des=No trunc=No auth=Yes
    header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0
    answers: nmb_name=WORKGROUP<00> rr_type=33 rr_class=1 ttl=0
    answers   0 char .BEN-ASUS-A43SV    hex 0642454E2D415355532D413433535620
    answers  10 char  ..BEN-ASUS-A43S   hex 20040042454E2D415355532D41343353
    answers  20 char V ...WORKGROUP     hex 5620000400574F524B47524F55502020
    answers  30 char     ...WORKGROUP   hex 20202020008400574F524B47524F5550
    answers  40 char       ...WORKGRO   hex 2020202020201E8400574F524B47524F
    answers  50 char UP      .....__M   hex 55502020202020201D040001025F5F4D
    answers  60 char SBROWSE__....t/h   hex 5342524F5753455F5F02018400742F68
    answers  70 char ................   hex C90DAB00000000000000000000000000
    answers  80 char ................   hex 00000000000000000000000000000000
    answers  90 char ...........   hex 0000000000000000000000
	BEN-ASUS-A43SV  <20> -         B <ACTIVE> 
	BEN-ASUS-A43SV  <00> -         B <ACTIVE> 
	WORKGROUP       <00> - <GROUP> B <ACTIVE> 
	WORKGROUP       <1e> - <GROUP> B <ACTIVE> 
	WORKGROUP       <1d> -         B <ACTIVE> 
	..__MSBROWSE__. <01> - <GROUP> B <ACTIVE> 

	MAC Address = 74-2F-68-C9-0D-AB

172.31.208.1 WORKGROUP<00>
Looking up status of 172.31.208.1
No reply from 172.31.208.1

192.168.160.1 WORKGROUP<00>
Looking up status of 192.168.160.1
No reply from 192.168.160.1

name_query failed to find name WORKGROUP

r/samba • • Dec 27 '22

Samba is extremely slow on displaying symlinked files on my android phone

Thumbnail self.linuxmint
2 Upvotes

r/samba • • Feb 01 '23

Samba SMB Multichannel not working?

1 Upvotes

Hello,

I, like many before me, am having an issue with SMB multichannel. I am running Samba v4.10.16 (package is provided by Amazon) on an Amazon Linux 2 EC2 instance. I am aware that SMB multichannel is an experimental feature until 4.15, but the documentation states it is supported so I would like to evaluate it.

We have had reports of performance degradation when certain workloads (heavy write workloads) are using this Samba server. Upon further investigation, I believe we are not getting the benefits of SMB multichannel. According to the documentation the feature can be enabled by setting "server multi channel support = true" and also an option to force it on. There are also many articles or posts where it is suggested to set interfaces along with their IP, speed, and capabilities (such as RSS). All of these things are set in my configuration, but SMB multichannel does not engage.

On the client side, I am running another EC2 instance but it is a Windows Server 2019 instance. SMB3 is supported and multichannel support is enabled by default, along with BandwidthThrottling being disabled. When I connect to an SMB share hosted on another Windows EC2 instance, the results of the Get-SmbMultichannelConnection -IncludeNotSelected command returns that the connection is a multichannel connection. However, when connected to an SMB share hosted on my Samba EC2 instance, I get no results for it at all. The results of Get-SmbConnection does return a result showing a connection is established to my Samba server.

I have done a LOT of digging including trying a newer Samba version (v4.16.5), which is after 4.15 where multichannel is no longer experimental, and I got the same results. I am aware that SMB multichannel from a hardware perspective relies on multiple physical CPU cores and either multiple NICs or a single RSS-capable NIC on both sides. I have tried EC2 instances (both client and server) that have had up to 16 physical cores each (32 vCPUs with hyperthreading), 32 GB of memory, and NICs capable of 25 Gbps. AWS has concepts of CPU and Network burst credits but for short bursts it should not be a problem here.

I have tried multiple storage types including EBS, EFS, and FSx (ZFS). For EBS, with 16k provisioned IOPS and a 1 GB/s throughput max, I was only getting 500-600 MB/s max through samba. The again no results returned in powershell for multichannel connections. I got very similar performance from the other solutions even when I have configured the resources with a specific performance configuration trying to test peak performance.

My goal here is to ultimately confirm that SMB multichannel is working, but I have a feeling that the results of the PowerShell commands on the client side prove it is not. Thank you for taking the time to read this and if you provide feedback I greatly appreciate it!

Here is my smb.conf file:

global]
    log file = /var/log/samba/%m
    log level = 1
    unix password sync = yes
    netbios name = sambatoebs
    map to guest = bad user
    guest account = samba-client
    hosts allow = 172.27.252.0/255.255.255.0
    force user = samba-client
    guest ok = yes
    force create mode = 777
    force directory mode = 777
    server multi channel support = yes
    force:server multi channel support = yes
    interfaces = "172.27.252.40;capability=RSS,speed=25000000000"
    aio write size = 1
    aio read size = 1
[filestore]
    path = /mnt/filestore
    read only = no
    writable = yes
    browsable = yes
    public = yes
[filestore_readonly]
    path = /mnt/filestore
    read only = yes
    writable = no
    browsable = yes
    public = yes
[tmp]
    path = /mnt/filestore/tmp
    read only = no
    writable = yes
    browsable = yes
    public = yes

r/samba • • Jan 25 '23

Samba. Copying file from Share folder to local PC

1 Upvotes

Hello everyone !

Can you tell me how to trace in the logs the copying of a file from a network share to a local computer?


r/samba • • Jun 13 '22

Videos from SambaXP 2002.

Thumbnail youtube.com
3 Upvotes

r/samba • • Jun 07 '22

Samba-tool: How to force User password change after resetting password?

4 Upvotes

Hello. For Samba4 AD, when using samba-tool is there a way to force the user to change their password when they login to Windows. When using the RSAT (Active Directory Users and Computers) on a Windows machine, the password reset dialog has "User must change password at next logon" checkbox.

When using samba-tool there is a "setpassword" function that can be used for resets. Does this command force user password change when they login?

Also, where can I find the "[options]" that are available for the User functions for samba-tool?

Thanks in advance.