LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > antiX / MX Linux
User Name
Password
antiX / MX Linux This forum is for the discussion of antiX and MX Linux.

Notices


Reply
  Search this Thread
Old 09-17-2021, 06:27 PM   #1
louieleon
Member
 
Registered: Jul 2021
Posts: 42

Rep: Reputation: Disabled
network mx linux 19.4 and win 7


im trying to network mx and win 7 using samba. in windows i see mx but only the printer connected to mx.

in mx i see nothing. in samba ive added my user and password but get the following error when click apply

error chowning directory:/var/samba/profiles/john

any help appreciated
 
Old 09-17-2021, 09:36 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 23,473

Rep: Reputation: 5089Reputation: 5089Reputation: 5089Reputation: 5089Reputation: 5089Reputation: 5089Reputation: 5089Reputation: 5089Reputation: 5089Reputation: 5089Reputation: 5089
Quote:
in samba ive added my user and password but get the following error when click apply
error chowning directory:/var/samba/profiles/john
I don't play with MX much so I am not sure what or where you added your username and password for samba access. The old fashioned way is via the command line i.e.
smbpasswd -a username

You must be root or run the command via sudo.

The active samba shares in the smb.conf file are the home directories which are not viewable by default. If you look at the /etc/samba/smb.conf file in the homes share you will see the directive
browsable = no. To access your home directory you can enter smb://localhost/username in the URL box of the MX file browser. You should be prompted for user name and password (You can not use anonymous).
Once you connect you should see your home directory and the share name on the left side.

In Windows 7 you should be able to connect by mapping a drive in the file browser and by entering the IP address and MX username.
 
Old 09-18-2021, 02:12 PM   #3
louieleon
Member
 
Registered: Jul 2021
Posts: 42

Original Poster
Rep: Reputation: Disabled
thanks. i configured samba through sma4k and now get this
Retrieving the list of available domains failed:Usage: [-?fMRSTrAV] [-?|--help] [--usage] [-B|--broadcast=BROADCAST-ADDRESS]
[-f|--flags] [-U|--unicast=STRING] [-M|--master-browser]
[-R|--recursion] [-S|--status] [-T|--translate] [-r|--root-port]
[-A|--lookup-by-ip] [-d|--debuglevel=DEBUGLEVEL]
[-s|--configfile=CONFIGFILE] [-l|--log-basename=LOGFILEBASE]
[-V|--version] [--option=name=value]
[-O|--socket-options=SOCKETOPTIONS] [-n|--netbiosname=NETBIOSNAME]
[-W|--workgroup=WORKGROUP] [-i|--scope=SCOPE] ...
 
Old 09-18-2021, 02:59 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 23,473

Rep: Reputation: 5089Reputation: 5089Reputation: 5089Reputation: 5089Reputation: 5089Reputation: 5089Reputation: 5089Reputation: 5089Reputation: 5089Reputation: 5089Reputation: 5089
Interesting, the posted output looks like the help message from the smbclient command but from a much older version. I just installed MX 19.4 as a virtual machine.

Just for more information to see the shares from your MX system run the command
smbclient -L localhost
(enter your user's password)

To see the shares from your Windows 7 system run the command
smbclient -L Win_7_IP_address
( Just press enter to see the browsable shares. )

I have not played with smb4k in a long time. The version in the repository MX 19.4 is 2.1.1 versus the latest from their website which is 3x. Some latest features like dns-sd or WS-Discovery do not appear to be available with the older versions which limits its browsing capability without netbios. My debian 9 system can find the MX VM but not the reverse.

I prefer the file browser but use which ever you like but you will need to manually enter the shares names and passwords as far as I can tell.
 
Old 09-18-2021, 03:02 PM   #5
louieleon
Member
 
Registered: Jul 2021
Posts: 42

Original Poster
Rep: Reputation: Disabled
$ smbclient -L localhost
WARNING: The "null passwords" option is deprecated
Unknown parameter encountered: "password level"
Ignoring unknown parameter "password level"
WARNING: The "client schannel" option is deprecated
WARNING: The "server schannel" option is deprecated
Unknown parameter encountered: "update encrypted"
Ignoring unknown parameter "update encrypted"
WARNING: The "idmap uid" option is deprecated
WARNING: The "idmap gid" option is deprecated
Unknown parameter encountered: "winbind trusted domains only"
Ignoring unknown parameter "winbind trusted domains only"
Unable to initialize messaging context
WARNING: The "null passwords" option is deprecated
Unknown parameter encountered: "password level"
Ignoring unknown parameter "password level"
WARNING: The "client schannel" option is deprecated
WARNING: The "server schannel" option is deprecated
Unknown parameter encountered: "update encrypted"
Ignoring unknown parameter "update encrypted"
WARNING: The "idmap uid" option is deprecated
WARNING: The "idmap gid" option is deprecated
Unknown parameter encountered: "winbind trusted domains only"
Ignoring unknown parameter "winbind trusted domains only"
do_connect: Connection to localhost failed (Error NT_STATUS_UNSUCCESSFUL)
john@mx:~
$
 
Old 09-18-2021, 03:11 PM   #6
louieleon
Member
 
Registered: Jul 2021
Posts: 42

Original Poster
Rep: Reputation: Disabled
get nothing on the win7 machine
just shows sites referring to finding my ip address
 
Old 09-18-2021, 03:35 PM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 23,473

Rep: Reputation: 5089Reputation: 5089Reputation: 5089Reputation: 5089Reputation: 5089Reputation: 5089Reputation: 5089Reputation: 5089Reputation: 5089Reputation: 5089Reputation: 5089
I assume that smb4k has modified the smb.conf file which is causing the errors. Hopefully it made some sort of backup so the original can be restored.

What information if any did smbclient output when trying to connect to Windows 7?
 
Old 09-18-2021, 03:43 PM   #8
louieleon
Member
 
Registered: Jul 2021
Posts: 42

Original Poster
Rep: Reputation: Disabled
just what i copy n pasted.
got a warning box with the info
 
Old 09-21-2021, 01:39 PM   #9
louieleon
Member
 
Registered: Jul 2021
Posts: 42

Original Poster
Rep: Reputation: Disabled
so now samba on my mx linux system is asking for unc address?

in windows 7 pc in type net use in cmd and get the following
there are no entries in the list
 
Old 09-21-2021, 04:17 PM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 23,473

Rep: Reputation: 5089Reputation: 5089Reputation: 5089Reputation: 5089Reputation: 5089Reputation: 5089Reputation: 5089Reputation: 5089Reputation: 5089Reputation: 5089Reputation: 5089
I assume it is a typo but to see other computers the command is net view.

The reason there are not any entries is because the more recent versions of samba are using SMB versions 2+ and netbios browsing only happens with version SMB 1.0. You should still be able to see browsable shares using the command

net view \\MX_hostname

You should be able to manually map a drive from the file browser via the map network drive. Click on Computer in the left pane of the file browser which should show Map network drive button at the top.

Its not recommended but to enable smb version 1 in MX you need to add the following commands to your /etc/samba/smb.conf file global section and restart samba.

client min protocol = NT1
server min protocol = NT1

The UNC is in the form of //hostname/share_name

I am suspicious of the smb.conf file being messed up from the posted error messages make sure that samba is actually running.

sudo service smbd start
sudo service nmbd start
 
Old 09-21-2021, 05:53 PM   #11
louieleon
Member
 
Registered: Jul 2021
Posts: 42

Original Poster
Rep: Reputation: Disabled
ok added the lines you suggested to smb.conf

started samba
still nothing.
i agree, i think its corrupt somewhere
is it possible to remove samba and install a clean version?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Sponsored development is a win-win for users and developers LXer Syndicated Linux News 0 11-23-2017 10:24 PM
LXer: Win the desktop, and you will win the server LXer Syndicated Linux News 0 04-18-2008 09:00 AM
WOL lin->win fails, win->win works? c0uchm0nster Linux - Networking 1 01-07-2007 11:33 PM
how would you install win xp, win vista(beta), and slackware with a tri boot? whited Linux - General 3 07-02-2006 11:12 AM
Setting up Samba with SuSe 8.1 and Win 2K/Win XP Pro crstine Linux - Networking 1 12-11-2002 06:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > antiX / MX Linux

All times are GMT -5. The time now is 04:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration