Hello all!
I have met inform as following. I see that no smb on init.d folder.
[root@maychu1 home]# /etc/rc.d/init.d/smb start
bash: /etc/rc.d/init.d/smb: No such file or directory
Pls help me how to have smb on init.d folder? Thank you.
Thank you & Best Regards,
------------------
Tran Van Hung
IT Department
REX HOTEL
141 Nguyen Hue Blvd, Ho Chi Minh City, Vietnam
Tel:(84-8)38292185 or (84-8)38293115
Fax:(84-8)38296536
Email: tvhungsg@yahoo.com.vn
Website:http//www.rexhotelvietnam.com
**
Cell Phone: 0983908262
YM and Skype: tvhungsg
On Wed, Jul 22, 2009 at 10:52 AM, Tran Van Hung tvhungsg@yahoo.com.vnwrote:
Hello all!
I have met inform as following. I see that no smb on init.d folder.
[root@maychu1 home]# /etc/rc.d/init.d/smb start bash: /etc/rc.d/init.d/smb: No such file or directory
Pls help me how to have smb on init.d folder? Thank you.
Thank you & Best Regards,
You probably do not have the samba package installed. You can do:
rpm -q samba
If no packages are listed, do:
yum -y install samba
This will install the samba package which contains the /etc/rc.d/init.d/smb script.
Instead of running the script directly, it's easier to do:
service smb start
Hi!
Thank for reply. But before I insalled samba by hand, as follow: -download samba source (.tar.gz) -unrar with tar command -build with ./configure -install with make
-Then I configure /etc/samba/smb.conf by vi. -Then I create users with password.
Issue I met when start samba as I wrote before:
root@maychu1 home]# /etc/rc.d/init.d/smb start
Pls!
Thank you & Best Regards,
------------------ Tran Van Hung IT Department REX HOTEL 141 Nguyen Hue Blvd, Ho Chi Minh City, Vietnam Tel:(84-8)38292185 or (84-8)38293115 Fax:(84-8)38296536 Email: tvhungsg@yahoo.com.vn Website:http//www.rexhotelvietnam.com ** Cell Phone: 0983908262 YM and Skype: tvhungsg
________________________________ From: Kwan Lowe kwan.lowe@gmail.com To: CentOS mailing list centos@centos.org Sent: Wednesday, July 22, 2009 10:09:55 PM Subject: Re: [CentOS] Need help on start samba
On Wed, Jul 22, 2009 at 10:52 AM, Tran Van Hung tvhungsg@yahoo.com.vn wrote:
Hello all!
I have met inform as following. I see that no smb on init.d folder.
[root@maychu1 home]# /etc/rc.d/init.d/smb start bash: /etc/rc.d/init.d/smb: No such file or directory
Pls help me how to have smb on init.d folder? Thank you.
Thank you & Best Regards,
You probably do not have the samba package installed. You can do:
rpm -q samba
If no packages are listed, do:
yum -y install samba
This will install the samba package which contains the /etc/rc.d/init.d/smb script.
Instead of running the script directly, it's easier to do:
service smb start
From: Tran Van Hung tvhungsg@yahoo.com.vn
Thank for reply. But before I insalled samba by hand, as follow: -download samba source (.tar.gz) -unrar with tar command -build with ./configure -install with make -Then I configure /etc/samba/smb.conf by vi. -Then I create users with password. Issue I met when start samba as I wrote before: root@maychu1 home]# /etc/rc.d/init.d/smb start
Are you sure 'make install' from samba sources does put an smb init script in /etc/rc.d/init.d/ by default? Did you look at the 'packaging/RHEL/makerpms.sh' script in the samba archive?
JD
On Thu, Jul 23, 2009 at 3:08 AM, Tran Van Hungtvhungsg@yahoo.com.vn wrote:
Hi!
Thank for reply. But before I insalled samba by hand, as follow: -download samba source (.tar.gz) -unrar with tar command -build with ./configure -install with make
-Then I configure /etc/samba/smb.conf by vi. -Then I create users with password.
Issue I met when start samba as I wrote before:
root@maychu1 home]# /etc/rc.d/init.d/smb start
Pls!
Thank you & Best Regards,
Tran Van Hung IT Department REX HOTEL 141 Nguyen Hue Blvd, Ho Chi Minh City, Vietnam Tel:(84-8)38292185 or (84-8)38293115 Fax:(84-8)38296536 Email: tvhungsg@yahoo.com.vn Website:http//www.rexhotelvietnam.com ** Cell Phone: 0983908262 YM and Skype: tvhungsg
From: Kwan Lowe kwan.lowe@gmail.com To: CentOS mailing list centos@centos.org Sent: Wednesday, July 22, 2009 10:09:55 PM Subject: Re: [CentOS] Need help on start samba
On Wed, Jul 22, 2009 at 10:52 AM, Tran Van Hung tvhungsg@yahoo.com.vn wrote:
Hello all!
I have met inform as following. I see that no smb on init.d folder.
[root@maychu1 home]# /etc/rc.d/init.d/smb start bash: /etc/rc.d/init.d/smb: No such file or directory
Pls help me how to have smb on init.d folder? Thank you.
Thank you & Best Regards,
You probably do not have the samba package installed. You can do:
rpm -q samba
If no packages are listed, do:
yum -y install samba
This will install the samba package which contains the /etc/rc.d/init.d/smb script.
Instead of running the script directly, it's easier to do:
service smb start
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Attached are RPM based /etc/init.d/smb and /etc/init.d/winbind which are the text based shell scripts used to do things such as: service smb start service smb stop service smb status
Of course, these are the RPM based ones which may have assumptions that are not compatible with your source based version unless you edit them. Let me know if it works. If you haven't done a "man chkconfig", you may want to do that as well.
Don't forget the testparm command which checks /etc/samba/smb.conf for proper syntax.
i believe the list blocks attachments, so i cced you on it directly.
on 7-23-2009 1:08 AM Tran Van Hung spake the following:
Hi!
Thank for reply. But before I insalled samba by hand, as follow: -download samba source (.tar.gz) -unrar with tar command -build with ./configure -install with make
-Then I configure /etc/samba/smb.conf by vi. -Then I create users with password.
Issue I met when start samba as I wrote before:
root@maychu1 home]# /etc/rc.d/init.d/smb start
Pls!
If you install source packages on a system managed by a package manager like RPM, you usually get to have problems like this. Do you really need a different version of samba than what comes with CentOS?
Tran Van Hung wrote:
Hello all!
I have met inform as following. I see that no smb on init.d folder.
[root@maychu1 home]# /etc/rc.d/init.d/smb start bash: /etc/rc.d/init.d/smb: No such file or directory
Pls help me how to have smb on init.d folder? Thank you.
Thank you & Best Regards,
Tran Van Hung IT Department REX HOTEL 141 Nguyen Hue Blvd, Ho Chi Minh City, Vietnam Tel:(84-8)38292185 or (84-8)38293115 Fax:(84-8)38296536 Email: tvhungsg@yahoo.com.vn Website:http//www.rexhotelvietnam.com ** Cell Phone: 0983908262 YM and Skype: tvhungsg
what rpm did you use for this install?
On Thu, 2009-07-23 at 11:29 +0100, Tom Brown wrote:
Tran Van Hung wrote:
Hello all!
I have met inform as following. I see that no smb on init.d folder.
[root@maychu1 home]# /etc/rc.d/init.d/smb start bash: /etc/rc.d/init.d/smb: No such file or directory
Pls help me how to have smb on init.d folder? Thank you.
Thank you & Best Regards,
Tran Van Hung IT Department REX HOTEL 141 Nguyen Hue Blvd, Ho Chi Minh City, Vietnam Tel:(84-8)38292185 or (84-8)38293115 Fax:(84-8)38296536 Email: tvhungsg@yahoo.com.vn Website:http//www.rexhotelvietnam.com ** Cell Phone: 0983908262 YM and Skype: tvhungsg
what rpm did you use for this install?
--- He did not use an rpm so he is on his on. He used the source tarball.
John
Why? IIRC, I think the term is .... ready for this .... *Open Source *
Further, the samba project has added a great deal more than what is in the standard RPMs.
On 7/23/09, Tom Brown tom@ng23.net wrote:
what rpm did you use for this install?
He did not use an rpm so he is on his on. He used the source tarball.
one would wonder why _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Hi,
First of all, please do not top post.
On Thu, Jul 23, 2009 at 10:52, Rob Townleyrob.townley@gmail.com wrote:
what rpm did you use for this install?
He did not use an rpm so he is on his on. He used the source tarball.
one would wonder why
Why? IIRC, I think the term is .... ready for this .... *Open Source *
Further, the samba project has added a great deal more than what is in the standard RPMs.
However, if you are using an *enterprise* distro, it usually means you want to use well tested and stable versions of packages. If you want cutting edge versions, you should probably go with Fedora or Ubuntu. If you want to install from source, you should probably go with Gentoo.
But more to the point, if you install software from source, you can't expect to go to the CentOS mailing lists and ask for help. In this specific case, the OP should either uninstall Samba from source and install the CentOS RPMs, in which case the mailing list would be able to help him, or should go to the Samba website and mailing lists asking for help instead.
In this specific case, it's clear he doesn't know what he is doing and how to fix a fairly simple problem, in which case I expect him to find other problems just after this one is fixed, not to mention that he will probably not be able to update and keep his versions current, applying security patches, etc., so I think he would be better off by uninstalling his source build and installing the CentOS RPMs instead, in which case the experience should be smoother and, while it would still require some skills, those would be simpler than the ones required when building and maintaining from source yourself.
HTH, Filipe
On Thu, 2009-07-23 at 11:01 -0400, Filipe Brandenburger wrote:
Hi,
First of all, please do not top post.
On Thu, Jul 23, 2009 at 10:52, Rob Townleyrob.townley@gmail.com wrote:
what rpm did you use for this install?
He did not use an rpm so he is on his on. He used the source tarball.
one would wonder why
Why? IIRC, I think the term is .... ready for this .... *Open Source *
Further, the samba project has added a great deal more than what is in the standard RPMs.
However, if you are using an *enterprise* distro, it usually means you want to use well tested and stable versions of packages. If you want cutting edge versions, you should probably go with Fedora or Ubuntu. If you want to install from source, you should probably go with Gentoo.
But more to the point, if you install software from source, you can't expect to go to the CentOS mailing lists and ask for help. In this specific case, the OP should either uninstall Samba from source and install the CentOS RPMs, in which case the mailing list would be able to help him, or should go to the Samba website and mailing lists asking for help instead.
In this specific case, it's clear he doesn't know what he is doing and how to fix a fairly simple problem, in which case I expect him to find other problems just after this one is fixed, not to mention that he will probably not be able to update and keep his versions current, applying security patches, etc., so I think he would be better off by uninstalling his source build and installing the CentOS RPMs instead, in which case the experience should be smoother and, while it would still require some skills, those would be simpler than the ones required when building and maintaining from source yourself.
HTH, Filipe
--- Could not have said it any better...:-)
John
Rob Townley wrote:
Why? IIRC, I think the term is .... ready for this .... *Open Source *
Further, the samba project has added a great deal more than what is in the standard RPMs.
and that roll-your-own open source comes with the standard 2-part warranty. you break it, you get to keep both pieces.
if he's working with samba sources and building his own samba, he'd be better off discussing this with the samba mailling list than the centos mailling list.
the samba distribution from centos comes with the file he's missing. a generic source-built samba likely will require you to write your own starting script.
----- Original Message ----
From: Tom Brown tom@ng23.net To: CentOS mailing list centos@centos.org Sent: Thursday, July 23, 2009 8:59:42 AM Subject: Re: [CentOS] Need help on start samba
what rpm did you use for this install?
He did not use an rpm so he is on his on. He used the source tarball.
one would wonder why _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
well they are trying to reinvent the wheel that is why!