samba and NFS questions

samba and NFS questions

Postby voxel » Apr 13th, '23, 21:18

Hello :)

I have a NAS with Samba and NFS shares, if I can access and use the NFS shares without any problems it is impossible to access the wanted Samba shares at all !

I have CIFS utils installed, and I have declared the ip of the NAS in the 'Hosts' section in the mcc.

But still nothing appears in the Samba shares tab of the mcc :(
so I can't access any Samba share from my Mageia 8.1 computer.

I can access the samba shares on the NAS fine from another OS comptuter with a ridiculously small piece of software (some kilobytes)... and Mageia 8.1 Samba don't work ?!?
I can't use NFS on the other OS computer (way too old NFS software there) so I'm stuck with Samba to access the NAS with that computer :(

So I tried to set an NFS share on the same directory as the Samba one on the NAS, and can access it fine with mageia... BUT I see nothing that has been copied via samba in this directory! Why ???

How a super linux like Mageia cannot have a working Samba ???

I need help there on this, anyone have a viable solution to make that ?@#!? samba working on mageia 8.1 ?


Thanks by advance,

Jeff
voxel
 
Posts: 16
Joined: Jan 25th, '18, 18:19

Re: samba and NFS questions

Postby doktor5000 » Apr 14th, '23, 16:19

Hi there, it would be helpful if you could add the output as root of
Code: Select all
smbclient -L
against the IP or hostname of your NAS. Additionally, the model of your NAS would be helpful.

Generally you could also take a look at the hints in https://wiki.mageia.org/en/File_sharing_between_Linux_and_Windows_machines_with_Samba_(NAS)#Configuring_a_Samba_client_on_Mageia
Last edited by doktor5000 on Apr 15th, '23, 02:33, edited 1 time in total.
Reason: fixed link
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18067
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: samba and NFS questions

Postby voxel » Apr 14th, '23, 19:01

here is the result :(

Code: Select all
[root@localhost ~]# smbclient -L
Utilisation: smbclient [-?EgqBNPkV] [-?|--help] [--usage] [-M|--message=HOST] [-I|--ip-address=IP] [-E|--stderr]
        [-L|--list=HOST] [-T|--tar=<c|x>IXFvgbNan] [-D|--directory=DIR] [-c|--command=CHAINE]
        [-b|--send-buffer=BYTES] [-t|--timeout=SECONDS] [-p|--port=PORT] [-g|--grepable] [-q|--quiet]
        [-B|--browse] [-d|--debuglevel=DEBUGLEVEL] [--debug-stdout] [-s|--configfile=CONFIGFILE]
        [--option=name=value] [-l|--log-basename=LOGFILEBASE] [--leak-report] [--leak-report-full]
        [-R|--name-resolve=NAME-RESOLVE-ORDER] [-O|--socket-options=SOCKETOPTIONS]
        [-m|--max-protocol=MAXPROTOCOL] [-n|--netbiosname=NETBIOSNAME] [--netbios-scope=SCOPE]
        [-W|--workgroup=WORKGROUP] [--realm=REALM] [-U|--user=[DOMAIN/]USERNAME[%PASSWORD]] [-N|--no-pass]
        [--password=CHAINE] [--pw-nt-hash] [-A|--authentication-file=FILE] [-P|--machine-pass]
        [--simple-bind-dn=DN] [--use-kerberos=desired|required|off] [--use-krb5-ccache=CCACHE]
        [--use-winbind-ccache] [--client-protection=sign|encrypt|off] [-k|--kerberos] [-V|--version]
        [OPTIONS] service <password>


not very interresting ;)

The Nas is a TrueNAS Scale Home Made by me :)

TrueNAS Scale v22.12-1 on
Asus ROG Maximus IV Gene Z
i7-2600 @ 3.40GHz
16 GB ram
no graphic card it's in the CPU
Melanox 10 Gb/s fiber network card
SAS2308 HBA card in IT mode
Z2 pool with 6x10 TB + 1 spare
128 GB SSD Cache


added code tags ~Germ
voxel
 
Posts: 16
Joined: Jan 25th, '18, 18:19

Re: samba and NFS questions

Postby voxel » Apr 14th, '23, 19:04

thanks for the link, but it goes nowhere 'the page is blank'...

The problem is not between linux and windows, but between Mageia 8.1 linux and TrueNAS Scale Debian linux ;)
voxel
 
Posts: 16
Joined: Jan 25th, '18, 18:19

Re: samba and NFS questions

Postby voxel » Apr 14th, '23, 19:36

well, I've looked to see if there wasn't a smbclient demon to run and found nothing, so I've searched mcc and found SMB4K and tried it...
after a little fidling with its options and docs I am finally able to find and mount the samba share from the NAS ! yeepee !

but there is still nothing in the samba shares tab in the mcc, even when the smb share is mounted ???
voxel
 
Posts: 16
Joined: Jan 25th, '18, 18:19

Re: samba and NFS questions

Postby sturmvogel » Apr 14th, '23, 21:20

voxel wrote:here is the result :(

Code: Select all
[root@localhost ~]# smbclient -L


not very interresting ;)


You did not read what doktor5000 wrote.
doktor5000 wrote:Hi there, it would be helpful if you could add the output as root of
Code: Select all
smbclient -L

against the IP or hostname of your NAS. Additionally, the model of your NAS would be helpful.


That means you should enter something like that:
Code: Select all
smbclient -L //IP-of-your-NAS/
smbclient -L //DNS-Hostname-of-your-NAS/

You need to replace "IP-of-your-NAS" and/or "DNS-Hostname-of-your-NAS" against your actual values (just saying...)


In general you seem new to using a NAS, so you need to do some read up...

One of your basic threads: https://www.truenas.com/community/threa ... al.109008/
sturmvogel
 
Posts: 744
Joined: Jul 30th, '12, 00:39

Re: samba and NFS questions

Postby voxel » Apr 15th, '23, 00:44

ah ! oki, sorry for the error...

here is what I get :

Code: Select all
[root@localhost ~]# smbclient -L //192.168.1.58/
Password for [MYGROUP\root]:
Anonymous login successful
tree connect failed: NT_STATUS_ACCESS_DENIED
[root@localhost ~]#


so, seems something is missing but what ??? and why ?

BTW, yes it's my first NAS, and I never used samba on windoh! my other computer is an Amiga x-1000 and accessing samba shares is so simple with it :)
and I've read the TrueNAS docs on the apps, that's just that there was not what i've searched in that I've asked them.

BTW II, the question is about Mageia8, and why I can access thesamba shares with an amiga and not a linux like Mageia and why the mcc isn't doing its job without any error messages...
voxel
 
Posts: 16
Joined: Jan 25th, '18, 18:19


Return to Networking

Who is online

Users browsing this forum: No registered users and 1 guest