小默

install samba for Fedora10

install
error: can't create transaction lock on /var/lib/rpm/__db.000 (没有那个文件或目录)
su




Error: Missing Dependency: perl(Convert::ASN1) is needed by package samba-3.0.33-3.7.el5.i386 (base)
[root@colorfulgreen Packages]# rpm -ivh perl-Convert-ASN1-0.21-3.fc9.noarch.rpm 


[root@colorfulgreen Packages]# rpm -ivh samba*.rpm

warning: samba-3.2.4-0.22.fc10.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4ebfc273
//samba not in "\ect\init.d\" at this time,then...
rpm -ivh samba-3.2.4-0.22.fc10.i386.rpm


Add Shares
edit the config file:
[root@colorfulgreen Packages]# sudo gedit /etc/samba/smb.conf

Add shares at the end of the file:
[netshare]
    path 
= /home/green/netshare
    
public = yes
    writable 
= yes 

Add Users
[root@colorfulgreen Packages]# sudo smbpasswd -a green
New SMB password:
Retype 
new SMB password:
Added user green.

Start Samba Service
[root@colorfulgreen /]# /etc/init.d/smb start
启动 SMB 服务:                                            [确定]

//enable samba in both runlevel 3 and 5.This will make sure to run Samba each time Fedora boots.
[root@colorfulgreen /]# /sbin/chkconfig --list smb
smb                
0:关闭    1:关闭    2:关闭    3:关闭    4:关闭    5:关闭    6:关闭
[root@colorfulgreen 
/]# /sbin/chkconfig --level 35 smb on
[root@colorfulgreen 
/]# /sbin/chkconfig --list smb
smb                
0:关闭    1:关闭    2:关闭    3:启用    4:关闭    5:启用    6:关闭

//Restart Samba for every change to users/pws or 'smb.conf'
[root@colorfulgreen /]# /etc/init.d/smb restart
关闭 SMB 服务:                                            [确定]
启动 SMB 服务:                                            [确定]

Managing Security for Samba
Firewall:default block Samba,allow access...
[root@colorfulgreen /]# system-config-firewall
SELinux:restrict different parts of Samba...
[root@colorfulgreen /]# system-config-selinux



[root@colorfulgreen green]# smbclient -192.168.1.101 -U administrator
Enter administrator
's password: 

posted on 2010-03-23 16:08 小默 阅读(420) 评论(0)  编辑 收藏 引用 所属分类: Tools


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理


导航

统计

留言簿(13)

随笔分类(287)

随笔档案(289)

漏洞

搜索

积分与排名

最新评论

阅读排行榜