I must of done it wrong for Samba
I am really stuck. I was attempting to re-install samba, after using my Synaptics Package Manager to remove it, when I got the strangest error.
It tells me: Quote:
If not, then how do I install the missing files? Thanks |
Quote:
Were you installing the packages as root user? Root is the only user with write access to the locations the files go to. |
Quote:
/etc/samba should contain the configuration file(s). Possibly if you have edited /etc/samba/smb.conf the permissions are not allowing the package manager to move/remove it, so you want to have a look if anything is really there, or not. Here is an approximate list of the files installed by samba (this isn't for your distro -its SuSE- and there will be minor differences) Code:
/etc/init.d/nmb |
Quote:
|
Sorry,
I should have been clearer. I should have said '/etc/samba/'. the only file in that folder was dhcp.conf. The error message only mentioned the '/etc/samba/smb.conf' file as missing. There is an smb.conf in '/usr/share/samba/'. Apparently, the installer just ignores this one. Any suggestions on how to actually get samba to re-install? Thanks It works now. I copied the smb.conf file from '/usr/share/samba/' to '/etc/samba/'. That allowed samba to accomplish the installation. Now, all I have to do is get it set-up to share files and folders with my Windows computers. Thanks to all for their help. |
Try Try Again
I don't understand what has happened. I just uninstalled Samba and immediately re-installed it.
Now, it can see my Windows Network. I've been trying to do that for quite a few days now, with no success. Yet, now it decided to work. :rolleyes: The only one I can't access is my XP Pro box. But, I understand that is more involved. And, I still can not see any shared folders/files on the Linux system. One step at a time will succeed in the end. |
Just a suggestion. To verify the correctness of your smb.conf file, there is a command called 'testparm'. It will validate the syntax of the config file. You can run it from the command line.
Understand, it will make sure you don't have glaring errors that stop samba form starting up. It can not validate if you have things defined at all, ie if you leave out a share, it will not tell you. It just makes sure the .conf file can load and at least start up. Here is what it looks like when it works. Quote:
Hope this helps while you are working on adding the shares... |
Samba just quit?
It's me again. On Friday evening Samba had started working and I could interact with my windows computers from my Linux system. But, not from Windows to the Linux. That was OK because I just needed to be able to transfer from the Linux to the Windows and access the Printers.
Tonight, I came back my Linux computer and Samba had quit working??? I tried a re-install and no luck. Samba just will not interface with my network again. The only change I did was to add a new user. This is making absolutely no sense. :scratch: Here are the results of my 'testparm': Quote:
Thanks |
Quote:
What did you do when you tried to re-install? Please test your smb.conf file with testparm. Adding a user should have no effect on the two dameons that run, smbd and nmbd. Find out if the dameons are running. Here is how. From a terminal, run the commands, one at a time, 'ps aux | grep smbd' and 'ps aux | grep nmbd'. Here is what it looks like on my system. Quote:
Since you may have hosed up somthing trying to re-install, what you did there is important. Let me know... |
I posted the results of the 'testparm' in the previous post.
Here it is: Quote:
workgroup = ******'. I still have not found any documentation for the actual Debian smb.conf sections. Most documentation deals with a Network with a Domain Server. There is very little about a plain Peer-To-Peer Workgroup LAN. Would Samba still work with Debian if I tried a Generic Samba smb.conf? The commands you specified for checking the daemons returned: Quote:
How would the daemons get started? I don't understand how I could hose anything by completely removing the application and re-installing it. Once Samba started working I was afraid to change anything. I'll be glad once I manage to get a grip on the acronyms and naming conventions of Linux. :Pengy: |
Your dameons are not running. If you look at my results, there are 3 lines for smbd, I ran the command as a regular user. The line with 'grep' in it is my process greping for smbd. The other lines are the process running as with root permissions. Similar for nmbd.
This is the only result you got, so neither daemon is running. Testparm doesn't appear to be complaining about your smn.conf file, although that does not mean there is not an issue with it. Is your workgroup name really ****** or have you removed it for posting purposes. I don't think the name you give your workgroup is all that significant, as long as it matches on each machine you want belonging to each work group. I would however not use a string of * for a workgroup name. I installed Webmin to run and maintain samba. It has a nice graphical interface, seen through your web browser. You can see through it if the daemons are running, stop, start and restart them if you are making changes to the /etc/smb.conf file. See this tutorial for a basic setup. It shows you how to manually start samba without restarting your system. http://www.linuxquestions.org/linux/...k_File_Sharing Quote:
Quote:
Quote:
Here are two : Quote:
Quote:
|
I installed Webmin and looked around my system.
Samba shows as installed and is listed as part of the start-up process. However, after the system finishes booting up the Samba Service is not running. No matter what command I use, Samba will not start. I have tried a every combination of commands I could find to allow me to stop, start, or restart Samba. Everyone of them give me the same error: Quote:
Quote:
What should I do next to try and get Samba working? Thanks |
I opened a konsole, did a 'su' and entered the root password. Then I ran these commands. They work.
Quote:
So, to find out what path is set for a user ( including root ) in a konsole run the command 'echo $PATH' ( without the quotes, and watch the case, case matters in linux ). Here is what I see for user root. Quote:
My system displays an OK when a command for samba works, and a FAILED when it does not. Webmin. Webmin on my system has 'Restart Samba Server' and 'Stop Samba Server' buttons. They will restart and stop a working server. I also have installed Swat. It gives you even more control and status displays. On the status panel for swat, it displays the current status of the dameons, and supplies more buttons for control. It also shows active connections on shares. Swat also installs a lot of documentation. There is a lot to read about samba. What I think you need to do is have a look through the logs I mentioned earlier. There has to be a reason the daemons are not starting. If they start, and fail, there will be information in the logs. If you are confused by the messages, post what you think might me relevant, and we'll have a look. Let me know... |
SWAT works a lot better than Webmin, for me.
SWAT shows that the smbd and nmbd daemons are running. I can restart them. My default path shows as: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin What will be my next step to resolving the issue of Samba not working? :scratch: Thanks |
That is interesting. When you ran the ps aux | grep smdb command, the daemons were not running. ps shows running processes, and is a reliable way of determining if something is running.
Swat is a very nice tool, and makes administering the system easier. I would bet you restarted the system between the ps command and installing swat. That would try to start up samba. With the two daemons running, what do you see from a windoze machine? Go to Network Neighborhood and see if you can see the linux system. If not, then we need to back up, and find out if you have IP connectivity between the two machines. To do a ping, you open a command console on either system. Then you enter the command 'ping ipaddressoftheothermachine' example. ping 192.168.0.1 This will produce some output. Here is what a successful ping looks like. Quote:
Let me know... |
All times are GMT -5. The time now is 03:35 PM. |