install samba for Fedora10

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: 

你可能感兴趣的:(install samba for Fedora10)