SUSE Linux上简单配置Samba服务器
2013-05-20 19:31 夏洛克·福尔摩斯 阅读(886) 评论(0) 编辑 收藏 举报 SUSE Linux上简单配置Samba服务器 2011-01-15 20:30:36
分类: LINUX
注:本文转自互联网,版权归原作者所有
lmhosts secrets.tdb smb.conf smbfstab smbpasswd smbusers
xuzhou:~ # mkdir /share
xuzhou:/ # useradd -m smb
xuzhou:/ # passwd smb
Changing password for smb.
New password:
Re-enter new password:
Password changed
xuzhou:/ # smbpasswd -a smb
New SMB password:
Retype new SMB password:
Added user smb.
xuzhou:/ # passwd smb
Changing password for smb.
New password:
Re-enter new password:
Password changed
xuzhou:/ # smbpasswd -a smb
New SMB password:
Retype new SMB password:
Added user smb.
xuzhou:/ # chown smb share/
xuzhou:/ # chmod 744 share/
xuzhou:/ # chmod 744 share/
[share]
comment = this is a test
path = /share
writable = yes --可写
read only = yes --只读
browsable = yes --浏览
valid users = smb --缺省用户
guest ok = no --匿名访问
comment = this is a test
path = /share
writable = yes --可写
read only = yes --只读
browsable = yes --浏览
valid users = smb --缺省用户
guest ok = no --匿名访问
xuzhou:/etc/init.d # ./smb start
Starting Samba SMB daemon done
xuzhou:/etc/init.d # ./smb status
Checking for Samba SMB daemon running
Starting Samba SMB daemon done
xuzhou:/etc/init.d # ./smb status
Checking for Samba SMB daemon running
下一步完成之后,就会在网上邻居里看见多了一个共享的图标,这就是刚才建立的share文件夹
[share]
comment = this is a test
path = /share
writable = yes
read only = no --将之前允许只读改为no
browsable = yes
valid users = smb
guest ok = no
comment = this is a test
path = /share
writable = yes
read only = no --将之前允许只读改为no
browsable = yes
valid users = smb
guest ok = no
xuzhou:/etc/samba # cd ..
xuzhou:/etc # cd init.d/
xuzhou:/etc/init.d # ./smb restart
Shutting down Samba SMB daemon done
Starting Samba SMB daemon done
xuzhou:/etc/init.d #
xuzhou:/etc # cd init.d/
xuzhou:/etc/init.d # ./smb restart
Shutting down Samba SMB daemon done
Starting Samba SMB daemon done
13、回到smb服务器,在/share目录下查看,会发现多了刚才windows上新建立的文档
技术成就现在,眼光着看未来。