How do I share folders? - Solved

You have a problem with Salix? Post here and we'll do what we can to help.
User avatar
sqlpython
Donor
Posts: 310
Joined: 13. Aug 2010, 04:53
Location: Ct. USA

Re: How do I share folders?

Post by sqlpython »

Paul
Somehow I am not communicating my point clearly.. Apologies.. :oops:
Read my last post more carefully.
I point out that you were entering the command

Code: Select all

smbclient "\\\localhost\Downloads" -U paul
as a root user
Don't Do That ;)
Enter the command as the User Paul not root.
So once again
Exit root
Become the User Paul and

Code: Select all

smbclient "\\\localhost\Downloads" -U paul
as the User Paul and then enter your Samba password.

Post Back
Slackware ( Manjaro ) Salix, AntiX, Bunsen, Calculate
User avatar
sqlpython
Donor
Posts: 310
Joined: 13. Aug 2010, 04:53
Location: Ct. USA

Re: How do I share folders?

Post by sqlpython »

BTW
NT_STATUS_BAD_NETWORK_NAME

Error can originate for reasons such as incorrect path, or incorrect assigning
of users in /etc/samba/smb.conf Or incorrect User.

We know your path is correct.
We know that no incorrect users are assigned in your smb.conf
..but you did the use the incorrect user and a non samba User and Group member ROOT..

let's see if the last post's instructions work and that is the Only problem.
Slackware ( Manjaro ) Salix, AntiX, Bunsen, Calculate
paul
Posts: 51
Joined: 25. Jan 2013, 11:15

Re: How do I share folders?

Post by paul »

Hello sqlpython, thanks for that, I recall having tried both ways.
But anyhow here is the terminal dump:
-----------------------------------------------------------------
paul[~]$ smbclient "\\\localhost\Downloads" -U paul
Enter paul's password:
Domain=[MSHOME] OS=[Unix] Server=[Samba 3.6.8]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
paul[~]$
----------------------------------------------------------------
Just to elucidate:
domain is MSHOME
network name is merlin
this machine's network name is gandalf
I wonder whether there needs to be a setting somewhere that provides the network name.
I also wonder whether there is still a remnant of the previous name of the machine namely dark star lurking about.
And of course there could have been a syntax error, that got half corrected somewhere because I have set this up multiple times now.
Anyway, I have printed off and tried your advice on my Linux desktop that I could not access on my Windows network, the Ubuntu machine I mentioned earlier, and that works a treat now. So obviously your advice is rock solid. There is just something weird going with this Salix machine. Paul.
User avatar
sqlpython
Donor
Posts: 310
Joined: 13. Aug 2010, 04:53
Location: Ct. USA

Re: How do I share folders?

Post by sqlpython »

Just to elucidate:
domain is MSHOME
machine network name is merlin
this machine's network name is gandalf
I don't see any references in the command
smbclient -L
referencing the merlin machine.
You can add a machine as well as user to samba like so.
Maybe you might want to add merlin and then check connections again
...Add machine ( dollar sign required $)

Code: Select all

# adduser merlin$
Next then add merlin to samba giving it a samba password
Remember that SMB is an authenticated protocol, which means you must supply a correct username and password r to use the service. So, Next add the machine to samba with smbpasswd to authenticate the machine
Adding a machine name to the /etc/samba/private/smbpasswd file.

Code: Select all

# smbpasswd -a -m merlin
I wonder whether there needs to be a setting somewhere that provides the network name.
I also wonder whether there is still a remnant of the previous name of the machine namely dark star lurking about.
Don't think so but the thinking is one reason that I suggest adding the machine merlin above.
Anyway, I have printed off and tried your advice on my Linux desktop that I could not access on my Windows network, the Ubuntu machine I mentioned earlier, and that works a treat now.
That is very good to hear. To me that indicates that your SAMBA set up is correct and in Sync with your Network.

So obviously your advice is rock solid.
Again good to know. As I keep a library of Linux How Tos over the last twenty years.
Whenever necessary I will alter/tweak them with feedback from working systems like yours.
So it is important to me to know that the How To continues to work.
There is just something weird going with this Salix machine. Paul.
Apparently, but probably not Salix Centric as I have used this setup and My brother also for Salix 13.1, 13.37 & 14 and all worked fine. So, I don't see this as a Salix issue.
Must be some alteration that you have applied along the way intentionally or not intentionally.
Slackware ( Manjaro ) Salix, AntiX, Bunsen, Calculate
paul
Posts: 51
Joined: 25. Jan 2013, 11:15

Re: How do I share folders?

Post by paul »

Hello sqlpython,
This is what I got:
paul[~]$ adduser merlin$
bash: adduser: command not found
paul[~]$ smbclient -L
Usage: smbclient [-?|--help] [--usage] [-R|--name-resolve NAME-RESOLVE-ORDER]
[-M|--message HOST] [-I|--ip-address IP] [-E|--stderr] [-L|--list HOST]
[-m|--max-protocol LEVEL] [-T|--tar <c|x>IXFqgbNan] [-D|--directory DIR]
[-c|--command STRING] [-b|--send-buffer BYTES] [-p|--port PORT]
[-g|--grepable] [-B|--browse] [-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] [-U|--user USERNAME]
[-N|--no-pass] [-k|--kerberos] [-A|--authentication-file FILE]
[-S|--signing on|off|required] [-P|--machine-pass] [-e|--encrypt]
[-C|--use-ccache] service <password>
paul[~]$
I tried adduser in the root, but it came up with a list of questions I could not answer so I thought a reboot was in order as I could not exit the process in any other way.
Paul.
User avatar
sqlpython
Donor
Posts: 310
Joined: 13. Aug 2010, 04:53
Location: Ct. USA

Re: How do I share folders?

Post by sqlpython »

I thought you were beginning to get comfortable with commands and so I begin to shorten my instructions.
Sorry, I will assume nothing. :oops:
*************************************
Remember this in a previous post
smbclient -L 192.168.1.6 .. shows SAMBA sees and uses the ipaddress...................
So you enter as user PAUL With that Machine's IPADDRESS
Check you ipaddress first as if you have your ipaddress assigned DHCP and it is not Static it may change.
*********************************

Code: Select all

adduser merlin$
Must be done as root user

If you begin to believe that you are not getting to the core of your Sharing issue and tired of grappling with the Command Line.
I might suggest KDE and it's file manager Dolphin.
You may not be a KDE fan but the kdenetwork package and kdefilesharing plugin for Dolphin turns this event into a GUI exercise rather then command line.
Gnome probably has something similar for Nautilas but I am not a Gnome experienced user.
My practiced desktop are Xfce4, OpenBox, Fluxbox and for many years KDE.

Just a thought as you seem to be struggling with this one machine.
KDEbase is available to install and You Can have multiple Desktop Environments on One Install.
Read this link.
http://www.ghacks.net/2010/02/18/easy-f ... n-kde-4-4/
Slackware ( Manjaro ) Salix, AntiX, Bunsen, Calculate
paul
Posts: 51
Joined: 25. Jan 2013, 11:15

Re: How do I share folders?

Post by paul »

Hello sqlpython,
Using the command line effectively requires a reasonable understanding of what is going on, and I must confess that I am not anywhere near that point.
Anyhow, it appears that the user "merlin" is already in the system, despite the fact that I aborted setting it up because I could not work out what information was required.
So this is what showed up:
-------------------------------------------------------------------------------------------------------
paul[~]$ smbclient -L 192.168.1.6
Enter paul's password:
Domain=[MSHOME] OS=[Unix] Server=[Samba 3.6.8]

Sharename Type Comment
--------- ---- -------
homes Disk Home Directories
print$ Disk Printer Drivers
PUBLIC Disk
IPC$ IPC IPC Service (gandalf server (Salix))
HP-Deskjet-930c Printer HP Deskjet 930c
HP-LaserJet-M2727-MFP Printer HP LaserJet M2727 MFP
paul Disk Home Directories
Domain=[MSHOME] OS=[Unix] Server=[Samba 3.6.8]

Server Comment
--------- -------
GANDALF gandalf server (Salix)

Workgroup Master
--------- -------
MSHOME
paul[~]$ su
Password:
root[paul]# adduser merlin$

- User 'merlin$' already exists; please choose another
Login name for new user []:
---------------------------------------------------------------------------------------------------------------
So is there a config file that can be edited to put matters straight?
I understand the different Linux systems have different facilities, but I think one at the time is more than enough for me. Once I can set up and handle the basics in one, I may be inclined to experiment with others. I doubt that a friendlier interface is going to solve my ignorance. Paul.
User avatar
sqlpython
Donor
Posts: 310
Joined: 13. Aug 2010, 04:53
Location: Ct. USA

Re: How do I share folders?

Post by sqlpython »

- User 'merlin$' already exists; please choose another
Login name for new user []:
You will not be happy with my next question.
If merlin already exists then what is it's password?
Without the password, samba user merlin is useless.
Might have to delete merlin then add merlin again if you don't have a password to use it.
-
--------------------------------------------------------------------------------------------------------------
So is there a config file that can be edited to put matters straight?
Not really, passwords are encrypted.
I understand the different Linux systems have different facilities, but I think one at the time is more than enough for me. Once I can set up and handle the basics in one, I may be inclined to experiment with others. I doubt that a friendlier interface is going to solve my ignorance. Paul
The more we practice the less ignorant we become of procedure. You learned enough to make your shares in Ubuntu (applause)
As for an Easier GUI interface, getting Samba to work is first priority. Understanding Samba is second.
..Just like driving a car. Learn to drive before you understand the internal combustion engine, torque converter and planetary gear set.. ;)
Might be the way to go.

Anyway, I hope something lights this Salix/Samba share you in the next step or two.
If not we are going to have to publish soon.. :lol:
Just one thing, I insist on a 60/40 % split on royalties with the 60 going to me. . :D

Seriously, seems that from the return info in your posts that all is in order with the Share Salix machine in question.
What I would like to see is from the command line a successful (as in my example below)

Code: Select all

[paul]# smbclient "\\\localhost\Downloads" -U paul
Enter root's password: *********
<smb>:\ 
<smb>:\  ls
and then see your Dir listing appear.

I am a bit confused regarding two attempts to connect with a share, one as root and one as paul.
Your first post clearly says your share is
"/home/paul/Download"
which should be connected with the command

Code: Select all

[paul]# smbclient "\\\localhost\home\paul\Downloads" -U paul
yet you attempt

Code: Select all

root[paul]# smbclient "\\\localhost\Downloads" -U root
IS the last attempt above a Second shared directory?
Slackware ( Manjaro ) Salix, AntiX, Bunsen, Calculate
paul
Posts: 51
Joined: 25. Jan 2013, 11:15

Re: How do I share folders?

Post by paul »

Hello sqlpython, you are right, it was all screwed up; there was no password.
Used the "Users and Groups" utility to delete "merlin$" and that seems to have fixed that aspect.
But the error persist, although it does not appear to affect how the network works; it is just strange.
You can see below some attempts I have made.
-----------------------------------------------------------------------------------------------------------------------------------
paul[~]$ smbclient "\\\localhost\Downloads" -U paul
Enter paul's password:
Domain=[MSHOME] OS=[Unix] Server=[Samba 3.6.8]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
paul[~]$ su
Password:
root[paul]# smbclient "\\\localhost\Downloads" -U paul
Enter paul's password:
Domain=[MSHOME] OS=[Unix] Server=[Samba 3.6.8]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
root[paul]# exit
exit
paul[~]$ smbclient "\\\localhost\home\paul\Downloads" -U paul
Enter paul's password:
Domain=[MSHOME] OS=[Unix] Server=[Samba 3.6.8]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
paul[~]$ su
Password:
root[paul]# smbclient "\\\localhost\home\paul\Downloads" -U paul
Enter paul's password:
Domain=[MSHOME] OS=[Unix] Server=[Samba 3.6.8]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
root[paul]#
------------------------------------------------------------------------------------------------------------------
Yet if I do this on the Ubuntu machine, it works as you say it should.
So no doubt there are some parameters that should not be there; either inadvertently introduced by me or due to a bug coupled with something unexpected I may have done. I either case, as you say, this is getting to be a saga of biblical proportions; future generations may base a whole culture on it.
But I really do appreciate the help you have given; people have been knighted for less.
It is fine with me to continue, I am curious what is going on; but it is equally OK with me to declare the matter solved, as far as I am concerned my original problem has been addressed and dealt with, and there are probably others out there that need your assistance; although if someone cannot get their network problems solved through reading through this post, they really have a problem. So again, thank you. Paul.
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: How do I share folders?

Post by mimosa »

One for the wiki? A digested read?
Post Reply