sudo apt-get install samba samba-client samba-common |
sudo apt-get install samba-common-bin |
sudo /etc/init.d/samba start |
crifan@crifan-ubuntu10:~$ ls /etc/init.d/smbd -l lrwxrwxrwx 1 root root 21 2011-04-01 20:02 /etc/init.d/smbd -> /lib/init/upstart-job |
crifan@crifan-ubuntu10:~$ sudo /etc/init.d/smbd start Rather than invoking init scripts through /etc/init.d, use the service(8) utility, e.g. service smbd start Since the script you are attempting to invoke has been converted to an Upstart job, you may also use the start(8) utility, e.g. start smbd |
crifan@crifan-ubuntu10:~$ sudo service smbd start start: Job is already running: smbd |
sudo apt-get install system-config-samba |
系统 -> 系统管理 -> 用户和组,新建一个tq2440的用户。
crifan@crifan-ubuntu10:~$ ifconfig eth0 Link encap:以太网 硬件地址 44:87:fc:0d:2a:10 inet 地址:192.168.1.101 广播:192.168.1.255 掩码:255.255.255.0 inet6 地址: fe80::4687:fcff:fe0d:2a10/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 跃点数:1 接收数据包:65620 错误:0 丢弃:0 过载:0 帧数:0 发送数据包:54996 错误:0 丢弃:0 过载:0 载波:0 碰撞:0 发送队列长度:1000 接收字节:76313596 (76.3 MB) 发送字节:6204077 (6.2 MB) 中断:43 基本地址:0x2000 lo Link encap:本地环回 inet 地址:127.0.0.1 掩码:255.0.0.0 inet6 地址: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 跃点数:1 接收数据包:66 错误:0 丢弃:0 过载:0 帧数:0 发送数据包:66 错误:0 丢弃:0 过载:0 载波:0 碰撞:0 发送队列长度:0 接收字节:7882 (7.8 KB) 发送字节:7882 (7.8 KB) wlan0 Link encap:以太网 硬件地址 48:5d:60:1d:85:9c UP BROADCAST MULTICAST MTU:1500 跃点数:1 接收数据包:0 错误:0 丢弃:0 过载:0 帧数:0 发送数据包:0 错误:0 丢弃:0 过载:0 载波:0 碰撞:0 发送队列长度:1000 接收字节:0 (0.0 B) 发送字节:0 (0.0 B) 中断:16 Memory:f8078000-f8078100 |
ps -aux |
crifan@crifan-ubuntu10:~$ ps -aux | grep smbd Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html root 5426 0.0 0.2 16704 4160 ? Ss 20:02 0:00 smbd -F root 5439 0.0 0.0 16704 1236 ? S 20:02 0:00 smbd -F root 6527 0.0 0.2 17012 4176 ? S 20:23 0:00 smbd -F crifan 6873 0.0 0.0 5628 764 pts/0 S+ 20:55 0:00 grep --color=auto smbd |
crifan@crifan-ubuntu10:~$ ps -aux | grep nmbd Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html crifan 6880 0.0 0.0 5628 764 pts/0 S+ 20:56 0:00 grep --color=auto nmbd |