請教一個有關samba的笨問題 - Linux

Tristan Cohan avatar
By Tristan Cohan
at 2012-02-01T11:14

Table of Contents


我的版本是CentOS 6.2
想要用samba做印表機分享給win7的功能

查尋之後發現我已經安裝了samba套件

[root@roan0516 init.d]# rpm -qa | grep samba
samba-common-3.5.10-114.el6.x86_64
samba-winbind-clients-3.5.10-114.el6.x86_64
samba-client-3.5.10-114.el6.x86_64
samba4-libs-4.0.0-23.alpha11.el6.x86_64

在更改設定之後想要重新啟動samba卻發現一個問題

[root@roan0516 Packages]# /etc/init.d/smb restart
bash: /etc/init.d/smb: 沒有此一檔案或目錄

??

開啟資料夾一看發現

[root@roan0516 init.d]# ls
abrt-ccpp functions mdmonitor quota_nld spice-vdagentd
abrtd haldaemon messagebus rdisc sshd
abrt-oops halt netconsole restorecond sssd
acpid httpd netfs rngd sysstat
atd ip6tables network rpcbind udev-post
auditd iptables NetworkManager rpcgssd wpa_supplicant
autofs irqbalance nfs rpcidmapd xinetd
avahi-daemon kdump nfslock rpcsvcgssd ypbind
bluetooth killall ntpd rsyslog yppasswdd
certmonger lvm2-monitor ntpdate sandbox ypserv
cpuspeed matahari-broker oddjobd saslauthd ypxfrd
crond matahari-host portreserve single
cups matahari-network postfix smartd
dnsmasq matahari-service psacct snmpd
firstboot matahari-sysconfig qpidd snmptrapd

居然沒有smb ?????


想請教這是出了什麼問題呢?

--
Tags: Linux

All Comments

Freda avatar
By Freda
at 2012-02-01T17:15
你應該是還沒有裝samba
Rachel avatar
By Rachel
at 2012-02-05T08:49
samba-3.5.10-114.el6.i686.rpm
http://ftp.isu.edu.tw/search.php
Hedy avatar
By Hedy
at 2012-02-08T06:13
先用 whereis smbd 確認是否真的有裝,單缺啟動shell很好搞
Dora avatar
By Dora
at 2012-02-08T19:23
有時 samba 是統合啟動在 inetd 裡, 詳見 /etc/inetd.conf

電腦間連不上………?

Olivia avatar
By Olivia
at 2012-01-31T14:56
目前電腦架構為 HUB┬──PC1(windows 7,IP:192.168.100.101,netmask 255.255.255.0) │ └──PC2(centos 6,IP:192.168.100.110,netmask 255.255.255.0) 前面 PC 2 安裝完畢以後在 if ...

有些function ctag找不到

Victoria avatar
By Victoria
at 2012-01-31T14:15
目前正在trace C51的code, 我使用ctags來建tag 可是我發現當function宣告成reentrant時, ctags就會找不到 如: void F() reentrant {} 我只要把reentrant拿掉, 重建tag, ctags就可以正常的找到F() 請問要怎樣才能讓ree ...

關於UEFI啟動的問題

James avatar
By James
at 2012-01-31T11:57
請問各位大大~~ 新的UEFI技術已經推行一陣子了 目的在於取代舊有的BIOS架構 好處是開發起來更有效率更有彈性之類的等等 其中一項技術的改革就是用GPT取代MBR 不再只有四個主分割區的限制 也讓硬碟的支援突破2TB 在Fedora 16 開始已經全部都使用GPT來取代MBR了 因此有個小 ...

Ubuntu 10.04要怎麼裝JDK??

Carolina Franco avatar
By Carolina Franco
at 2012-01-31T00:39
http://source.android.com/source/initializing.html Installing the JDK The Sun JDK is no longer in Ubuntuand#39;s main package repository. In order to down ...

我有一台Linux老桌電,但不知道如何使用

Skylar Davis avatar
By Skylar Davis
at 2012-01-30T22:29
如題, 我從爸爸的公司接收到一台電腦, 我老爸號稱, 公司花了六位數去買, 不過那是10年前買的, 因為很久沒使用,這台電腦有的救嘛? 裡面是灌LINUX系統的。 加上這台電腦的銀幕已經丟了,所以我完全不能檢查一些基本的狀況。 如果有得救又有人願意跟我約個時間, 幫我看看這台古董, 我願意 ...