<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=8061&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Trying to create a shared directory using only manpages as helpsystem.]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=8061</link>
		<description><![CDATA[The most recent posts in Trying to create a shared directory using only manpages as helpsystem..]]></description>
		<lastBuildDate>Wed, 24 Jun 2026 17:06:11 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Trying to create a shared directory using only manpages as helpsystem.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=64397#p64397</link>
			<description><![CDATA[<p>As for the .<strong>deb</strong> packaged guide. I downloaded and installed it.</p><div class="codebox"><pre><code>$ sudo dpkg -i debian-beginners-handbook-en_13.3_all.deb 

$ dpkg -L debian-beginners-handbook-en 
/.
/usr
/usr/bin
/usr/bin/debian-beginners-handbook-en
/usr/share
/usr/share/applications
/usr/share/applications/debian-beginners-handbook-en.desktop
/usr/share/debian-beginners-handbook-en
/usr/share/debian-beginners-handbook-en/the_beginners_handbook.pdf
/usr/share/doc
/usr/share/doc/debian-beginners-handbook-en
/usr/share/doc/debian-beginners-handbook-en/README.Debian
/usr/share/doc/debian-beginners-handbook-en/changelog.gz
/usr/share/doc/debian-beginners-handbook-en/copyright
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/debian-beginners-handbook-en.1.gz
/usr/share/pixmaps
/usr/share/pixmaps/debian-beginners-handbook-en.png</code></pre></div><p>It basically a pdf. It has a nice touch though. It installs a script command that open the pdf:</p><div class="codebox"><pre><code>#!/bin/sh
xdg-open /usr/share/debian-beginners-handbook-en/the_beginners_handbook.pdf &amp;
exit 0</code></pre></div><p>Also as for the guide&#039;s history i found here the older versions <a href="https://lescahiersdudebutant.arpinux.org/" rel="nofollow">@</a> and a 2017 version on the internet archives <a href="https://archive.org/details/20170708TheBeginnersHandbook/mode/2up" rel="nofollow">@</a></p><p>As for the authors&#160; he has the nick arpinux .(website: <a href="https://arpinux.org/" rel="nofollow">@</a>) and the guide is released under the WTFPL <a href="https://debian-beginners-handbook.arpinux.org/trixie-en/LICENSE" rel="nofollow">@</a></p>]]></description>
			<author><![CDATA[dummy@example.com (chomwitt)]]></author>
			<pubDate>Wed, 24 Jun 2026 17:06:11 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=64397#p64397</guid>
		</item>
		<item>
			<title><![CDATA[Re: Trying to create a shared directory using only manpages as helpsystem.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=64396#p64396</link>
			<description><![CDATA[<p>mostly out of curiosity as to the quality and format of offline materials...</p><p>went to link @chomwitt provided:</p><p><a href="https://debian-beginners-handbook.arpinux.org/index-en.html" rel="nofollow"> https://debian-beginners-handbook.arpinux.org/index-en.html</a></p><p>and then further:</p><p><a href="https://debian-beginners-handbook.arpinux.org/trixie-en/index.html" rel="nofollow"> https://debian-beginners-handbook.arpinux.org/trixie-en/index.html</a></p><p>and downloaded the 17MB 267page pdf(warning: direct link to pdf download)</p><p>*ttps://debian-beginners-handbook.arpinux.org/trixie-en/download/the_beginners_handbook.pdf</p><p>fun read so far.</p><p>ymmv.</p>]]></description>
			<author><![CDATA[dummy@example.com (stargate-sg1-cheyenne-mtn)]]></author>
			<pubDate>Wed, 24 Jun 2026 15:34:57 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=64396#p64396</guid>
		</item>
		<item>
			<title><![CDATA[Re: Trying to create a shared directory using only manpages as helpsystem.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=64394#p64394</link>
			<description><![CDATA[<p>@rolfie At least in my stated goal&#160; man pages dont seems to help. Although the task could seem rather trivial (create a shared dir) . Debian has online a basic user guide <a href="https://debian-beginners-handbook.arpinux.org/index-en.html" rel="nofollow">@</a> (They now offer it also in a deb package (debian-beginners-handbook-en_13.3_all.deb) .But i dont think is in the repos yet.&#160; I think it&#039;d be a good idea install images to have such a package. </p><p>Maybe the Devuan user installation guide <a href="https://www.devuan.org/os/documentation/install-guides/daedalus/install-devuan" rel="nofollow">@</a> could also be included in such a package.</p>]]></description>
			<author><![CDATA[dummy@example.com (chomwitt)]]></author>
			<pubDate>Wed, 24 Jun 2026 14:34:39 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=64394#p64394</guid>
		</item>
		<item>
			<title><![CDATA[Re: Trying to create a shared directory using only manpages as helpsystem.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=64390#p64390</link>
			<description><![CDATA[<p>What I miss in the man pages are examples for at least standard applications. manpages usually just list the options.</p>]]></description>
			<author><![CDATA[dummy@example.com (rolfie)]]></author>
			<pubDate>Wed, 24 Jun 2026 12:20:55 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=64390#p64390</guid>
		</item>
		<item>
			<title><![CDATA[Re: Trying to create a shared directory using only manpages as helpsystem.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=64388#p64388</link>
			<description><![CDATA[<p>@blackhole thanks . noted . But what if my forgetfull - naive sysadm (or daring user)dont remeber that ? <br />So a forgetfull sysadm should first (as you propose) remember how to use the help system.</p><p>That seem correct. But how could (s)he remember that&#160; $ man man&#160; works ?<br />I think most propably s(he) would try $ help&#160; $ get-help ( :-) )</p>]]></description>
			<author><![CDATA[dummy@example.com (chomwitt)]]></author>
			<pubDate>Wed, 24 Jun 2026 08:52:35 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=64388#p64388</guid>
		</item>
		<item>
			<title><![CDATA[Re: Trying to create a shared directory using only manpages as helpsystem.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=64387#p64387</link>
			<description><![CDATA[<p>The first step is:</p><div class="codebox"><pre><code>% man man</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (blackhole)]]></author>
			<pubDate>Wed, 24 Jun 2026 08:49:02 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=64387#p64387</guid>
		</item>
		<item>
			<title><![CDATA[Trying to create a shared directory using only manpages as helpsystem.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=64386#p64386</link>
			<description><![CDATA[<p><strong>intention (goal) :</strong> <br />Trying to create a shared directory but with the constraint of not using the most accessible help in my system (internet search!!) . And if you have installed the most popular distros that is Firefox / google (by default). (so no web-search, no irc , no im , no forums, no emailists ... funny how most help systems need the net!) .. so that leaves us with &#039;good??&#039; old <strong>manpages</strong> and possibly info. </p><p>User profiles:I approach the task from the perspective of either a sysadm that forgets always the details of a task or a naive user that is not afraid of tty.</p><p><strong>Possible steps:</strong><br />First: How do i search for related commands ? But that could be a wrong approach. Maybe our intention can be accomplished with a bunch of various commands. <br />So initially we could need help both in how we use the help inside our offline system and what commands could help me.</p><p><strong>Possitble steps / search for commands / help </strong><br />Know how to search for commands related to your intention. So if we dont remember how to ask our system for help we could go:</p><div class="codebox"><pre><code>   $ help 
   ....These shell commands are defined internally. ...
       cd [-L|[-P [-e]] [-@]] [dir]     // interestingly there is no #man cd  
                                                // or #man alias but there is #man pwd                                                
   $ help share files  
bash: help: no help topics match `sharing&#039;.  Try `help help&#039; or `man -k sharing&#039; or `info sharing&#039;.  
    //cool.help states that as far it knows  &#039;man&#039; and &#039;info&#039; are the help systems to look at !</code></pre></div><p><strong>Possitble steps / search for commands / man&#160; </strong><br />So my system dont seem it can help me unless i know <strong>$ man </strong><br />But that still would help us!&#160; We need also $ man man </p><p>Indeed $ man man is a good start .&#160; (as @blackhole reminded me)<br />It explains that the system docs it can access and present to us are organized in sections and pages . And a page is structured in sections.<br />Also its opens&#160; the road to<strong> $ man -a intro</strong> and <strong>$ man -k</strong>&#160; and it refers also to <strong>apropos</strong>.</p><p><strong>Possitble steps / search for commands / man -k (apropos)&#160; </strong><br />But i think even that wont help us. For sharing a folder we must know about groups. That is a basic knowledge for even a forgetfull sysadm. (we already assume that the system has more than one users!!). Interestingly arpinux&#039;s debian begginer&#039;s handbook (see further in that forum&#039;s thread for more related details) refers to Linux&#039;s mutliuser nature in the Rights and permissions sections. So the naive but determined tty-fearless user could learn that permissions on a folder could be the answer to sharing.</p><p><strong>Possitble steps / search for commands / searching for groups </strong><br />1. Search for group related commands (# apropos group)</p><div class="codebox"><pre><code>$ apropos group | wc 
    122    1077    7284
$ apropos groups | wc 
     23     214    1425</code></pre></div><p>Lets narrow a list of commands that seem related:&#160; addgroup(8) , adduser(8) , getgroups(2)!! (how could a user know what &#039;2&#039; means?) , groups(1), setgroups(2) <br />Having already learned about man section we can narrow our list to&#160; sections 1 (Executable programs or shell commands),5(File formats and conventions),7(misc), 8 (System administration commands (usually only for root)).</p><div class="codebox"><pre><code>$ apropos -s 1,5,7,8  groups | wc
   17     157    1037  </code></pre></div><p>Interstingly (for me!) root will give us the same :</p><div class="codebox"><pre><code># apropos -s 1,5,7,8  groups | wc
     17     157    1037</code></pre></div><p>Still 17 commands are a lot. In worst case the forgetfull admin should read all the man pages !&#160; (i wonder if i could pipe apropos results to man or another pager...)<br />But looking apropos&#039;s results shorts descriptions i guess we should start from <strong>groups</strong>(1) print the groups a user is in and <strong>addgroup</strong> (8)&#160; - add or manipulate users or groups.</p><p>(here we miss groupmod .. not because apropos wont find it but because </p><div class="codebox"><pre><code># apropos  -s 1,5,7,8 group | wc
     57     534    3614</code></pre></div><p>&#160; . So we should search among more commands.</p><p>So now a plan can be formulated:</p><ul><li><p>create a folder # <strong>mkdir</strong> /home/sharedfolder</p></li><li><p>create a group (family)</p></li><li><p>change shared&#039;s folder group owner</p></li><li><p>add your users in that group</p></li><li><p>do some testing to see if the default permissions suits you.</p></li></ul><p>Ok. Lets create the shared folder. If we choose /home as our parent dir then only root can create it. Also only root can call <strong>addgroup</strong>.<br />And only the root must change the folder&#039;s group.</p><div class="codebox"><pre><code>$ man addgroup
   Add a group
       If  adduser is called with the --group option and without the --system option, or addgroup is called respectively, a
       user group will be added.</code></pre></div><div class="codebox"><pre><code># addgroup family
bash: addgroup: command not found</code></pre></div><p>At that point i think our naive user will stop. (no internet)</p><p>A debian quirk makes even for root addgroup not accessible. </p><div class="codebox"><pre><code># sudo apt-file search addgroup
adduser: /usr/sbin/addgroup   </code></pre></div><p>So try again:</p><div class="codebox"><pre><code># /usr/sbin/addgroup family</code></pre></div><p>Now it&#039;d be handy to validate that our group was created. But how ? The command we have found so far wont help us. So lets believe that if linux wont say anything is a good sing .(see unix philosophy <a href="https://en.wikipedia.org/wiki/Unix_philosophy" rel="nofollow">@</a>.)</p><p>Now how do we change the group owner of our /home/sharedfolder ?</p><div class="codebox"><pre><code># apropos permissions
...
access (2)           - check user&#039;s permissions for a file
chmod (2)            - change permissions of a file
...</code></pre></div><p>Here again the previous apropos command bites us. We need <strong>chown</strong> .&#160; So again we&#039;r stuck. man pages are indifferent to our intentions or for what purpose we want to use a commands. </p><p>In worst case we must backtrack and look at <strong># apropos&#160; -s 1,5,7,8 group&#160; &#160;</strong> having more faith at the short descriptions.<br />So we backtrack. (no internet ).</p><div class="codebox"><pre><code># man chown   // good description guides us here well.
# ls -al
...
drwxrwxr-x  2 root root  4096 Jun 24 10:33 sharedFolder
...
# chown root:family sharedFolder
# ls -al
...
drwxrwxr-x  2 root family  4096 Jun 24 10:33 sharedFolder
...</code></pre></div><p>/usr/sbin/groupmod -a -U alex,olga family</p>]]></description>
			<author><![CDATA[dummy@example.com (chomwitt)]]></author>
			<pubDate>Wed, 24 Jun 2026 08:33:52 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=64386#p64386</guid>
		</item>
	</channel>
</rss>
