<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ubuntu,debian,redhat -linuxany.com &#187; smbd</title>
	<atom:link href="http://www.linuxany.com/archives/tag/smbd/feed" rel="self" type="application/rss+xml" />
	<link>http://www.linuxany.com</link>
	<description></description>
	<lastBuildDate>Thu, 26 Jan 2012 08:59:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>[原创]移植常用软件到ARM平台之samba2</title>
		<link>http://www.linuxany.com/archives/1201.html</link>
		<comments>http://www.linuxany.com/archives/1201.html#comments</comments>
		<pubDate>Mon, 15 Feb 2010 09:31:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ARM]]></category>
		<category><![CDATA[embed]]></category>
		<category><![CDATA[nmbd]]></category>
		<category><![CDATA[samba]]></category>
		<category><![CDATA[smbd]]></category>
		<category><![CDATA[smbpasswd]]></category>

		<guid isPermaLink="false">http://www.linuxany.com/?p=1201</guid>
		<description><![CDATA[1.平台环境： ARM1026EJ-Sid(wb)B rev 2 (v5l) 2.移植软件： samba2(下载：samba2.2.12) 3.移植目标： 能在目标平台上正常以后台进程方式运行 能正常输出日志，便于查错（日常运行时关闭） 能提供基于用户的认证功能 4.移植说明： 因samba3较大，相对samba2也只是提供了对域控的支持，一般情况下用不到，所以选择了samba2的最后一个版本。 最终生成的配置文件位置由./configure &#8211;prefix=/xx/xx决定，需特别注意，否则将导致进程无法加载。 另外如用windows访问共享时出现无权访问的问题，请注销或重启再访问即可解决问题。 具体移植步骤： 1.解压源码 2.进入源码目录： cd samba-2.2.12/source 3.修改源码： （1）在include/config.h文件里最后面增加： #define USE_SETEUID 1 （2）修改lib/util_unistr.c第739、762行为： return True; （3）在passdb/pdb_tdb.c第44行开始添加如下代码： #define PWD_BUFFER_SIZE 256 char bb_path_passwd_file[]=&#34;/etc/passwd&#34; ; struct passwd *__getpwent(int pwd_fd) { &#160; &#160; &#160;&#160; static&#160;char line_buff[PWD_BUFFER_SIZE]; &#160; &#160; &#160;&#160; static&#160;struct passwd passwd; &#160; &#160; &#160;&#160; [...]]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/1201.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

