LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-14-2009, 03:03 PM   #16
AndeAnderson
Member
 
Registered: Feb 2005
Location: Pennsylvania
Distribution: Debian (maybe)
Posts: 237

Original Poster
Rep: Reputation: 30

camorri, I am in so much debt for your patience and willingness to help me. Thank You.

You are right about how it is strange that the ps aux | grep smdb command doesn't show the process as running.

I went into SWAT and reset all of the Shares settings to 'Default' and that has allowed me to see the Windows systems, but I cannot access their shares. When I try to access each of them I get a Dialog Box which says
Quote:
The folder contents could not be displayed.
I can ping all of the IPs from the Terminal Window. Just as an information input: the Apache Server appears to be working. If I type in the IP 127.198.11.7 in a browser I get the 'It works' reply.

From the Vista system I can see the 'homes' share. When I try to open it I am presented with a Logon Screen. The user ID and password are rejected and I receive a 'Logon unsuccessful' response. I tried both my User and Root access ID's and Passwords.

The XP Pro shows the 'homes' share. When I click on it a Logon Box opens with the default of Ahwebs/Guest in the user ID and the password is blank. Since I have not assigned a 'Guest' User and Password I am not sure how to get past this.

My Windows 2000 Pro system sees the 'homes' share but like the Vista system opens a Logon Box and none of my User IDs and Passwords work.

I just found an item in my smb.conf Global Section which doesn't make too much sense.

tesparm results:

Quote:
ahwebs:~# testparm
Load smb config files from /etc/samba/smb.conf
Can't find include file /home/samba/etc/smb.conf.
Global Section:

Quote:
[global]
workgroup = DAD
server string = %h server
security = SHARE
obey pam restrictions = Yes
passdb backend = tdbsam
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
usershare allow guests = Yes
usershare max shares = 99
panic action = /usr/share/samba/panic-action %d
include = /home/samba/etc/smb.conf.
That path does not exist. Should it have been created when Samba was installed?

Again, Thanks for your help.

Last edited by AndeAnderson; 10-14-2009 at 07:05 PM. Reason: New information.
 
Old 10-14-2009, 07:27 PM   #17
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,209

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
Quote:
I went into SWAT and reset all of the Shares settings to 'Default' and that has allowed me to see the Windows systems, but I cannot access their shares.
You only need samba client to access shares on a windoze system from linux. The server is not the problem here. The problem will be in the setup on the windoze system.

Right click on a shared folder in windoze. Click the share tab. How you got the shares set up? Sharing can be restricted to the machine users only, or shared across the network. Access can be read only or read - write.

Quote:
I can ping all of the IPs from the Terminal Window.
Good stuff. I only brought this up when it wasn't clear if you had IP connectivity. You do, so we will not pursue that any further.

Quote:
My Windows 2000 Pro system sees the 'homes' share but like the Vista system opens a Logon Box and none of my User IDs and Passwords work.
The server is sharing out the folders. It sounds like you have not used the command 'smbpasswd' to create samba users and passwords. This is necessary for you to log in. The linux user and password will not work with samba.

Now that you have swat installed, if you look in swat, there is documentation on the major commands. Have a look at smbpasswd. I think you will find an explanation on how to create users, and passwords. I made the samba user the same as the linux user, and the password the same. That way I have less to forget...

Give that a try, and let me know how you make out.

Quote:
I am in so much debt for your patience and willingness to help me. Thank You.
You are most welcome. It is a pleasure to help.
 
Old 10-15-2009, 11:23 AM   #18
AndeAnderson
Member
 
Registered: Feb 2005
Location: Pennsylvania
Distribution: Debian (maybe)
Posts: 237

Original Poster
Rep: Reputation: 30
I created the samba user and password, not sure how I overlooked doing that.

It did not make any difference. I have restarted the deamons and even the whole system and my Windows systems.

All of the Windows systems permissions are set to Everyone | Full Control for the whole hard drive and the Vista has it set to Public with Full Access. Since I am the only user I set it up for ease of access and file transfers.

I can see the Netbios names but can not access anything on them, either from or to my Linux system.

When I use SWAT to look at the Server Status I see:

Quote:
Active Connections
PID Client IP address Date Kill
4564 ahwebs ::ffff:192.168.11.7 Thu Oct 15 12:02:38 2009
4565 ahwebs ::ffff:127.0.1.1 Thu Oct 15 12:02:39 2009

Active Shares
Share User Group PID Client Date
IPC$ nobody nogroup 4564 ahwebs Thu Oct 15 12:02:38 2009
IPC$ nobody nogroup 4565 ahwebs Thu Oct 15 12:02:39 2009

Open Files
PID Sharing R/W Oplock File Date
My Linux system still restricts my XP Pro system to a 'Ahwebs/Guest' login user name. I haven't done anything with the 'Guest' account.

My Windows 2000 Pro Login to Ahwebs now gives the error message of 'Not enough storage is available to process this command.'

Thanks
 
Old 10-15-2009, 12:34 PM   #19
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,209

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
Quote:
I created the samba user and password, not sure how I overlooked doing that.

It did not make any difference.
Wow, I was sure this was the main problem. Many people overlook making samba users and passwords. Adding them usually fixes the 'can not log in' problems.

Quote:
include = /home/samba/etc/smb.conf.
I saw this question when I was looking back at your configuration. I can not find any reference in the samba documentation on what this does. The most common place to find a smb.conf file is in /etc/samba/
not in a home directory. I'm going to suggest you comment this line out. In a text editor, add at lease one # sign at the beginning of the line. Restart Samba, and try again. The # symbol just turns the line into a comment, and is now ignored when the file is read.

Quote:
usershare allow guests = Yes
This allows any guest user from any machine that can connect to samba to have access to the shares. If you change this value to no, you should stop getting problems with the XP system. Try that also and let me know.

I'm starting to run out of ideas. I'm going to ask you to post the entire /etc/samba/smb.conf file. If we can not get it going, I would like to load it here, and see what I can do to sort things out. The other approach would be to create a new simple smb.conf file and go from there.

Don't give up, this thing is not going to beat us...
 
Old 10-16-2009, 02:34 PM   #20
AndeAnderson
Member
 
Registered: Feb 2005
Location: Pennsylvania
Distribution: Debian (maybe)
Posts: 237

Original Poster
Rep: Reputation: 30
Here is the smb.conf as found in '/etc/samba/'. I even tried to create a New Share called 'Pictures' but it never showed up. It kept being listed by samba as unavailable.

Quote:
# Samba config file created using SWAT
# from UNKNOWN ()
# Date: 2009/10/15 11:55:53

[global]
workgroup = DAD
server string = %h server
security = SHARE
obey pam restrictions = Yes
passdb backend = tdbsam
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
usershare allow guests = No
usershare max shares = 99
panic action = /usr/share/samba/panic-action %d

[homes]
comment = AHwebs Home

[printers]
comment = All Printers
path = /var/spool/samba
read only = No
create mask = 0700
guest ok = Yes
printable = Yes
browseable = No

[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
read only = No
guest ok = Yes

[Pictures]
comment = Picture Album
read only = No
guest ok = Yes
available = No
 
Old 10-16-2009, 03:28 PM   #21
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,209

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
I will if I can get it to work on my system. I have XP and Vista, plus several linux systems. It will take a bit of time. I will let you know...
 
Old 10-20-2009, 09:13 AM   #22
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,209

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
I have made some changes to your smb.conf file, and had it working on my network. I can not test every aspect of your configuration. I did not test printing. I have verified the Homes share works. To get it working, I had to change the security = share to security = user. This makes sense. Security = share does not require passwords, and has no way of sorting out which home directory to connect to. The home definition is a general one, that will share any home directory to its user. So there has to be a way to know which home to share to which user. ( Hope that makes sense ).

I added some other lines, and you will see a comment ( I added after the added line(s)). There are a few things you will need to edit to match your system.

The 'pictures' directory will not share unless there is a valid 'path =' statement for the share. Also note, if the pictures directory is inside your /home/youruser/ it will share with the homes definition. If it is outside, edit the path to the directory. I left an example in the file. It is my Pictures directory, inside my home directory.

Give it a try, and let me know.

Quote:
# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2009/10/19 13:58:17

[global]
workgroup = CLIFFSHOME
#change the workgroup to match your network.
server string = %h server
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
ldap ssl = no
usershare max shares = 99
panic action = /usr/share/samba/panic-action %d
valid users = cliff
#I added a valid user, this can be a list of users.
hosts allow = 192.168.1.0/255.255.255.0
#edit the ipaddress to reflect your home network. The .0 allows all machines on subnet 192.168.1 to connect.

[homes]
comment = Home Directories
#I added the next two lines.
read only = No
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
read only = No
create mask = 0700
guest ok = Yes
printable = Yes
browseable = No

[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
read only = No
guest ok = Yes

[Pictures]
comment = Picture Album
path = /home/cliff/Pictures
#Your file did not have a valid path for Pictures. Edit the path to match your system. Check the case of the directory.
read only = No
guest ok = Yes
browseable = No
BTW, I changed the password program definition, the one you had would not work on my system.

Quote:
passwd program = /usr/bin/passwd %u
is what worked on my network...

Last edited by camorri; 10-20-2009 at 09:15 AM.
 
Old 10-22-2009, 06:13 PM   #23
AndeAnderson
Member
 
Registered: Feb 2005
Location: Pennsylvania
Distribution: Debian (maybe)
Posts: 237

Original Poster
Rep: Reputation: 30
Post

I copied your smb.conf and changed the workgroup and ip to my network settings. I am still unable to see, or allow access from, my other systems. I had a thought. Could my path statement be messed up? Or, could the samba path be pointing to the wrong smb.conf file?

I did a quick file search for smb.conf and found 16 such files. I'm not sure about uploading the screenshot to the forum. I will try to make it an attachment, so you can see what was found. The file name is smbsearch.png.

Thanks
Attached Thumbnails
Click image for larger version

Name:	smbsearch.png
Views:	8
Size:	106.8 KB
ID:	1787  
 
Old 10-22-2009, 07:01 PM   #24
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,209

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
As far as I know, without digging through the documentation, the file at /etc/samba/smb.conf is the file samba will load when started.

To eliminate the possibility that one of the other smb.conf files is loading, you could rename the other ones. The safe way is to add an extension. I did that on my test system so I could preserve my smb.conf file, and test your file. I did a 'cp smb.conf smb.conf.myfile' Then you can erase the smb.conf files you don't want to load.

Did you go into swat and make sure the setting for security was set to 'security = user' ? If it is still security = share, you will not see the homes ( home directories ).
 
Old 10-27-2009, 10:19 AM   #25
AndeAnderson
Member
 
Registered: Feb 2005
Location: Pennsylvania
Distribution: Debian (maybe)
Posts: 237

Original Poster
Rep: Reputation: 30
I just finished cleaning viruses out of three Windows XP Systems. It gets harder with each new virus.

Anyway, I am at a loss on how to proceed. If I decide to try to remove and re-install Samba, is there a specific sequence of what I should things in?

Everything I have looked at and tried has not worked. If this were a Windows System I would be looking at the Registry for errors and invalid path statements. Does Linux have such a central registry for its applications?

Thanks
 
Old 10-27-2009, 08:04 PM   #26
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,209

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
Quote:
Does Linux have such a central registry for its applications?
Absolutely not! I got away form windoze because of that kludge of ugly code.

Quote:
If I decide to try to remove and re-install Samba, is there a specific sequence of what I should things in?
What distro are you running? It has been a while since I looked at this thread, and I have forgotten.

If you have a package manager, use it to remove samba, and use it to install again. I suspect that will not have any effect. I posted what should work, ( as far as configuration ) and what I think needs modification for your system. There are usually three packages, samba-common, samba-client, and samba server. You need common and server for a server to work. Common and client for a client only. The exact names of the packages depend on the distro. The package manager will look after pre-req's. If you used the distros package manager to install originally, then I think the packages should still be O.K.

As far as I know, the correct packages and the configuration I posted should have done it.

If you decide to re-install, then start with a very basic configuration. There are tutorials on how to get started. Look under Networking on this board for simple tutorials.
 
Old 10-27-2009, 10:13 PM   #27
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
debian linux is a little different?

Reading through this thread, I was noticing a snag that I have run across in the last few weeks concerning a difference between ubunutu (debian based as I understand it) and in my case mandriva. Mandriva is what I use for my main samba server for the fact that I like to run mandriva on that system and it's the most capable of storing and serving a 40GB mp3 collection. "samba start/restart/stop" is the command to use on mandriva. I found this googling just now http://www.ubuntux.org/how-to-start-...e-command-line which gives
"etc/init.d/samba start" as the proper command which is what I have to do for ubuntu. It looked like the OP was using debian and according to that page this is common to debian based distros which is why I bring this up.

Also on my linux systems I manually edit /etc/hosts to include all of the hosts on my network. For whatever reason I would have problems with shares and hosts popping up and disappearing from the network browse. I'm sure there are a number of very slick ways to accomplish this, but typing 5 lines 5 times proved to be the fastest way to have all my hosts visible at all times.

I may have missed the boat on this thread, but these two pieces of the puzzle ended days of frustration for me.

Last edited by damgar; 10-28-2009 at 08:31 AM.
 
Old 10-28-2009, 06:58 AM   #28
AndeAnderson
Member
 
Registered: Feb 2005
Location: Pennsylvania
Distribution: Debian (maybe)
Posts: 237

Original Poster
Rep: Reputation: 30
Quote:
What distro are you running?
That is a good question and one I am unprepared to answer correctly. How do I find out what version/distro I am using? In Windows I only need to look at the properties and it lists what version of Windows I have installed. I can't seem to locate anything similar to that in my Debian.

Gnome tells me I have Gnome version 2.22.3.

But, all I know about my linux is it is Debian. I did a Net Install and did not see what was being installed. Years ago I worked with Sarge and Woody. How do I find out what is installed now?

Thanks
 
Old 10-28-2009, 08:12 AM   #29
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
Try "cat /etc/issue" without the quotes.
 
Old 10-28-2009, 08:43 AM   #30
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,209

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
You answered my question, it is Debain. I know it has a package manager that looks after pre-req's etc. So, use it to do any removal and restoring of code.

The comment above, on editing your /etc/hosts file, I had not given that any though, however, I have it set up for other reasons on my network. It will not hurt at all to set it up on your systems. You can find the 'hosts' file in windoze as well. Use the Find Files and DIrectories tool to locate the file.

Also interesting, I'm running Mandriva on my main system.

Quote:
cat /etc/issue
Mandriva Linux release 2009.1 (Official) for i586
Kernel 2.6.29.6-desktop-2mnb on a Dual-processor i686 / \l
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba whats wrong? bloodyscript Linux - Networking 4 07-20-2007 01:53 PM
Samba - My Config has something wrong surfduke Linux - Networking 3 09-25-2005 09:12 AM
Installed the wrong SAMBA packages.Now samba doesn't start Terrence Hinds Linux - Networking 3 10-11-2004 03:40 AM
Samba Reporting Wrong User xenic501 Linux - Networking 0 07-21-2004 11:35 AM
Samba, what am I doing wrong? zetsui Linux - Networking 17 09-06-2003 06:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:08 AM.

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