jibranilyas
asked on
Samba setup on Ubuntu and Winxp
I created a new folder in my home directory and shared it so that i can access that from my windows machine, but everytime i would try to access the share i.e. //ipaddress/myshare,,, i got a prompt to enter username and password. I would enter the ubuntu username and password, but it kept giving me MYDOMAIN\username on the windows logon popup. So i replaced MYDOMAIN with the hostname of ubuntu machine but it still didn't work
So i uninstalled samba by typing
apt-get remove samba
it stopped the samba daemon and uninstalled successfully
i then tried to install it again by typing
apt-get install samba, it gave me the following error
Selecting previously deselected package samba.
(Reading database ... 60508 files and directories currently installed.)
Unpacking samba (from .../samba_3.0.14a-6ubuntu1 _i386.deb) ...
Setting up samba (3.0.14a-6ubuntu1) ...
* Starting Samba daemons.. [fail]
invoke-rc.d: initscript samba, action "start" failed.
Can you tell us what i was doing wrong that i coudn't access the share?
Any help will be appreciated.
So i uninstalled samba by typing
apt-get remove samba
it stopped the samba daemon and uninstalled successfully
i then tried to install it again by typing
apt-get install samba, it gave me the following error
Selecting previously deselected package samba.
(Reading database ... 60508 files and directories currently installed.)
Unpacking samba (from .../samba_3.0.14a-6ubuntu1
Setting up samba (3.0.14a-6ubuntu1) ...
* Starting Samba daemons.. [fail]
invoke-rc.d: initscript samba, action "start" failed.
Can you tell us what i was doing wrong that i coudn't access the share?
Any help will be appreciated.
check is the service is running.
the smbd daemon:
ps -efa | grep -v grep | grep smbd
and the nmbd daemon:
ps -efa | grep -v grep | grep nmbd
if you get lines of output, then the service is running.
however, you need to configure samba in order to start it correctly and get benefit from it.
edit the file /etc/samba/smb.conf using the docs as guide:
http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/
the smbd daemon:
ps -efa | grep -v grep | grep smbd
and the nmbd daemon:
ps -efa | grep -v grep | grep nmbd
if you get lines of output, then the service is running.
however, you need to configure samba in order to start it correctly and get benefit from it.
edit the file /etc/samba/smb.conf using the docs as guide:
http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/
ASKER
thanks Redimido,
I ran those two commands, there was no output
user@ubuntu2:~# ps -efa | grep -v grep |grep smbd
user@ubuntu2:~# ps -efa | grep -v grep |grep nmbd
can i completely remove samba and reinstall it?
again, i have tried doing 'apt-get remove samba' and 'apt-get install samba' and that didn't make any difference.
It doesn't give me errors, but then i can't find samba executable and the configuration file in my computer
thanks,
I ran those two commands, there was no output
user@ubuntu2:~# ps -efa | grep -v grep |grep smbd
user@ubuntu2:~# ps -efa | grep -v grep |grep nmbd
can i completely remove samba and reinstall it?
again, i have tried doing 'apt-get remove samba' and 'apt-get install samba' and that didn't make any difference.
It doesn't give me errors, but then i can't find samba executable and the configuration file in my computer
thanks,
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
^ ya, i guess i missed the smbpasswd step in my initial configuration.
thanks
thanks
ASKER
i removed again and reinstalled.. now the apt-get doesn't give any failure warnings but samba isn't running
i just checked my /etc/samba - nothing there
i can't find any samba file in /etc/init.d