Link to home
Start Free TrialLog in
Avatar of RayRider
RayRider

asked on

Samba Problem on Ubuntu 12.04 LTS

Can anyone help me with Samba not reinstalling properly? The "root problem" is when I decided to uninstall it completely because I was having configuration problems and felt I had lost control of the smb.conf file. I "totally" removed everything with apt-get, plus I deleted all the /etc/samba configuration files thinking that when I reinstalled it with "apt-get", everything would come back like a fresh install. Well, BIG SUPRISE! no configuration was installed. the "/etc/samba" directory stayed empty. I have not figured out how to get the Samba installation back with all its parts like "nmbd" and "winbind" and who knows what else I need. It would not even write log files in "/var/log/samba" until I manually created the log directory.

I finally got Samba to run by copying the config files from another server. The probem is, I don't know enough about "nmbd" and "winbind" to manually configure those, and possible other things missing. I see the binary of nmbd in "/usr/sbin".

I have uninstalled and reinstalled several times. But, it will not set the system up like it did before I installed it the first time. How do I make the system "clean" so the install process will install all the pieces including the configuration and startups in init.d? I cannot find enough details to configure this manually, and how to make the "start", "stop" and "restart" process work either.
ASKER CERTIFIED SOLUTION
Avatar of l4ncel0t
l4ncel0t

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of l4ncel0t
l4ncel0t

you can also do the same thing with dpkg -P yourpaquet
to remove configurations files.
deleting  files manually is not enought because dpkg is not aware of this and then
it thinks configurations files are still here.
Avatar of RayRider

ASKER

@l4ncel0t:

That did it as far as getting nmbd to run. I copied my "/etc/samba" configuration files to a backup directory. However, I noticed that "apt-get install" did NOT overwrite them with a default configuration as my original files were still there.

I began this journey to get a new, default smb.conf file to try to get to some starting point in order to get the samba server to behave like I hope to get it to do. I am needing a bit of learning to figure out the "daunting" complexity of samba in reference to its interaction with Windows XP, Windows Vista and Windows 7.

What I really need is a good example configuration to allow me to do the following:

create several shares that allow (1) users on Windows (Vista/7, primarily) to connect to the share and be able to read and write files. And (2), have a "Public share" that allows any Windows user to read and write to this public share.

I am not sure exactly what is necessary in the smb.conf file. So far, I have followed several examples but I cannot write to the "public share" regardless what I have done.

I have invoked the "smbpasswd -L-a", entered a password, then "smbpasswd -L -e" to enable the user. I have a linux account with this user. I have setup their share directory with a ownership of the user name and a group by the name of "users". The "public" directory is set to an owner of "nobody" and a group of "users". The file permission of the user directories is 0755. The file permission of the public directory is 0770.

I have attached a shell copy of the removal - installation messages.
@14ncel0t:

Some reason I am not seeing the file I attached showing up. I hope I am not sending it multiple times. Here goes it again:
Samba-Remove-Install.txt
It's look like there is some problem between 12.04 and seven.
Can you try something like this article : samba
@l4ncel0t:

I believe I got it going the way I want it. The --purge option corrected the cleanup and reinstalled worked. I finally got the configuration worked out to accomplish my needs.

Thanks for you help!

RayRider