samba

CTDB Samba failover not highly available

大城市里の小女人 提交于 2019-12-06 12:21:36
问题 My Setup 3 nodes running ceph + cephfs 2 of these nodes running CTDB & Samba 1 client (not one of the 3 servers) It is a Lab setup, so only one nic per server=node, one subnet as well as all Ceph components plus Samba on the same servers. I'm aware, that this is not the way to go. The problem I want to host a clustered Samba file share on top of Ceph with ctdb. I followed the CTDB documentation (https://wiki.samba.org/index.php/CTDB_and_Clustered_Samba#Configuring_Clusters_with_CTDB) and

samba

≡放荡痞女 提交于 2019-12-06 12:14:49
简介   Samba最大的功能可用于Linux与windows系统直接的文件共享和打印共享,Samba既可用于windows与Linux之间的文件共享,也可用于Linux与Linux之间的资源共享,由于NFS的出现,因而 Samba更多用在Linux与windows之间的数据共享上面。 Samba服务器可实现如下功能: WINS和DNS服务; 网络浏览服务; Linux和Windows域之间的认证和授权; UNICODE字符集和域名映射; 满足CIFS协议的UNIX共享等。 samba服务的安装 1.环境准备 # uname -r 2.6.32-642.11.1.el6.x86_64 # uname -m x86_64 # cat /etc/redhat-release CentOS release 6.8 (Final) # getenforce Disabled #/etc/init.d/iptables stop 2、执行yum安装(需配置好yum源) yum install samba samba-client samba-swat -y 3、检查是否安装成功 #rpm -qa|grep samba (rpm -q samba) samba-common-3.6.23-36.el6_8.x86_64 samba-3.6.23-36.el6_8.x86_64 samba

1-1 ubuntu配置 --- ubuntu开发环境搭建

混江龙づ霸主 提交于 2019-12-06 10:53:28
这篇文章就没什么技术含量了,只是从官网拷过来后,稍加整理的...仅供我自己参考... 1-1 ubuntu配置 --- ubuntu开发环境搭建 1-3 ubuntu开发环境搭建 一.准备工作 ubuntu server安装好后,为保证速度,最好先替换源,并做一些简单配置 (一)源 #cp /etc/apt/sources.list /etc/apt/sources.list_old #vim /etc/apt/sources.list #香港 deb http://ftp.cuhk.edu.hk/pub/Linux/ubuntu/ precise main restricted deb-src http://ftp.cuhk.edu.hk/pub/Linux/ubuntu/ precise main restricted deb http://ftp.cuhk.edu.hk/pub/Linux/ubuntu/ precise-updates main restricted deb-src http://ftp.cuhk.edu.hk/pub/Linux/ubuntu/ precise-updates main restricted deb http://ftp.cuhk.edu.hk/pub/Linux/ubuntu/ precise universe deb-src http:

centos保存rpm到本地以及使用yum完全卸载软件包

扶醉桌前 提交于 2019-12-06 10:45:33
目录 保存安装的rpm到本地 方法一: 方法二(推荐): yum卸载软件包包括依赖 保存安装的rpm到本地 方法一: [root@ServerA ~]# vim /etc/yum.conf [main] cachedir=/var/cache/yum/$basearch/$releasever keepcache=0 #修改keepcache=1即可在yum安装时保存rpm包 debuglevel=2 logfile=/var/log/yum.log exactarch=1 obsoletes=1 gpgcheck=1 plugins=1 installonly_limit=5 bugtracker_url=http://bugs.centos.org/set_project.php?project_id=23&ref=http://bugs.centos.org/ bug_report_page.php?category=yum distroverpkg=centos-release 对于centos7来说可以在通过 ls /var/cache/yum/x86_64/7/ 查看所有下载记录 方法二(推荐): yum install -y 包名 -–downloadonly 下载RPM包而不安装 yum install -y 包名 -–downloadonly -

Attempt to access remote folder mounted with CIFS hangs when disconnected

百般思念 提交于 2019-12-06 09:11:24
问题 This question is an extension for that question. Yet again: I'm working under CentOS 6.0 and I have a remote win7 folder, mounted with: mount -t cifs //PC128/mnt /media/net -o "username=WORKGROUP\user,password=pwd,rw,noexec,soft,uid=user,gid=user" When remote folder is not available (e.g. network cable is pulled out) an attempt to access the remote folder locks an application I'm working on. At first I detected that QDir::exists() caused locking for 20-90 seconds (I still can't find out why

DBUS 记录

久未见 提交于 2019-12-06 08:09:51
problem?????????????????????????????????????????????????????????????????????????????????????? 1./autogen.sh [sbox-MYTARGET: ~/hello-world] > ./autogen.sh + aclocal + autoconf + autoheader + automake --add-missing --foreign + ./configure checking for a BSD-compatible install... /scratchbox/tools/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... configure: error: cannot run C compiled programs

CentOS安装和配置Samba服务器

跟風遠走 提交于 2019-12-06 07:40:13
CentOS7 详见 http://lintut.com/easy-samba-installation-on-rhel-centos-7/ http://www.unixmen.com/install-configure-samba-server-centos-7/ 简单来说我是这么做的 1. 安装服务并且chkconfig为自动启动 yum install samba samba-client samba-swat, chkconfig smb on 2. 配置conf文件 /etc/samba/smb.conf 设置security 为 share并且注释其邻近的下一行 tbsam [transwarp_shared] comment = Public Stuff path = /mnt/Samba_Shared public = yes writable = yes directory mask = 0777 force directory mode = 0777 directory security mask = 0777 force directory security mode = 0777 create mask = 0777 force create mode = 0777 security mask = 0777 force security mode =

how to get the user's domain information in samba

半城伤御伤魂 提交于 2019-12-06 07:35:13
BG:I have build samba in redhat linux, and share a folder, then access the share folder from windows. As the following shows, the connection information can be got via command "smbstatus" [root@Redhat6 pam.d]# smbstatus Samba version 3.5.10-125.el6 PID Username Group Machine ------------------------------------------------------------------- 8303 leon domain users win0832mc (::ffff:10.204.176.73) we can get the user, the group of domain, then how to get the domain information? Could please you help me on this? thanks. User name shown by smbstatus is the name of the local user, not the user

SAMBA服务

筅森魡賤 提交于 2019-12-06 06:56:14
本文简要介绍在Linux上部署samba服务,windows客户端可以访问此共享目录。 Linux作为服务端 1、安装环境 CentOS7.5 2、安装服务端 # yum -y install samba 3、配置共享目录 编辑主配置文件 # vim /etc/samba/smb.conf [shared] #shared是共享的名称 comment = zhangxu shared path = /data/ #实际共享目录的路径 read only = no 一部分参考配置参数 comment 注释信息 path 所共享的目录路径 public=yes 能否被匿名用户访问的共享,默认no,和guest ok类似 browsable 是否允许所有用户浏览此共享,默认为yes,no为隐藏 writable=yes 可以被所有用户读写,默认为no read only=no 和writable=yes等价,如与以上设置冲突, 放在后面的设置生效 ,默认只读 write list 三种形式:用户,@组名,+组名,用,分隔。如writable=no,列表中用户或组可读写,不在列表中用户只读 valid users 特定用户才能访问该共享,如为空,将允许所有用户,用户名之间用空格分隔 4、创建系统用户 samba的用户必须是Linux系统的用户,为了安全最好使用/sbin

CVE-2017-7494复现 Samba远程代码执行

时光总嘲笑我的痴心妄想 提交于 2019-12-06 06:34:24
Samba是在Linux和Unix系统上实现Smb协议的一个免费软件,由服务器及客户端程序构成,Samba服务对应的TCP端口有139、445等。Smb一般作为文件共享服务器,专门提供Linux与Windows之间的传送文件服务。 Samba 3.5之后到4.4.14、4.5.10、4.6.4中间的所有版本存在严重的远程代码执行漏洞,攻击者可以利用该漏洞在目标服务器上执行任意代码。 首先查看被攻击系统的samba版本为3.6.9-151说明存在远程代码执行漏洞 在/etc/ld.so.conf文件添加samba动态链接库,保存退出 加载动态链接库:# ldconfig 看看是否成功 在smb配置文件/etc/samba/smb.conf结尾加入,保存退出 关闭防火墙运行samba服务 漏洞形成是在/source3/rpc_server/srv_pipe.c的is_known_pipename函数中。只要通过拥有可写入权限的Samba用户,就可以提权到Samba所在服务器的root权限 1、使用nmap扫描实验机10.1.1.100开放端口发现139、445端口,samba服务需要开启445端口而139端口作为获取smb服务 查看exp文件 打开MSF 查找is_known_pipename模块 使用模块 use exploit/linux/samba/is_known