smb记录

来源:互联网 发布:张利国java 编辑:程序博客网 时间:2024/06/07 15:13
[root@localhost 桌面]# !get
getsebool -a | grep samba
[root@localhost 桌面]#getsebool -a | grep samba
samba_create_home_dirs --> off
samba_domain_controller --> off
samba_enable_home_dirs --> off
samba_export_all_ro --> off
samba_export_all_rw --> on
samba_run_unconfined --> off
samba_share_fusefs --> off
samba_share_nfs --> off
use_samba_home_dirs --> off
virt_use_samba --> off
[root@localhost 桌面]# set
set                  setkeycodes          setserial
setarch              setleds              setsid
setcap               setmetamode          setsysfont
seteio               setpci               setterm
setenforce           setquota             setup
setfacl              setregdomain         setup-nsssysinit.sh
setfattr             setroubleshootd      setxkbmap
setfiles             setscheduler         
setfont              setsebool            
[root@localhost 桌面]# setsebool use_samba_home_dirs 1
[root@localhost 桌面]# setsebool samba_create_home_dirs 1
[root@localhost 桌面]# setsebool samba_enable_home_dirs 1
[root@localhost 桌面]# !get
getsebool -a | grep samba
samba_create_home_dirs --> on
samba_domain_controller --> off
samba_enable_home_dirs --> on
samba_export_all_ro --> off
samba_export_all_rw --> on
samba_run_unconfined --> off
samba_share_fusefs --> off
samba_share_nfs --> off
use_samba_home_dirs --> on
virt_use_samba --> off
[root@localhost 桌面]# service smb restart
关闭 SMB 服务:                                            [确定]
启动 SMB 服务:                                            [确定]



         chmod -R 777 /share/
  625  chcon -R -t public_content_rw_t /share/
  627  iptables -F
  628  setsebool samba_export_all_rw on

t
  631  useradd zk
  632  passwd
  633  smbpasswd -a zk
  634  service smb restart


smb://192.168.XXX.XXX   //linux文件浏览器 或 网页浏览器

\\192.168.XXX.XXX     //windows
<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
阅读(102) | 评论(0) | 转发(0) |
0

上一篇:SELinux概述

下一篇:samba 设置 网络共享

相关热门文章
  • A sample .exrc file for vi e...
  • IBM System p5 服务器 HACMP ...
  • 游标的特征
  • DB2 9 应用开发(733 考试)认...
  • busybox的httpd使用CGI脚本(Bu...
  • linux dhcp peizhi roc
  • 关于Unix文件的软链接
  • 求教这个命令什么意思,我是新...
  • sed -e "/grep/d" 是什么意思...
  • 谁能够帮我解决LINUX 2.6 10...
给主人留下些什么吧!~~
原创粉丝点击