<?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>HTMLCenter Web Development Blog &#187; visual editor</title>
	<atom:link href="http://www.htmlcenter.com/blog/tag/visual-editor/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.htmlcenter.com</link>
	<description>Web Development Help and Tutorials</description>
	<lastBuildDate>Sat, 04 Feb 2012 02:56:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Quick Tip: WordPress Visual Editor Button Icons</title>
		<link>http://www.htmlcenter.com/blog/quick-tip-wordpress-visual-editor-button-icons/</link>
		<comments>http://www.htmlcenter.com/blog/quick-tip-wordpress-visual-editor-button-icons/#comments</comments>
		<pubDate>Wed, 29 Jun 2011 13:37:59 +0000</pubDate>
		<dc:creator>Curtiss</dc:creator>
				<category><![CDATA[Javascript Tutorials]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[tinymce]]></category>
		<category><![CDATA[ui]]></category>
		<category><![CDATA[visual editor]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.htmlcenter.com/?p=2149</guid>
		<description><![CDATA[The process of adding a new button to the WordPress visual editor is fairly simple; as long as you understand how to develop a new TinyMCE plugin (which is a somewhat involved and laborious process that I will probably cover at another time). One thing I discovered yesterday, though, is that one line of code [...]
Related posts:<ol>
<li><a href='http://www.htmlcenter.com/blog/wordpress-adding-a-proper-visual-editor-to-your-plugin/' rel='bookmark' title='WordPress: Adding a Proper Visual Editor to Your Plugin'>WordPress: Adding a Proper Visual Editor to Your Plugin</a></li>
<li><a href='http://www.htmlcenter.com/blog/handling-one-radio-button-with-javascript/' rel='bookmark' title='Handling One Radio Button With JavaScript'>Handling One Radio Button With JavaScript</a></li>
<li><a href='http://www.htmlcenter.com/blog/enable-theme-editor-in-wpmu/' rel='bookmark' title='Enable Theme Editor in WPMU'>Enable Theme Editor in WPMU</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>The process of <a href="http://codex.wordpress.org/TinyMCE_Custom_Buttons">adding a new button to the WordPress visual editor</a> is fairly simple; as long as you understand how to <a href="http://tinymce.moxiecode.com/wiki.php/Creating_a_plugin">develop a new TinyMCE plugin</a> (which is a somewhat involved and laborious process that I will probably cover at another time).</p>
<p>One thing I discovered yesterday, though, is that one line of code makes the difference between the Visual Editor using a custom, static image as the button and the Visual Editor using a span that you can stylize with CSS (to fit better with the native Visual Editor appearance).<span id="more-2149"></span></p>
<p>In your TinyMCE plugin definition file (editor_plugin.js), when you use the <code>addButton</code> method for the editor, if you define an img property for that object, a custom, static image will be used. However, if you do not define that property, the Visual Editor will instead create an empty span with the class of <code>mceIcon</code> and a secondary class of <code>mce_[plugin_name]</code>.</p>
<p>The <code>[plugin_name]</code> variable shown above is the name you assign to the plugin class instance when you use the <code>tinymce.pluginManager.add</code> method.</p>
<p>Therefore, the two pertinent snippets of your code might look like:</p>
<pre><code>/* Open your plugin code with a tinymce.create method
	and some other code*/
// Register example button
ed.addButton('my_mce_button', {
	title : 'This is a button',
	cmd : 'myButtonCmd'
});
/* More code in here */
// Register plugin
tinymce.PluginManager.add('myButton', tinymce.plugins.myButtonPlugin);</code></pre>
<p>Notice that the code above does not include an <code>img</code> property in the addButton method. That means that WordPress and TinyMCE will automatically assign a class of <code>mce_myButton</code> to an empty span where the button is supposed to appear in the visual editor.</p>
<p>Then, instead of using a static image, you can use CSS to stylize the span, adding background images for the normal state of the span and the hover state.</p>
<p>If you do, however, include the <code>img</code> property (which might look something like the code below), TinyMCE/WordPress will use that image for the button, meaning that the normal state and the hover state of the button will look basically the same (the background image that WordPress uses to create the border around the buttons will still change slightly when you hover over the button, though).</p>
<pre><code>// Register example button
ed.addButton('my_mce_button', {
	title : 'This is a button',
	cmd : 'myButtonCmd',
	image : url + '/img/myButton_icon.gif'
});</code></pre>
<p>Related posts:<ol>
<li><a href='http://www.htmlcenter.com/blog/wordpress-adding-a-proper-visual-editor-to-your-plugin/' rel='bookmark' title='WordPress: Adding a Proper Visual Editor to Your Plugin'>WordPress: Adding a Proper Visual Editor to Your Plugin</a></li>
<li><a href='http://www.htmlcenter.com/blog/handling-one-radio-button-with-javascript/' rel='bookmark' title='Handling One Radio Button With JavaScript'>Handling One Radio Button With JavaScript</a></li>
<li><a href='http://www.htmlcenter.com/blog/enable-theme-editor-in-wpmu/' rel='bookmark' title='Enable Theme Editor in WPMU'>Enable Theme Editor in WPMU</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.htmlcenter.com/blog/quick-tip-wordpress-visual-editor-button-icons/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>WordPress: Adding a Proper Visual Editor to Your Plugin</title>
		<link>http://www.htmlcenter.com/blog/wordpress-adding-a-proper-visual-editor-to-your-plugin/</link>
		<comments>http://www.htmlcenter.com/blog/wordpress-adding-a-proper-visual-editor-to-your-plugin/#comments</comments>
		<pubDate>Thu, 24 Mar 2011 15:54:59 +0000</pubDate>
		<dc:creator>Curtiss</dc:creator>
				<category><![CDATA[PHP Tutorials]]></category>
		<category><![CDATA[the_editor]]></category>
		<category><![CDATA[tinymce]]></category>
		<category><![CDATA[visual editor]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wysiwyg]]></category>

		<guid isPermaLink="false">http://www.htmlcenter.com/?p=2033</guid>
		<description><![CDATA[When developing a new plugin for WordPress, sometimes you want to add a visual/WYSIWYG editor to one of your plugin&#8217;s settings fields. Unfortunately, most of the tutorials you&#8217;ll find online only explain part of what needs to be done in order to get that working. The main problem I have encountered when looking at these [...]
Related posts:<ol>
<li><a href='http://www.htmlcenter.com/blog/quick-tip-wordpress-visual-editor-button-icons/' rel='bookmark' title='Quick Tip: WordPress Visual Editor Button Icons'>Quick Tip: WordPress Visual Editor Button Icons</a></li>
<li><a href='http://www.htmlcenter.com/blog/adding-settings-fields-to-your-wordpress-plugin/' rel='bookmark' title='Adding Settings Fields to Your WordPress Plugin'>Adding Settings Fields to Your WordPress Plugin</a></li>
<li><a href='http://www.htmlcenter.com/blog/enable-theme-editor-in-wpmu/' rel='bookmark' title='Enable Theme Editor in WPMU'>Enable Theme Editor in WPMU</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>When developing a new plugin for WordPress, sometimes you want to add a visual/WYSIWYG editor to one of your plugin&#8217;s settings fields. Unfortunately, most of the tutorials you&#8217;ll find online only explain part of what needs to be done in order to get that working. The main problem I have encountered when looking at these tutorials and example plugins is the fact that they only invoke the visual editor; they don&#8217;t offer any way for the user to use the editor in HTML mode.<span id="more-2033"></span></p>
<p>What&#8217;s worse, some of these samples even go so far as to include and use their own version of TinyMCE; which obviously incurs a great deal of overhead and makes the plugin package unnecessarily bloated.</p>
<p>There is a <a href="http://wordpress.org/support/topic/adding-editor-on-my-plugin-need-htmlvisual-tabs-to-look-right?replies=6#post-1446687">fairly simple solution</a>, though. The first thing you need to know about is <a href="http://core.trac.wordpress.org/browser/trunk/wp-includes/general-template.php#L1771">the <code>the_editor()</code> function</a> built into WordPress. This function will output the necessary textarea, etc. to build the visual editor.</p>
<p>The next thing you need to do is to enqueue and invoke all of the necessary JavaScripts to make the editor work as expected. To do that, you&#8217;ll need to write a function similar to the code below. I recommend placing this function inside of a class definition to avoid any potential namespace conflicts.</p>
<pre style="width: 96%; margin: 1%; padding: 1%; background: #eee; border: 1px solid #666; overflow-x: auto;"><code>function enqueue_editor() {
	wp_enqueue_script('common');
	wp_enqueue_script('jquery-color');
	wp_admin_css('thickbox');
	wp_print_scripts('post');
	wp_print_scripts('media-upload');
	wp_print_scripts('jquery');
	wp_print_scripts('jquery-ui-core');
	wp_print_scripts('jquery-ui-tabs');
	wp_print_scripts('tiny_mce');
	wp_print_scripts('editor');
	wp_print_scripts('editor-functions');

	/* Include the link dialog functions */
	require_once ABSPATH . 'wp-admin/includes/internal-linking.php';
	wp_print_scripts('wplink');
	wp_print_styles('wplink');
	add_action('tiny_mce_preload_dialogs', 'wp_link_dialog');

	add_thickbox();
	wp_tiny_mce();
	wp_admin_css();
	wp_enqueue_script('utils');
	do_action("admin_print_styles-post-php");
	do_action('admin_print_styles');
	remove_all_filters('mce_external_plugins');
}</code></pre>
<p>As far as I can tell, all of these scripts and actions are necessary in order for the editor to work correctly. I assume, if you are not using the media upload feature, you could avoid calling <code>wp_print_scripts('media-upload');</code>, but that&#8217;s probably the only one.</p>
<p>Finally, you&#8217;ll need to use some specific HTML code to wrap your editor (in order to ensure the JavaScript works correctly). You should use something similar to the following when outputting the editor:</p>
<pre style="width: 96%; margin: 1%; padding: 1%; background: #eee; border: 1px solid #666; overflow-x: auto;"><code>&lt;div id="poststuff"&gt;
	&lt;div id="&lt;?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?&gt;" class="postarea"&gt;
		&lt;?php the_editor('&lt;p&gt;Some sample content.&lt;/p&gt;'); ?&gt;
	&lt;/div&gt;
&lt;/div&gt;
/* Insert the dialog box that's used by the "link" button */
add_action( 'admin_footer', 'wp_tiny_mce_preload_dialogs' );</code></pre>
<h2>Notes (and Caveats) on Use</h2>
<ul>
<li>If you choose to give your editor a unique name/ID (other than &#8220;content&#8221;), you will need to add some CSS to your plugin to size the HTML editor appropriately. There is already a CSS definition for #content to make it stretch to the width of the editor properly, but if you assign a unique ID, that CSS obviously won&#8217;t apply (and your HTML editor will most likely only stretch about halfway across the editor area).</li>
<li>There is a <a href="http://core.trac.wordpress.org/ticket/14311">minor bug</a> that keeps the media buttons from working properly if you give your editor a name/ID other than &#8220;content&#8221;.</li>
<li>Unfortunately (at this time, at least), this only works to create a single visual editor on a page. If you attempt to include a second editor, there are <a href="http://core.trac.wordpress.org/ticket/11862">various JavaScript issues/bugs</a> that will cause the second editor not to work as you might expect. If you have the need to use multiple visual editors on a single page, you will need to look for another solution, sadly. There have been multiple requests to enhance the functionality of the <code>the_editor()</code> function to support multiple instances on a single page, but most I&#8217;ve found have been shot down as &#8220;<em>wontfix</em>&#8221; issues in the source trac.</li>
</ul>
<p>Related posts:<ol>
<li><a href='http://www.htmlcenter.com/blog/quick-tip-wordpress-visual-editor-button-icons/' rel='bookmark' title='Quick Tip: WordPress Visual Editor Button Icons'>Quick Tip: WordPress Visual Editor Button Icons</a></li>
<li><a href='http://www.htmlcenter.com/blog/adding-settings-fields-to-your-wordpress-plugin/' rel='bookmark' title='Adding Settings Fields to Your WordPress Plugin'>Adding Settings Fields to Your WordPress Plugin</a></li>
<li><a href='http://www.htmlcenter.com/blog/enable-theme-editor-in-wpmu/' rel='bookmark' title='Enable Theme Editor in WPMU'>Enable Theme Editor in WPMU</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.htmlcenter.com/blog/wordpress-adding-a-proper-visual-editor-to-your-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Microsoft Visual Studio 2010 Express Released</title>
		<link>http://www.htmlcenter.com/blog/microsoft-visual-studio-express/</link>
		<comments>http://www.htmlcenter.com/blog/microsoft-visual-studio-express/#comments</comments>
		<pubDate>Tue, 13 Apr 2010 00:51:47 +0000</pubDate>
		<dc:creator>Allen</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Web News]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[Visual Basic]]></category>
		<category><![CDATA[visual editor]]></category>

		<guid isPermaLink="false">http://www.htmlcenter.com/?p=1599</guid>
		<description><![CDATA[Earlier today Microsoft released the final (RTM) versions of their Microsoft Express offerings. The software was previously available as a beta release. The tools are all free and appear to be a good way to get started with Microsoft development. Unlike many free development software offerings, apparently these tools can be used for commercial development. The [...]
Related posts:<ol>
<li><a href='http://www.htmlcenter.com/blog/office-2010-and-chrome-os/' rel='bookmark' title='Office 2010 and Chrome OS'>Office 2010 and Chrome OS</a></li>
<li><a href='http://www.htmlcenter.com/blog/microsoft-releases-ie8-comparison-chart/' rel='bookmark' title='Microsoft Releases IE8 Comparison Chart'>Microsoft Releases IE8 Comparison Chart</a></li>
<li><a href='http://www.htmlcenter.com/blog/zend-releases-studio-70-beta/' rel='bookmark' title='Zend Releases Studio 7.0 Beta'>Zend Releases Studio 7.0 Beta</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Earlier today Microsoft released the final (RTM) versions of their <a href="http://www.microsoft.com/express/Windows/">Microsoft Express</a> offerings. The software was previously available as a beta release. The tools are all free and appear to be a good way to get started with Microsoft development. Unlike many free development software offerings, apparently these tools can be used for commercial development.</p>
<p>The Microsoft Express software includes:</p>
<ul>
<li>Visual Web Developer 2010 Express</li>
<li>Visual Basic 2010 Express</li>
<li>Visual C# 2010 Express</li>
<li>Visual C++ 2010 Express</li>
</ul>
<p>If you are planning to use the Microsoft Express software, check out the very detailed <a href="http://www.microsoft.com/express/Support/Support-faq.aspx">FAQ</a> which offers insight into what you can and can&#8217;t build using the free versions of the development software.</p>
<p>Related posts:<ol>
<li><a href='http://www.htmlcenter.com/blog/office-2010-and-chrome-os/' rel='bookmark' title='Office 2010 and Chrome OS'>Office 2010 and Chrome OS</a></li>
<li><a href='http://www.htmlcenter.com/blog/microsoft-releases-ie8-comparison-chart/' rel='bookmark' title='Microsoft Releases IE8 Comparison Chart'>Microsoft Releases IE8 Comparison Chart</a></li>
<li><a href='http://www.htmlcenter.com/blog/zend-releases-studio-70-beta/' rel='bookmark' title='Zend Releases Studio 7.0 Beta'>Zend Releases Studio 7.0 Beta</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.htmlcenter.com/blog/microsoft-visual-studio-express/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Managing User Permissions on Unix</title>
		<link>http://www.htmlcenter.com/blog/managing-user-permissions-on-unix/</link>
		<comments>http://www.htmlcenter.com/blog/managing-user-permissions-on-unix/#comments</comments>
		<pubDate>Mon, 05 May 2008 22:48:41 +0000</pubDate>
		<dc:creator>Curtiss</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[filesystem]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[group]]></category>
		<category><![CDATA[HTMLCenter News]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[permission]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[user]]></category>
		<category><![CDATA[vi]]></category>
		<category><![CDATA[virtual directory]]></category>
		<category><![CDATA[visual editor]]></category>
		<category><![CDATA[web server]]></category>

		<guid isPermaLink="false">http://htmlcenter.com/?p=389</guid>
		<description><![CDATA[I am basically posting this here as a reference for myself, but I&#8217;m sure the information will be helpful to other people out there, as well. Occasionally, when working on my Web server, I need to create a new user on the server and grant one or more other users permission to view and edit [...]
Related posts:<ol>
<li><a href='http://www.htmlcenter.com/blog/filenice-a-php-based-file-browser/' rel='bookmark' title='fileNice &#8211; a PHP-based file browser'>fileNice &#8211; a PHP-based file browser</a></li>
<li><a href='http://www.htmlcenter.com/blog/user-interviews-analysis/' rel='bookmark' title='User Interviews &#8211; Analysis Simplified'>User Interviews &#8211; Analysis Simplified</a></li>
<li><a href='http://www.htmlcenter.com/blog/is-your-site-user-friendly/' rel='bookmark' title='Is Your Site User Friendly?'>Is Your Site User Friendly?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I am basically posting this here as a reference for myself, but I&#8217;m sure the information will be helpful to other people out there, as well.</p>
<p>Occasionally, when working on my Web server, I need to create a new user on the server and grant one or more other users permission to view and edit files within the new user&#8217;s home directory.  This task, in itself, does not seem all that difficult on the surface.  However, because most Unix servers are set up (and rightfully so, for security purposes) not to allow most users to navigate outside of their own home directories, it becomes a problem.</p>
<p>Let&#8217;s say, for example, that you have two users on your Web server that you want to allow permissions to view and edit each other&#8217;s home directories, but you don&#8217;t want them to have access to any other files and folders on the Web server.</p>
<p><span id="more-389"></span></p>
<p>For purposes of this example, let&#8217;s call them user1 and user2.</p>
<p>You create user1 on your Web server.  In the administration control panel of my hosting package, when new unix users are created, they are automatically added as new users for all of the other modules (FTP, usermail, etc.), home directories are automatically created for them and a new group is automatically created for the user.  With the possible exception of automatically adding them to the other modules, I believe most unix boxes are set up this way.</p>
<p>Therefore, now that you&#8217;ve added &#8220;user1&#8243; to your box, you now have a new folder located at /home/user1, you have a new group called &#8220;user1&#8243; and user1 is now allowed to FTP into his home directory.  However, provided your FTP and SSH servers are set up properly, that user cannot navigate outside of the /home/user1 directory.</p>
<p>Now, you create &#8220;user2&#8243; on your unix box.  Once that&#8217;s completed, you now have a directory located at /home/user2, you have a new group called &#8220;user2&#8243; and user2 now has FTP permissions to navigate only within the /home/user2 directory.</p>
<p>Already, you can probably see the problem.  Because user1 cannot go any higher in the directory structure than /home/user1, that obviously means he cannot navigate into /home/user2.</p>
<p>In order to solve that problem, we have to take a few simple steps.</p>
<p>First, we need to open a shell.  In the case of a remote Web server, you would do so using an SSH connection.  However, if this is a local machine, you can do so fairly easily by simply opening the terminal.</p>
<p>The first thing you want to do is &#8220;su&#8221; (switch user) as root.  You do that simply by typing:</p>
<pre># su root</pre>
<p>Then, enter the password for the root user when prompted.</p>
<p>Now, within the shell, you are performing all actions as the root user (be careful doing this, and make sure to exit the root account when you are finished).</p>
<p>The next step is to create new directories for each user.  Within /home/user1, you should create a directory for user2.  It could be something as simple as /home/user1/user2files.  You would do that in the following way:</p>
<pre># mkdir /home/user1/user2files</pre>
<p>Now, do the same for user2:</p>
<pre># mkdir /home/user2/user1files</pre>
<p>The next step is to mount each user&#8217;s home directories as virtual directories for the other users.  You do that by typing the following commands:</p>
<pre># mount --bind /home/user1/ /home/user2/user1files</pre>
<pre># mount --bind /home/user2/ /home/user1/user2files</pre>
<p>What you&#8217;ve done by typing those two commands is the following:  You have now set up the Unix file system to look inside of /home/user1 whenever someone navigates into /home/user2/user1files.  Essentially, /home/user2/user1files is now simply an alias of /home/user1.  The second command did the same basic thing, except that it aliased /home/user2 as /home/user1/user2files.</p>
<p>The next step is to make sure your users will have the appropriate permissions.  There are two things you need to do.  First, you need to add user1 as a member of the &#8220;user2&#8243; group, and vice versa.  Within my administration area, I did this by simply editing each group and adding the appropriate members.</p>
<p>Finally, make sure that the directories are set up to allow group members to manipulate the files.  By default, most Web servers will automatically assign the permissions to new files as 664.  That means that the original user that generated the file has read and write permissions on the file, and so does the group to which that user belongs.</p>
<p>That&#8217;s great, but it causes one minor problem.  If user1 adds a new file to /home/user1/user2files, the user and group will both be set to &#8220;user1&#8243;.  If we decided not to add user2 as a member of the &#8220;user1&#8243; group, then user2 won&#8217;t have any permissions over those files.</p>
<p>That&#8217;s a fairly easy fix, however.  To accomplish this, you need to set the GID for the /home/user2 directory.  Setting the GID basically means that any files added to that directory will automatically inherit the group that owns the directory, no matter which groups the file&#8217;s creator belongs to.</p>
<p>Within my administration panel, I did this by simply navigating to the folder within the File Manager, then using the &#8220;Info&#8221; button to set the GID.  On most *nix boxes, you can do this by right-clicking on the folder itself and selecting &#8220;Properties&#8221; (I believe).</p>
<p>Now, no matter what files are added to /home/user1/user2files (or /home/user2, since /home/user1/user2files simply points to /home/user2) and no matter who adds them, the group will always be set to &#8220;user2&#8243;.</p>
<p>While you are editing the properties of that directory, you need to make sure that &#8220;Sticky&#8221; is not enabled.  If &#8220;Sticky&#8221; is enabled, only the file&#8217;s owner will have permission to remove the files.  Group members will not be able to delete the file.</p>
<p>Finally, you need to edit your fstab configuration file to finish mounting the virtual directories you created.  To do that, open the shell and su as root, again.  Type the following command:</p>
<pre># vi /etc/fstab</pre>
<p>That will open a program called &#8220;vi&#8221; (or Visual Editor).  I found a good link with instructions <a href="http://staff.washington.edu/rells/R110/#basics2" target="_blank">explaining how to use vi</a>.  Once you&#8217;ve opened fstab in vi, you need to add a line for each folder you mounted.  The lines should look like:</p>
<pre>/home/user2  /home/user1/user2files none bind 0 0</pre>
<p>If you don&#8217;t add the mount commands to the fstab file, then the changes you made will all be lost whenever the server is restarted.  The format of that line should be (items highlighted in red are the only things you should change):</p>
<p><span style="color: #ff0000;">/real/directory /virtual/directory</span> none bind 0 0</p>
<p>Once you complete all of those steps, both of your users should be able to work within each other&#8217;s home directories without you having to grant them access to other files and folders on the computer.</p>
<p>Related posts:<ol>
<li><a href='http://www.htmlcenter.com/blog/filenice-a-php-based-file-browser/' rel='bookmark' title='fileNice &#8211; a PHP-based file browser'>fileNice &#8211; a PHP-based file browser</a></li>
<li><a href='http://www.htmlcenter.com/blog/user-interviews-analysis/' rel='bookmark' title='User Interviews &#8211; Analysis Simplified'>User Interviews &#8211; Analysis Simplified</a></li>
<li><a href='http://www.htmlcenter.com/blog/is-your-site-user-friendly/' rel='bookmark' title='Is Your Site User Friendly?'>Is Your Site User Friendly?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.htmlcenter.com/blog/managing-user-permissions-on-unix/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

