<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://dev1galaxy.org/extern.php?action=feed&amp;tid=2342&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Services start issue]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=2342</link>
		<description><![CDATA[The most recent posts in Services start issue.]]></description>
		<lastBuildDate>Tue, 04 Sep 2018 10:08:45 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Services start issue]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=11647#p11647</link>
			<description><![CDATA[<div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>Obviously the Unix idea is the right way, and the others are merely weak attempts of obfuscation.</p></div></blockquote></div><p>The use of CR/LF predates Microsoft and was used by DEC (Digital Equipment Corp).</p><div class="quotebox"><blockquote><div><p>For some reason, the fourth option of LF+CR never took hold, even though that&#039;s really the mechanical sequence that got implemented in type writers, and probably the &quot;safest&quot; motion for a ribbon printer, which otherwise might smudge the printing.</p></div></blockquote></div><p>No, the order that worked was CR/LF, when using a Teletype ASR 33 printer for your output. Having got your print head to the right hand side, you gave it the CR and the print head mechanism set off at high speed for the left hand side of the printer. While it was travelling across you put in the line feed, which is much quicker to execute. By the time you gave it the first character of the next line the print head was in place and all was well. If you gave them in the order LF/CR then the first character of the next line was printed while the print head was still whizzing back and ended up being printed somewhere in the middle of the next line but smudged. I know, I have tried it! We used ASR33s for the output from our isotope counters, using the paper tape punch for our data transfer to our ICL 1903A.</p><p><a href="https://en.wikipedia.org/wiki/Teletype_Model_33" rel="nofollow">https://en.wikipedia.org/wiki/Teletype_Model_33</a></p><p>Geoff</p>]]></description>
			<author><![CDATA[dummy@example.com (Geoff 42)]]></author>
			<pubDate>Tue, 04 Sep 2018 10:08:45 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=11647#p11647</guid>
		</item>
		<item>
			<title><![CDATA[Re: Services start issue]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=11644#p11644</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>Almost exactly right ...<br />... with three different ways of ending a line ..<br />... line ending are characters within the files ...</p></div></blockquote></div><p>Learned quite a few things today. =^)<br />Thank you.</p><p>Now, off to see if I can find out how to recover my Devuan installtion from whatever <span class="bbc">apt-get clean</span> and <span class="bbc">apt-get autoclean</span> (apparently) did to it.</p><p>Cheers,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Mon, 03 Sep 2018 23:53:46 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=11644#p11644</guid>
		</item>
		<item>
			<title><![CDATA[Re: Services start issue]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=11643#p11643</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>Sort of like what was once known as (this dates me) CR or &#039;carriage return&#039;.<br />Typing machines and telex terminals from long ago.</p></div></blockquote></div><p>Almost exactly right, I&#039;d say. Time has blessed us with three different ways of ending a line, all relating back to the use of these characters for printer control, and basically a matter of how it is represented on file. So, nowadays we have:</p><ul><li><p>the Microsoft line ending idea of using both CR (carriage return) and LF (line feed), </p></li><li><p>the Apple idea of ending lines with only CR, and</p></li><li><p>the Unix (and Linux) idea of ending lines with LF.</p></li></ul><p>That line ending are characters within the files, to make up the traditional &quot;text file&quot; representation. Obviously the Unix idea is the right way, and the others are merely weak attempts of obfuscation.</p><p>For some reason, the fourth option of LF+CR never took hold, even though that&#039;s really the mechanical sequence that got implemented in type writers, and probably the &quot;safest&quot; motion for a ribbon printer, which otherwise might smudge the printing.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Mon, 03 Sep 2018 23:45:30 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=11643#p11643</guid>
		</item>
		<item>
			<title><![CDATA[Re: Services start issue]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=11642#p11642</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>A &quot;newline&quot; is a character at the end of a line, and it belongs to the text of the line in the same way as space characters belong to the line, but it also is a separator <em>between</em> lines in the way space characters are separators between words.</p></div></blockquote></div><p>I see ...<br />Sort of like what was once known as (this dates me) CR or &#039;carriage return&#039;.<br />Typing machines and telex terminals from long ago.</p><div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>For <span class="bbc">visudo</span> (and <span class="bbc">sudo</span>, I guess) the (last) line must have a terminating newline.</p></div></blockquote></div><p>OK.</p><div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>Many editors though don&#039;t show much different for that last newline being there or not, and some editors (like <span class="bbc">vi</span>) even force a final newline.<br />Presumably the editor, <span class="bbc">jed</span>(?), that you used, lets you end the last line without a newline character.</p></div></blockquote></div><p>OK.</p><div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>You can check that by making a one-line file, say <span class="bbc">xxxx.txt</span> without entering a final newline, and then view it by <span class="bbc">cat xxxx.txt</span>, which will show the text content of the file, and then, if the final newline is missing, the next command prompt becomes joined up on the same line.</p></div></blockquote></div><p>Indeed ...&#160; =-)</p><div class="codebox"><pre><code>groucho@devuan:~$ cat nonewline.txt
this is a test file made with jed without a final new_linegroucho@devuan:~$</code></pre></div><div class="codebox"><pre><code>groucho@devuan:~$ cat newline.txt
this is a test file made with jed with a final new_line 
groucho@devuan:~$ </code></pre></div><div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>... configuration file problem was that the first one-liner didn&#039;t have the terminating newline, and therefore <span class="bbc">visudo</span> complained.</p></div></blockquote></div><p>Yes.<br />But in a very ambiguous manner.<br />Why not just print &quot;new line character missing&quot;?</p><div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>As you added the % character to the beginning, you also happened to get a terminating newline, presumably because you then edited the file with a different editor (eg through <span class="bbc">visudo</span>). The fix was due to that newline, and adding the % character &quot;merely&quot; changed the semantics of the line.</p></div></blockquote></div><p>Exactly as you say:</p><p>1.<br />edit user_linssid</p><p>groucho ALL=(ALL) NOPASSWD:/usr/bin/linssid[cr]&#160; &lt;- this [cr] is the &#039;new line&#039; character and % is edited out </p><p>2. Check with visudo -c</p><div class="codebox"><pre><code>[root@devuan groucho]# visudo -c
/etc/sudoers: parsed OK
/etc/sudoers.d/README: parsed OK
/etc/sudoers.d/user_dmesg: parsed OK
/etc/sudoers.d/user_linssid: parsed OK
/etc/sudoers.d/user_shutdown: parsed OK
[root@devuan groucho]# </code></pre></div><p>Thank you very much for taking the time to explain this to me.<br />Much obliged.</p><p>Now I&#039;m confident I&#039;ll be able to write files for /etc/sudoers.d/ as needed.</p><p>Cheers,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Mon, 03 Sep 2018 23:01:01 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=11642#p11642</guid>
		</item>
		<item>
			<title><![CDATA[Re: Services start issue]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=11640#p11640</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><div class="quotebox"><blockquote><div><p>ralph.ronnquist wrote:</p><p>&#160; &#160; ... suspect the issue is rather the absence or presence of a newline at the end of the line.</p></div></blockquote></div><p>I&#039;m sorry, I don&#039;t understand what you mean.</p></div></blockquote></div><p>Hmm. A &quot;newline&quot; is a character at the end of a line, and it belongs to the text of the line in the same way as space characters belong to the line, but it also is a separator <em>between</em> lines in the way space characters are separators between words. For <span class="bbc">visudo</span> (and <span class="bbc">sudo</span>, I guess) the (last) line must have a terminating newline.</p><p>Many editors though don&#039;t show much different for that last newline being there or not, and some editors (like <span class="bbc">vi</span>) even force a final newline. Presumably the editor, <span class="bbc">jed</span>(?), that you used, lets you end the last line without a newline character.</p><p>You can check that by making a one-line file, say <span class="bbc">xxxx.txt</span> without entering a final newline, and then view it by <span class="bbc">cat xxxx.txt</span>, which will show the text content of the file, and then, if the final newline is missing, the next command prompt becomes joined up on the same line.</p><p>So, you configuration file problem was that the first one-liner didn&#039;t have the terminating newline, and therefore <span class="bbc">visudo</span> complained. As you added the % character to the beginning, you also happened to get a terminating newline, presumably because you then edited the file with a different editor (eg through <span class="bbc">visudo</span>). The fix was due to that newline, and adding the % character &quot;merely&quot; changed the semantics of the line.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Mon, 03 Sep 2018 21:28:08 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=11640#p11640</guid>
		</item>
		<item>
			<title><![CDATA[Re: Services start issue]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=11636#p11636</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>... you create a user, there is a corresponding group of the same name created, and that is the primary group for the user.</p></div></blockquote></div><p>I see ...<br />Now <span class="bbc">user groucho</span> in <span class="bbc">group groucho</span> makes all the sense to me.<br />Thank you for taking the time to explain that.&#160; =-)</p><div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>... configured in /etc/adduser.conf. (I think if you add your user with &#039;useradd&#039; instead of &#039;adduser&#039; you won&#039;t get that behavior and will have to define group, shell, home and whatever else yourself.) Sudo will not be confused by this.</p></div></blockquote></div><p>OK.<br />Good to know.</p><p>And yes, I&#039;ve very recently had to fix a cock-up and <span class="bbc">adduser groucho:groucho</span> was what I used.<br />Almost locked myself out.</p><div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>The % before sudo in /etc/sudoers is to identify sudo as a group. <br />Groups are prefaced with %. (See man sudoers)</p></div></blockquote></div><p>Yes, that I saw.<br />And since I am the only user in group groucho ...</p><div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><div class="quotebox"><blockquote><div><p>I just want the user to be able to use sudo for some (inocuous) commands<br />The rest, run with su.</p></div></blockquote></div><p>... get your user out of the sudo group ... <br />... more than shutdown commands available, add those other commands to sudoers.d/user_shutdown.<br />(The name is just a name - what&#039;s inside the file determines what it does.)</p></div></blockquote></div><p>OK. Now I have learned how to do that.</p><div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p><span class="bbc">deluser groucho sudo</span> will remove the user groucho from the sudo group.<br />If you want the user to enter a password for sudo, then remove NOPASSWD: from the line in user_shutdown.</p></div></blockquote></div><p>OK.</p><div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>I don&#039;t know why smartmontools won&#039;t start from command line, but I&#039;m sure there&#039;s a good reason for it.<br />You can still use smartctl on the command line - it doesn&#039;t need to be running as a service for that.<br />If you want it to run tests automatically and/or notify you by email if there&#039;s a problem, then you need to turn it on in /etc/default/smartmontools and configure /etc/smartd.conf to do what you want.</p></div></blockquote></div><p>smartmontools, sudo service and chkroot-bootclean won&#039;t start from the CLI <strong>or</strong> from the user interface.<br />I have not tried other unstarted services or stopping any already started service to check how far this behavious goes. </p><div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>... were probably using ext2 filesystems, which are not journaled and take a lot longer to do a filesystem check.<br />Be glad you&#039;re not seeing those messages. =-)</p><p>The filesystem is being checked at boot, but the message probably goes by too fast for you to see it.<br />Install bootlogd, and you can find those messages in /var/log/boot.</p></div></blockquote></div><p>Yes.<br /><span class="bbc">bootlogd</span> is one of the first things I installed.<br />PCLinuxOS did not have it available (for some reason took it out of the repo) which, for a <em>rolling release</em>, made little sense to me.<br />It&#039;s one reason I left that distro, that boat rolls far too much for what I am used to and there are not enough life vests.&#160; &#160;</p><div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>You can change how frequently the filesystem checks are done by running tune2fs.</p></div></blockquote></div><p>I&#039;ll check that out.</p><p>Thank you very mych for your input.<br />Much appreciated.</p><p>Cheers,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Mon, 03 Sep 2018 16:06:20 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=11636#p11636</guid>
		</item>
		<item>
			<title><![CDATA[Re: Services start issue]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=11635#p11635</link>
			<description><![CDATA[<p>Any time you create a user, there is a corresponding group of the same name created, and that is the primary group for the user. This is configured in /etc/adduser.conf. (I think if you add your user with &#039;useradd&#039; instead of &#039;adduser&#039; you won&#039;t get that behavior and will have to define group, shell, home and whatever else yourself.) Sudo will not be confused by this.</p><p>The % before sudo in /etc/sudoers is to identify sudo as a group. Groups are prefaced with %. (See man sudoers)</p><div class="quotebox"><blockquote><div><p>I just want the user to be able to use sudo for some (inocuous) commands<br />The rest, run with su.</p></div></blockquote></div><p>Then get your user out of the sudo group, and if you want more than shutdown commands available, add those other commands to sudoers.d/user_shutdown. (The name is just a name - what&#039;s inside the file determines what it does.)<br /><span class="bbc">deluser groucho sudo</span> will remove the user groucho from the sudo group. If you want the user to enter a password for sudo, then remove NOPASSWD: from the line in user_shutdown.</p><p>I don&#039;t know why smartmontools won&#039;t start from command line, but I&#039;m sure there&#039;s a good reason for it. You can still use smartctl on the command line - it doesn&#039;t need to be running as a service for that. If you want it to run tests automatically and/or notify you by email if there&#039;s a problem, then you need to turn it on in /etc/default/smartmontools and configure /etc/smartd.conf to do what you want.</p><p>Back around 2000, you were probably using ext2 filesystems, which are not journaled and take a lot longer to do a filesystem check. Be glad you&#039;re not seeing those messages. The filesystem is being checked at boot, but the message probably goes by too fast for you to see it. Install bootlogd, and you can find those messages in /var/log/boot.</p><p>You can change how frequently the filesystem checks are done by running tune2fs.</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Mon, 03 Sep 2018 13:24:58 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=11635#p11635</guid>
		</item>
		<item>
			<title><![CDATA[Re: Services start issue]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=11634#p11634</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>... the <span class="bbc">fsck</span> output, telling you that the file system hasn&#039;t been checked in X days ...<br />... configure by changing the boot command line.</p></div></blockquote></div><p>I like to see what goes on at boot time.<br />It is something I learned to do in my days as a MS minion.&#160; :^,</p><p>So I have &#039;quiet&#039; removed from the grub command line.</p><div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>... suspect the issue is rather the absence or presence of a newline at the end of the line.</p></div></blockquote></div><p>I&#039;m sorry, I don&#039;t understand what you mean.&#160; </p><p>Thanks for your input.</p><p>Cheers,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Mon, 03 Sep 2018 13:17:53 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=11634#p11634</guid>
		</item>
		<item>
			<title><![CDATA[Re: Services start issue]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=11633#p11633</link>
			<description><![CDATA[<p>Regarding that &quot;X days has passed ...&quot;, it sounds like the <span class="bbc">fsck</span> output, telling you that the file system hasn&#039;t been checked in X days, and that a check is forced. Nowadays there is a tendency of not showing the startup messages, but rather just showing an image or a black screen until the desktop environment kicks in. This is something you can configure by changing the boot command line.</p><p>Regarding your <span class="bbc">sudo</span> configuration, I suspect the issue is rather the absence or presence of a newline at the end of the line.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Mon, 03 Sep 2018 13:01:55 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=11633#p11633</guid>
		</item>
		<item>
			<title><![CDATA[Re: Services start issue]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=11632#p11632</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>... can start and stop services. <br />... seems to be working fine here.</p></div></blockquote></div><p>Good ...<br />That&#039;s a relief.<br />Then it&#039;s an issue with my setup.</p><div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>... want the user to be able to use sudo for all commands ...</p></div></blockquote></div><p>Not all, I just want the user to be able to use sudo for <span class="bbu">some</span> (inocuous) commands<br />The rest, run with <span class="bbc">su</span>.</p><p>I used PCLinuxOS for a time and they have this idea (which I adhere to) about the use of sudo:</p><div class="quotebox"><cite>PCLOS Admin wrote:</cite><blockquote><div><p>&quot;When implementing sudo, care should be taken to limit a users entry in /etc/sudoers to the absolute minimum of specific commands needed to perform the task at hand.&quot;</p></div></blockquote></div><div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>To start smartmontools/smartd, edit /etc/default/smartmontools to uncomment <span class="bbc">#start_smartd=yes</span>.</p></div></blockquote></div><p>But why won&#039;t it start by using either the CLI or the graphical interface?<br />Both are correct ways of doing it. (?)</p><div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>You don&#039;t have to start the sudo service. <br />Use sudo if you want, or don&#039;t use it.<br /> It&#039;s obviously working correctly on your system.</p></div></blockquote></div><p>Yes, it seems to be working OK. <br />There&#039;s still the issue of using % or not using % in the /etc/sudoers.d/ files but I have the feelong that it may be related to the existence of a <span class="bbu">group name</span> matching a <span class="bbu">user name</span> and the user belonging to that same group. </p><p>ie: <span class="bbc">user groucho</span> belonging to <span class="bbc">group groucho</span>.</p><p>It&#039;s all been very enlightening.</p><div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>I don&#039;t know what checkroot-bootclean.sh does.<br />It doesn&#039;t show up in sysv-rc-conf as a service to start/stop, but there is a symlink for it to start in runlevel 1.<br />I see no reason to mess with it.</p></div></blockquote></div><p>It&#039;s listed as a service to run in&#160; Applications -&gt; System -&gt; Services = [service].&#160; </p><p>From: <a href="https://unix.stackexchange.com/questions/126403/removing-unused-init-scripts" rel="nofollow">https://unix.stackexchange.com/question … it-scripts</a></p><div class="quotebox"><cite>link wrote:</cite><blockquote><div><p>&quot;The *-bootclean.sh scripts clean up files that must or should not survive a reboot: files in /var/run, /var/lock, /tmp, etc.<br />Checkroot-bootclean.sh runs just after the root filesystem is mounted (which can remove spurious files created under directories that will soon become mount points, such as /run and potentially /tmp)&quot;</p></div></blockquote></div><p>I found it interesting to see what it did so I wanted to start the service.<br />The <span class="bbc">sudo</span> service I understood and made sense to me to have it running.</p><p>What I was really looking for was something I recall seeing years ago (ca. 2000?) in my very early (and unsuccessful) attempts to install Debian on an old laptop.<br />After a certain amount of days, a script would run and inform you that X days had passed since the last file system check and was now running it.&#160; <br />I have not seen it since in any distrbution I&#039;ve tried.</p><p>Thanks a lot for your input.</p><p>Cheers,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Mon, 03 Sep 2018 12:10:45 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=11632#p11632</guid>
		</item>
		<item>
			<title><![CDATA[Re: Services start issue]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=11631#p11631</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>chris2be8 wrote:</cite><blockquote><div><p>... sudo service clears that so you always get asked for a password the first time you use sudo after a reboot.</p></div></blockquote></div><p>That is a good thing (IMO) and what I was wanting to accomplish by starting <span class="bbc">sudo service</span>.</p><div class="quotebox"><cite>chris2be8 wrote:</cite><blockquote><div><p>... change how long it remembers by setting timestamp_timeout in /etc/sudoers.<br />Setting it to 0 should make sudo always ask for a password when you use it.</p></div></blockquote></div><p>OK.</p><div class="quotebox"><cite>chris2be8 wrote:</cite><blockquote><div><p>It&#039;s a good idea to have another way to get to root (eg su) ...</p></div></blockquote></div><p>Yes.<br />My installation gets to <span class="bbc">root</span> by means of <span class="bbc">su</span>.</p><div class="quotebox"><cite>chris2be8 wrote:</cite><blockquote><div><p>... had to add a % to the line in <span class="bbc">/etc/sudoers.d/[file_name]</span> ...</p></div></blockquote></div><p>Now I do, thanks to your post.&#160; &#160;=-)</p><div class="quotebox"><cite>chris2be8 wrote:</cite><blockquote><div><p>... changing <span class="bbc">groucho</span> to <span class="bbc">%groucho</span> should make it match members of the group called groucho instead of user groucho.</p></div></blockquote></div><p>Indeed ...<br />That&#039;s <span class="bbu">exactly</span> what it is doing, as <span class="bbu">there is</span> a group called &#039;groucho&#039;.<br />I cannot recall creating it myself, but that does not mean much.&#160; 8^/.</p><p>BTW:<br />Group &#039;groucho has Group ID 1000 and my user &#039;Julis Henry Marx&#039; belongs to it.</p><p>I&#039;ll have to look into that and see where group &#039;groucho&#039; came from.<br />I think it was created at installation time. (?)</p><p>I&#039;ll see what happens if I take myself out of it.</p><p>But then, if I am the user groucho, why didn&#039;t using <span class="bbc">groucho</span> (instead of <span class="bbc">%groucho</span>) work?<br />Could it be that there&#039;s a sort of hierachy which which <span class="bbc">sudo</span> works?<br />ie: first groups matching and then users?</p><p>I have a feeling that there being a group with a name that matches a user name is confusing sudo.<br />ie: <span class="bbc">user groucho</span> belonging to <span class="bbc">group groucho</span>.</p><p>I&#039;ll try to clean this up and see how it goes. </p><p>Thank you very much for your input.</p><p>Cheers,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Mon, 03 Sep 2018 11:32:58 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=11631#p11631</guid>
		</item>
		<item>
			<title><![CDATA[Re: Services start issue]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=11628#p11628</link>
			<description><![CDATA[<p>Yes, I can start and stop services. Everything seems to be working fine here. I keep apache2 and samba turned off, and I start them on those rare occasions that I need them.</p><p>If you don&#039;t want the user to be able to use sudo for all commands, then remove that user from the sudo group. You&#039;ll still be able to shutdown, etc., becuase of sudoers.d/user_shutdown. And you don&#039;t need visudo to edit that file; just edit it as root.</p><p>To start smartmontools/smartd, edit /etc/default/smartmontools to uncomment <span class="bbc">#start_smartd=yes</span>.</p><p>You don&#039;t have to start the sudo service. Use sudo if you want, or don&#039;t use it. It&#039;s obviously working correctly on your system.</p><p>I don&#039;t know what checkroot-bootclean.sh does. It doesn&#039;t show up in sysv-rc-conf as a service to start/stop, but there is a symlink for it to start in runlevel 1. I see no reason to mess with it.</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Sun, 02 Sep 2018 19:58:36 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=11628#p11628</guid>
		</item>
		<item>
			<title><![CDATA[Re: Services start issue]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=11626#p11626</link>
			<description><![CDATA[<p>By default sudo will ask for a password the first time you use it, then allow you to use it without asking for a password for 15 minutes. The sudo service clears that so you always get asked for a password the first time you use sudo after a reboot.</p><p>You can change how long it remembers by setting timestamp_timeout in /etc/sudoers. Setting it to 0 should make sudo always ask for a password when you use it.</p><p>It&#039;s a good idea to have another way to get to root (eg su) when experimenting with sudo. So a typo in /etc/sudoers won&#039;t lock you out. And keep one terminal session running as root and use another to test sudo as your id.</p><p>I&#039;m not sure why you had to add a % to the line in <span class="bbc">/etc/sudoers.d/[file_name]</span> (mentioned in the other thread). In the line you showed changing <span class="bbc">groucho</span> to <span class="bbc">%groucho</span> should make it match members of the group called groucho instead of user groucho. But it&#039;s been several years since I&#039;ve had to use sudo to do more than changing to root.</p><p>Chris</p>]]></description>
			<author><![CDATA[dummy@example.com (chris2be8)]]></author>
			<pubDate>Sun, 02 Sep 2018 19:16:19 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=11626#p11626</guid>
		</item>
		<item>
			<title><![CDATA[Re: Services start issue]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=11611#p11611</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>... looks like all that script does is change the time stamp on /var/lib/sudo.</p></div></blockquote></div><p>It&#039;s rather over my head but if it&#039;s to prevent <span class="bbc">sudo</span> permissions from surviving a reboot it would not have to do much more. (?)</p><div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>... only command it takes is &#039;start&#039;.<br />... (stop|restart|whatever) do nothing.</p></div></blockquote></div><p>But I have at least three services that are not starting with the graphic interface or with the command line in a terminal.</p><div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>... your user is in the sudo group, you should be able to use sudo with your password for all commands.</p></div></blockquote></div><p>Hmmm ...<br />That I <span class="bbu">don&#039;t</span> like.</p><p>I can at times be hasty and distracted (maybe it&#039;s age?) and recognise the need to be called to attention: requiring me to enter an admin PW does that.<br />I don&#039;t mind being able to run <span class="bbc">sudo</span> for a selected few commands but <span class="bbu">not</span> all/any commands.</p><div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>... safe like <span class="bbc">sudo blkid</span> to see if that works.</p></div></blockquote></div><div class="codebox"><pre><code>groucho@devuan:~$ sudo blkid
[sudo] password for groucho: 
/dev/sda1: UUID=&quot;1ACC-311B&quot; TYPE=&quot;vfat&quot; PARTUUID=&quot;000e0731-01&quot;
--- snip ---
groucho@devuan:~$ </code></pre></div><p>It asks for a PW.<br />Probably because there isn&#039;t a dedicated file for that action in <span class="bbc">/etc/sudoers.d</span>?<br />BTW: I have tried to create a working file there for tesing purposes but have failed, <span class="bbc">visudo -c</span> does not like it..<br />See my other thread (where I split this one from).</p><div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>What I don&#039;t understand is why user_shutdown works when the includedir directive in /etc/sudoers is commented out.</p></div></blockquote></div><div class="codebox"><pre><code># Allow members of group sudo to execute any command
%sudo	ALL=(ALL:ALL) ALL</code></pre></div><p>It is commented with a percent sign (%) instead of a number/pound sign (#)?</p><div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>It&#039;s commented out in mine, too, but I can shutdown using sudo without password.</p></div></blockquote></div><p>I can also ...<br />My guess is that it is because of the <span class="bbc">/etc/sudoers.d/user_shutdown</span> file.<br />If so, <span class="bbc">%</span> is not being used to comment a line.<br />But what is it for? (what&#039;s the sysntaxis?)</p><div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>... also getting the same results as you for &#039;service --status-all&#039; - it doesn&#039;t change when I try to start sudo.</p></div></blockquote></div><p>OK ...<br />At least I have not screwed something up.&#160; 8^º </p><p>Can you start <strong>other</strong> unstarted services?</p><div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>Maybe that&#039;s because sudo runs and then exits after it changes the time stamp.</p></div></blockquote></div><p>No idea ...</p><p>But (from what I can understand) the issue goes further: I want to start a service and it will not start by any one of the two known methods.<br />Does not look right.</p><div class="quotebox"><cite>OP wrote:</cite><blockquote><div><p>I ticked them in Applications -&gt; System -&gt; Services = [service], a pop-up for systemtoolsbackends.set asks me to authenticate and I type my root PW in.<br />Then I click Close but for some reason they won&#039;t start.</p></div></blockquote></div><p>I suspect a problem somewhere. (?)<br />I also see the same problem in the Miyo Linux installation I have on another drive/same hardware.</p><p>Thanks for your input.</p><p>Cheers,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Sat, 01 Sep 2018 22:43:57 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=11611#p11611</guid>
		</item>
		<item>
			<title><![CDATA[Re: Services start issue]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=11610#p11610</link>
			<description><![CDATA[<p>Looking at /etc/init.d/sudo, it looks like all that script does is change the time stamp on /var/lib/sudo. The only command it takes is &#039;start&#039;. All the others (stop|restart|whatever) do nothing. Anything else gives you the standard error message for init scripts that says you should use start|stop|restart...</p><p>If your user is in the sudo group, you should be able to use sudo with your password for all commands. Try something safe like <span class="bbc">sudo blkid</span> to see if that works. What I don&#039;t understand is why user_shutdown works when the includedir directive in /etc/sudoers is commented out. It&#039;s commented out in mine, too, but I can shutdown using sudo without password. I&#039;m also getting the same results as you for &#039;service --status-all&#039; - it doesn&#039;t change when I try to start sudo. Maybe that&#039;s because sudo runs and then exits after it changes the time stamp.</p><p>Edit: &#039;man sudoers&#039; just answered my question.</p><div class="quotebox"><blockquote><div><p>The pound sign (‘#’) is used to indicate a comment (unless it is part of a #include directive... (and more)</p></div></blockquote></div>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Sat, 01 Sep 2018 21:42:16 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=11610#p11610</guid>
		</item>
	</channel>
</rss>
