<?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; group</title>
	<atom:link href="http://www.linuxany.com/archives/tag/group/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>Finding line number when matching text</title>
		<link>http://www.linuxany.com/archives/721.html</link>
		<comments>http://www.linuxany.com/archives/721.html#comments</comments>
		<pubDate>Sun, 21 Dec 2008 14:59:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[finditer]]></category>
		<category><![CDATA[group]]></category>
		<category><![CDATA[re]]></category>
		<category><![CDATA[rfind]]></category>

		<guid isPermaLink="false">http://www.linuxlaptop.cn/?p=721</guid>
		<description><![CDATA[src = open('linuxlaptop.htm').read() pattern = '&#60;P&#62;([^&#60;]+)&#60;SUP&#62;'&#160; # or anything else for&#160;m in re.finditer(pattern, src): 　　start = m.start() 　　lineno = src.count('\n', 0, start) + 1 　　offset = start - src.rfind('\n', 0, start) 　　word = m.group(1) 　　print&#160;&#34;linuxlaptop.htm(%s,%s): %s&#34; % (lineno, offset, word) 您还可能感兴趣的内容Python操作Access数据库Python:通过蓝牙发送短信python:设置windows桌面壁纸python: Filesize with nice units用python解析配置文件]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/721.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>/etc/group,/etc/gshadow释疑</title>
		<link>http://www.linuxany.com/archives/126.html</link>
		<comments>http://www.linuxany.com/archives/126.html#comments</comments>
		<pubDate>Sun, 06 Jan 2008 16:42:56 +0000</pubDate>
		<dc:creator>x72</dc:creator>
				<category><![CDATA[1.Application]]></category>
		<category><![CDATA[group]]></category>
		<category><![CDATA[gshadow]]></category>

		<guid isPermaLink="false">http://www.linuxplay.cn/index.php/archives/126</guid>
		<description><![CDATA[你知道/etc/group的第二项是什么意思吗？这项中!和x分别代表什么意思呢？ 之前我还真的没有注意到这个问题。于是先man group了一把，给出了的说明是 password the (encrypted) group password. If this field is empty, no password is needed. 从这个说明来看，应该是设置group的密码（之前我还不知道组也有密码一说）。但是现在这个说明太过于简单，比如没有提及到一些特别字符，比如!和x，而这些字符在/etc/passwd文件的第二项是有不同含义的。 google了一下，有找出了一个/etc/gshadow文件，到这里，我的猜测便认为/etc/group的方式和/etc/passwd的方式一致。第二项表示密码，如果是空的，表示没有密码，如果是x，表示该密码设置在对应的/etc/gshadow里。如果是!，应该表示禁止这个组。 于是我把我的理解告诉了welling，不过我说我没有时间来证明这点。 现在有时间，我又google了一下，找了一篇比较全面的文章，是北南南北兄的“用户（User）和用户组（Group）配置文件详解” ，他给出了这样的一个解释： 引用 root:x:0:root,linuxsir 注：用户组root，x是密码段，表示没有设置密码，GID是0,root用户组下包括root、linuxsir以及GID为0的其它用户（可以通过/etc/passwd查看）；； beinan:x:500:linuxsir 注：用户组beinan，x是密码段，表示没有设置密码，GID是500,beinan用户组下包括linuxsir用户及GID为500的用户（可以通过/etc/passwd查看）； linuxsir:x:502:linuxsir 注：用户组linuxsir，x是密码段，表示没有设置密码，GID是502,linuxsir用户组下包用户linuxsir及GID为502的用户（可以通过/etc/passwd查看）； helloer:x:503: 注：用户组helloer，x是密码段，表示没有设置密码，GID是503,helloer用户组下包括GID为503的用户，可以通过/etc/passwd查看； 这就和我前面的猜想有点不对了。为了搞清楚到底是怎么样的，还是用事实来证明比较好。 验证步骤如下： 1）用root帐号登录系统，先创建两个测试组group1,group2，然后创建两个不同的测试用户user1,user2,其中user1分别属于组group1,group2，而user2属于group2. [root@dxs ~]# groupadd -g 1001 group1 [root@dxs ~]# groupadd -g 1002 group2 [root@dxs ~]# useradd -u 5001 -g 1001 -G 1001,1002 [...]]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/126.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

