第一节、samba是干什么的?它有什么用? Samba(SMB是其缩写) 是一个网络服务器,它是Linux作为本地服务器最重要的一个服务,用于Linux和Windows共享文件之用;Samba可以用于Windows和 Linux之间的共享文件,也一样用于Linux和Linux之间的共享文件;不过对于Linux和Linux之间共享文件有更好的网络文件系统 NFS,NFS也是需要架设服务器的; 2、安装及服务操作命令 安装samba程序非常简单,使用rpm -q samba查看当前系统是否已经安装了samba软件。 如果没有那就进入光盘,rpm -ivh *samba*.rpm即可。 仔细说下安装的包: samba-common-3.0.28-0.el5.8 //samba服务器和客户端中的最基本文件 samba-3.0.28-0.el5.8 //samba服务器核心软件包 system-config-samba-1.2.39-1.el5 //samba图形配置界面 samba-client-3.0.28-0.el5.8 //samba客户端软件 启动、暂停和停止服务: /etc/init.d/smb start /etc/init.d/smb stop /etc/init.d/smb restart 或 service smb start service smb stop service smb restart 第二节、由最简单的一个例子说起,匿名用户可读可写的实现 第一步: 更改smb.conf 我们来实现一个最简单的功能,让所有用户可以读写一个Samba 服务器共享的一个文件夹;我们要改动一下smb.conf ;首先您要备份一下smb.conf文件; [root@localhost ~]# cd /etc/samba [root@localhost samba]# cp smb.conf smb.conf.bak [root@localhost samba]# vi smb.conf 或geidt smb.conf & 然后我们把下面这段写入smb.conf中: [global] workgroup = WORKGROUP netbios name = Liukai server string = Liukai's Samba Server security = share [test] path = /opt/test writeable = yes browseable = yes guest ok = yes 注解: [global]这段是全局配置,是必段写的。其中有如下的几行; workgroup 就是Windows中显示的工作组;在这里我设置的是WORKGROUP (用大写); netbios name 就是在Windows中显示出来的计算机名; server string 就是Samba服务器说明,可以自己来定义;这个不是什么重要的; security 这是验证和登录方式,这里我们用了share ;验证方式有好多种,这是其中一种;另外一种常用的是user的验证方式;如果用share呢,就是不用设置用户和密码了; [test] 这个在Windows中显示出来是共享的目录; path = 可以设置要共享的目录放在哪里; writeable 是否可写,这里我设置为可写; browseable 是否可以浏览,可以;可以浏览意味着,我们在工作组下能看到共享文件夹。如果您不想显示出来,那就设置为 browseable=no,guest ok 匿名用户以guest身份是登录; 第二步:建立相应目录并授权 [root@localhost ~]# mkdir -p /opt/test [root@localhost ~]# id nobody uid=99(nobody) gid=99(nobody) groups=99(nobody) [root@localhost ~]# chown -R nobody:nobody /opt/test 注释:关于授权nobody,我们先用id命令查看了nobody用户的信息,发现他的用户组也是nobody,我们要以这个为准。有些系统nobody用户组并非是nobody ; 第三步:启动服务器 第四步:访问Samba 服务器的共享; 1、在Linux 中您可以用下面的命令来访问; [root@localhost ~]# smbclient -L //liukai或 smbclient //192.168.0.94/test Password: 注:直接按回车 2、在Windows中,您可以用下面的办法来访问; \\liukai 或 \\192.168.0.94 3、说明:如果用了netbiosname,就可以用“\\主机名”来访问,如果没用netbiosname,就不能用主机名访问。 第三节、简单的密码验证服务器 修改smb.conf文件: security = user guest account = liukai encrypt passwords = yes smb passwd file = /etc/samba/smbpasswd 然后,建立一个新用户 useradd liukai passwd liukai 成功后,cat /etc/passwd | mksmbpasswd.sh > /etc/samba/smbpasswd smbpasswd -a liukai 这就成功地添加了一个smb用户。 重启服务,使用这个用户进行登录即可。
上传时间: 2015-05-13
上传用户:yangkang1192
贴出来和大家分享一下,文中借鉴来自互联网和书籍 硬件平台:康草EP2C5-V5 FPGA :EP2C5Q208C8N SDRAM:K4S641632k Flash:JS28F640 4位led,输入0时亮 1位按键,有上拉,平时为高电平状态 软件平台:Microsoft Windows xp Professional sp3(深度D版) Quartus II 10.0 SP1 Build: 262 Nios II IDE 10.0 SP1 Build: 262
上传时间: 2018-10-31
上传用户:残红一号
Introduction jSMPP is a java implementation (SMPP API) of the SMPP protocol (currently supports SMPP v3.4). It provides interfaces to communicate with a Message Center or an ESME (External Short Message Entity) and is able to handle traffic of 3000-5000 messages per second. jSMPP is not a high-level library. People looking for a quick way to get started with SMPP may be better of using an abstraction layer such as the Apache Camel SMPP component: http://camel.apache.org/smpp.html Travis-CI status: History The project started on Google Code: http://code.google.com/p/jsmpp/ It was maintained by uudashr on Github until 2013. It is now a community project maintained at http://jsmpp.org Release procedure mvn deploy -DperformRelease=true -Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ -DrepositoryId=sonatype-nexus-staging -Dgpg.passphrase=<yourpassphrase> log in here: https://oss.sonatype.org click the 'Staging Repositories' link select the repository and click close select the repository and click release License Copyright (C) 2007-2013, Nuruddin Ashr uudashr@gmail.com Copyright (C) 2012-2013, Denis Kostousov denis.kostousov@gmail.com Copyright (C) 2014, Daniel Pocock http://danielpocock.com Copyright (C) 2016, Pim Moerenhout pim.moerenhout@gmail.com This project is licensed under the Apache Software License 2.0.
上传时间: 2019-01-25
上传用户:dragon_longer
汉化PSP打包工具·完美汉化版下载。用于PSP游戏汉化使用
标签: PSPUMDGen 61205.01 Build 4.0 汉化 美化
上传时间: 2019-09-11
上传用户:women123456
Two important microwave remote sensors are the radar and the radiometer. There have been a number of books written on various aspects of radar, but there have been only a few written on microwave radiometers, especially on sub- jects of how to design and build radiometer systems. This book, which is the second edition of a book originally published in 1989, attempts to fill this void.
标签: Radiometer Microwave Systems
上传时间: 2020-05-23
上传用户:shancjb
The concept of smart cities emerged few years ago as a new vision for urban development that aims to integrate multiple information and communication technology (ICT) solutions in a secure fashion to manage a city’s assets. Modern ICT infrastructure and e-services should fuel sustainable growth and quality of life, enabled by a wise and participative management of natural resources to be ensured by citizens and government. The need to build smart cities became a requirement that relies on urban development that should take charge of the new infrastructures for smart cities (broadband infrastructures, wireless sensor networks, Internet-based networked applications, open data and open platforms) and provide various smart services and enablers in various domains including healthcare, energy, education, environmental management, transportation, mobility and public safety.
上传时间: 2020-05-25
上传用户:shancjb
Two important microwave remote sensors are the radar and the radiometer. There have been a number of books written on various aspects of radar, but there have been only a few written on microwave radiometers, especially on sub- jects of how to design and build radiometer systems. This book, which is the second edition of a book originally published in 1989, attempts to fill this void.
标签: Radiometer Microwave Analysis Systems Design
上传时间: 2020-05-26
上传用户:shancjb
While teaching classes on digital transmission and mobile communications for undergraduate and graduate students, I was wondering if it would be possible to write a book capable of giving them some insight about the practical meaning of the concepts, beyond the mathematics; the same insight that experience and repetitive contact with the subject are capable to construct; the insight that is capable of build- ing the bridge between the theory and how the theory manifests itself in practice.
标签: Transmission Digital
上传时间: 2020-05-27
上传用户:shancjb
This book describes how global mobile communication was made. It is written for those who want or need to know how this was achieved e.g.: † Young professionals who want to build their career on GSM and UMTS and need to understand the basics † Strategic and technical planners who want to drive the future GSM and UMTS develop- ment † Strategists who plan to repeat GSM’s success in the fourth generation † Academics, who want to understand and analyse the development of GSM and UMTS; † Activists in other large scale international communication projects who want to use experiences gained
标签: Creation UMTS GSM and The of
上传时间: 2020-05-27
上传用户:shancjb
Fixed-mobile.convergence.and.voice-data.networks.have.merged.next-gen- eration,.value-added.applications.and.integrated.multimedia.services,.com- bining. Web. browsing,. instant. messaging,. presence,. voice. over. IP,. video. conferencing,. application. sharing,. telephony,. unified. messaging,. multi- media.content.delivery,.etc..on.top.of.different.network.technologies..The. convergence.of.the.communications.networks.is.motivated.by.the.need.to. support.many.forms.of.digital.traffic.as.well.as.to.amortize.implementation. and.operational.costs.of.the.underlying.networks..Historically,.the.approach. to. build. and. deploy. multimedia. services. has. focused. upon. single-point. solutions..
标签: Multimedia Subsystem Handbook IMS IP
上传时间: 2020-05-27
上传用户:shancjb