<?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=2337&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [Solved] Permisison issue with winecfg]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=2337</link>
		<description><![CDATA[The most recent posts in [Solved] Permisison issue with winecfg.]]></description>
		<lastBuildDate>Mon, 03 Sep 2018 09:16:18 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [Solved] Permisison issue with winecfg]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=11630#p11630</link>
			<description><![CDATA[<div class="quotebox"><cite>golinux wrote:</cite><blockquote><div><p> the % always puzzled me so you are not alone.</p></div></blockquote></div><p><span class="bbc">man sudoers</span> suggests that you must put a &quot;%&quot; in front of a group name, presumably to identify it as such. If the group is a numeric ID then you use &quot;%#&quot;.</p><p>Geoff</p>]]></description>
			<author><![CDATA[dummy@example.com (Geoff 42)]]></author>
			<pubDate>Mon, 03 Sep 2018 09:16:18 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=11630#p11630</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Solved] Permisison issue with winecfg]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=11629#p11629</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>golinux wrote:</cite><blockquote><div><p> ... the % always puzzled me ...<br />... happy to hear you worked things out.</p></div></blockquote></div><p>Thank you.<br />Here&#039;s yet <span class="bbu">more</span> % puzzle for you.&#160; &#160;</p><div class="quotebox"><blockquote><div><p>The correct thing to do was to add a percent sign at the beginning of the line, like this:<br /><span class="bbc">%groucho ALL= NOPASSWD: /usr/bin/linssid</span></p></div></blockquote></div><p>Well ...<br />Not always so.</p><p>Quite happy with being able to get away with generating a file for the /etc/sudoers.d/ directory, I set about doing it again.<br />This time for a command I use very often: <span class="bbc">dmesg</span>.</p><p>Since using it with sudo was inocuous, I followed my own instructions and wrote up a file called <span class="bbc">user_dmesg</span> with <span class="bbu">this</span> line:</p><p><span class="bbc">%groucho ALL= NOPASSWD: /usr/bin/linssid</span></p><p>As you can clearly see, it <span class="bbu">has</span> the necessary % sign at the beginning.<br />But visudo -c rejects it with the same argument it rejected the line which <span class="bbu">did not</span> have the % sign at the beginning.</p><p>On a whim, I removed the % sign and ....<br />It worked!</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>And just why would this be so?</p><p>The only answer that I can come up with is that the use of the % sign is directly related to the path of the command to run with <span class="bbc">sudo</span>. </p><p>ie:<br /><span class="bbc">/bin/dmesg</span>&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;&lt;-- this command <span class="bbu">does not</span> need the % sign.<br /><span class="bbc">/usr/bin/linssid</span>&#160; &#160;&lt;-- this command <span class="bbu">does</span> need the % sign.<br /><span class="bbc">/sbin/shutdown</span>&#160; &#160; &#160; &#160;&lt;-- this command <span class="bbu">does not</span> need the % sign.</p><p>So <em>maybe</em> it&#039;s that the files in the <span class="bbc">/etc/sudoers.d/</span> need a line with a % sign at the beginning if the command is in the /usr path. </p><p>I have not found any documentation on this (the syntax for these files) but given the need to be able to adequately restrict the use of <span class="bbc">sudo</span>, it would be nice to be able to do it properly.</p><p>Any further info would be appreciated.</p><p>Thanks in advance,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Mon, 03 Sep 2018 02:48:52 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=11629#p11629</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Solved] Permisison issue with winecfg]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=11625#p11625</link>
			<description><![CDATA[<p>I stopped using sudo years ago when I dumped Ubuntu but I remember the % always puzzled me so you are not alone.&#160; Very happy to hear you worked things out.&#160; Currently I am in the middle of my own quagmire so can sympathize.</p>]]></description>
			<author><![CDATA[dummy@example.com (golinux)]]></author>
			<pubDate>Sun, 02 Sep 2018 16:47:20 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=11625#p11625</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Solved] Permisison issue with winecfg]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=11624#p11624</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>OP wrote:</cite><blockquote><div><p>The I ran a check with <span class="bbc">visudo -c</span> to see if it was OK ...</p><div class="codebox"><pre><code>[root@devuan groucho]# visudo -c
&gt;&gt;&gt; /etc/sudoers.d/user_linssid: syntax error near line 1 &lt;&lt;&lt;
parse error in /etc/sudoers.d/user_linssid near line 1
[root@devuan groucho]# </code></pre></div><p>... but it was not.</p><p>I do not understand the error <strong>near</strong> line 1: there&#039;s only one line and it is practically the same as the one in user_shutdown.</p><p>Am I doing something wrong or is editing with jed the problem?</p></div></blockquote></div><p>Indeed ...<br />But just <span class="bbu">how</span> was I to know what I was doing wrong?</p><p>The existing file in /etc/sudoers.d was copied exactly and properly edited with visudo.<br />And still ...</p><p>OK.<br />The solution ended up being <span class="bbu">this</span>: ---&gt; <strong>%</strong></p><p>The line that makes up any file you want to add to the <span class="bbc">/etc/sudoers.d/</span> directory (apparently) has to be preceded by a percent (%) sign.<br />Otherwise it will not work.</p><p>I have not been able to find a place where the syntax for these files is explained.</p><p>This example I posted above was wrong:</p><div class="quotebox"><cite>OP wrote:</cite><blockquote><div><p>To do this I opened the file with jed and saved it as user_linssid and edited it with jed so that ...</p><p><span class="bbc">groucho ALL= NOPASSWD: /usr/sbin/pm-suspend, /usr/sbin/pm-hibernate, /sbin/halt, /sbin/reboot</span><br />... became</p><p><span class="bbc">groucho ALL= NOPASSWD: /usr/bin/linssid</span></p></div></blockquote></div><p>The correct thing to do was to <span class="bbu">add a percent sign</span> at the beginning of the line, like this:</p><p><span class="bbc">%groucho ALL= NOPASSWD: /usr/bin/linssid</span></p><p>I found out about this by reading this post: <a href="https://askubuntu.com/questions/930768/adding-local-content-in-etc-sudoers-d-instead-of-directly-modifying-sodoers-fi" rel="nofollow">https://askubuntu.com/questions/930768/ … sodoers-fi</a>.<br />And although it makes no mention of the percentage sign thing,&#160; I saw that a line in a <span class="bbc">/etc/sudoers.d</span> file used it. </p><p>So I tried it and it worked.&#160; =^º </p><p>[rant mode]<br />How could I have possibly known this if the existing <span class="bbc">/etc/sudoers.d/users_shutdown</span> file reads like this:</p><div class="codebox"><pre><code>[root@devuan groucho]# cat /etc/sudoers.d/user_shutdown
groucho ALL= NOPASSWD: /usr/sbin/pm-suspend, /usr/sbin/pm-hibernate, /sbin/halt, /sbin/reboot  &lt;-- just [u]where[/u] is the % sign?
[root@devuan groucho]# </code></pre></div><p>And if using visudo to look at it shows me the <span class="bbu">exact same string</span> of characters?</p><p>I mean, where is the f***ing percent sign?<br />[/rant mode]</p><p>Moral of the story:<br />Want to make a /etc/sudoers.d/file to avoid mucking up (<span class="bbu">very</span> easy to do) the sudoers file? </p><p>1. copy an existing one.<br />2. edit it with visudo.</p><p>ie:</p><div class="codebox"><pre><code>visudo -f /etc/sudoers.d/[file_name]</code></pre></div><p>3. make sure that you <span class="bbu">add a %</span> sign at the start of the line. <br />4. save it with the intended name eg: user_whatever so you&#039;ll know what it is for.<br />5. make sure the file has 440 permissions.</p><p>ie: </p><div class="quotebox"><blockquote><div><p>[root@devuan groucho]# chmod 440 /etc/sudoers.d/[file_name]</p></div></blockquote></div><p>5. check it all 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_whatever: parsed OK
/etc/sudoers.d/user_shutdown: parsed OK
[root@devuan groucho]# </code></pre></div><p>Of course, remember that you have to be a member of the <span class="bbc">sudoers</span> group otherwise this is all moot.</p><p><span class="bbu">Caveat:</span> I&#039;m no expert and WRT Linux I&#039;m sort of playing by ear, so if any of the Devuan forum members with experience could take a minute to check that all this is not hogwash or has any errors, I&#039;d be very obliged.</p><p>Cheers,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Sun, 02 Sep 2018 16:26:18 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=11624#p11624</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Solved] Permisison issue with winecfg]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=11589#p11589</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>chris2be8 wrote:</cite><blockquote><div><p>... man page for sudoers.<br />... options include timestamp_timeout which sets how often it asks ...</p></div></blockquote></div><p>Thanks ...&#160; =-)<br />The timestamp feature could be overkill, even for me. LOL</p><div class="quotebox"><cite>chris2be8 wrote:</cite><blockquote><div><p>...&#160; <span class="bbc">EDITOR=jed visudo</span> which should let you edit /etc/sudoers with jed and have it checked.</p></div></blockquote></div><p>Great ...<br />The checking feature is really nice to have.</p><p>But I&#039;ve discovered <span class="bbc">sudo service</span> which I did not know about.<br />Seems to be more suited to my use than a timestamp.</p><div class="quotebox"><blockquote><div><p># make sure privileges don&#039;t persist across reboots</p></div></blockquote></div><p>---------------------------------------------------------------------------------<br />EDIT: I have started another thread for <span class="bbu">this</span> specific issue here <a href="https://dev1galaxy.org/viewtopic.php?id=2342" rel="nofollow">https://dev1galaxy.org/viewtopic.php?id=2342</a></p><p>I have it ticked in <span class="bbc">Applications -&gt; System -&gt; Services = sudo</span>.<br />But for some reason it won&#039;t start:</p><div class="codebox"><pre><code>[root@devuan groucho]# service --status-all | grep sudo
 [ ? ]  alsa-utils
 [ ? ]  cryptdisks
 [ ? ]  cryptdisks-early
 [ ? ]  hwclock.sh
 [ ? ]  kmod
 [ ? ]  networking
 [ - ]  sudo
[root@devuan groucho]</code></pre></div><div class="codebox"><pre><code>[root@devuan groucho]# service sudo start
[root@devuan groucho]# service --status-all | grep sudo
 [ ? ]  alsa-utils
 [ ? ]  cryptdisks
 [ ? ]  cryptdisks-early
 [ ? ]  hwclock.sh
 [ ? ]  kmod
 [ ? ]  networking
 [ - ]  sudo
[root@devuan groucho]# </code></pre></div><p><span class="bbu">Edit:</span><br />I have discovered that it&#039;s not only <span class="bbc">Applications -&gt; System -&gt; Services = sudo</span> that does not start even though it I marked it.<br />The other services I marked (smartmontools and checkroot-bootclean.sh) also fail to start.</p><p>The services utility asks me for the admin PW and nothing else. ie: does not reject my credentials.<br />---------------------------------------------------------------------------------</p><p>To practise and learn about <span class="bbc">sudo</span>, I had a look at the file in <span class="bbc">/etc/sudoers.d/user_shutdown</span> to make one exactly like it for LinSSID and not have to muck around with editing the sudoers file which <span class="bbu">is dangerous</span>, as I found out for myself. (many thanks to Timeshift!).</p><p>To do this I opened the file with jed and saved it as user_linssid and edited it with jed so that ...</p><p><span class="bbc">groucho ALL= NOPASSWD: /usr/sbin/pm-suspend, /usr/sbin/pm-hibernate, /sbin/halt, /sbin/reboot</span> </p><p>... became</p><p><span class="bbc">groucho ALL= NOPASSWD: /usr/bin/linssid</span></p><p>I saved the file and gave it 0440 permissions which I have read is a must for files in <span class="bbc">sudoers.d</span>:</p><div class="codebox"><pre><code>[root@devuan sudoers.d]# chown 0440 user_linssid
[root@devuan sudoers.d]# </code></pre></div><p>The I ran a check with <span class="bbc">visudo -c</span> to see if it was OK ...</p><div class="codebox"><pre><code>[root@devuan groucho]# visudo -c
&gt;&gt;&gt; /etc/sudoers.d/user_linssid: syntax error near line 1 &lt;&lt;&lt;
parse error in /etc/sudoers.d/user_linssid near line 1
[root@devuan groucho]# </code></pre></div><p>... but it was not.</p><p>I do not understand the error <strong>near</strong> line 1: there&#039;s only one line and it is practically the same as the one in user_shutdown.</p><p>Am I doing something wrong or is editing with jed the problem?</p><p>Thanks in advance.</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Fri, 31 Aug 2018 10:36:03 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=11589#p11589</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Solved] Permisison issue with winecfg]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=11586#p11586</link>
			<description><![CDATA[<p>Read the man page for sudoers. That will tell you everything you can do with it. Useful options include timestamp_timeout which sets how often it asks for your password. And it includes several examples.</p><p>For editing /etc/sudoers try <span class="bbc">EDITOR=jed visudo</span> which should let you edit /etc/sudoers with jed and have it checked.</p><p>Chris</p>]]></description>
			<author><![CDATA[dummy@example.com (chris2be8)]]></author>
			<pubDate>Fri, 31 Aug 2018 06:50:50 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=11586#p11586</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Solved] Permisison issue with winecfg]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=11580#p11580</link>
			<description><![CDATA[<p>Hello:</p><p>I was just about to post.<br />I managed to get things working with PMail.</p><p>The problem was that I had added myself the the sudo group but had not logged in again. :^ &#039;<br />Wasn&#039;t going to get anywhere <em>that</em> way. </p><p>My *.desktop file for PMail is this ...</p><div class="codebox"><pre><code>[Desktop Entry]
Type=Application
Name=PMail
Exec=wine start /unix /home/groucho/.wine/drive_c/PMAIL/Programs/winpm-32.exe
MimeType=application/x-ms-dos-executable;application/x-msi;application/x-ms-shortcut;
Icon=/home/groucho/pmail_32x32x32.png
NoDisplay=true
StartupNotify=true
GenericName=PMail32
Comment=
Terminal=false
Path=</code></pre></div><p>... and it works as intended.</p><div class="quotebox"><cite>chris2be8 wrote:</cite><blockquote><div><p>Look in /etc/sudoers ...</p></div></blockquote></div><div class="codebox"><pre class="vscroll"><code>[root@devuan groucho]# cat /etc/sudoers
#
# This file MUST be edited with the &#039;visudo&#039; command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults	env_reset
Defaults	mail_badpass
Defaults	secure_path=&quot;/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin&quot;

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root	ALL=(ALL:ALL) ALL

# Allow members of group sudo to execute any command
%sudo	ALL=(ALL:ALL) ALL

# See sudoers(5) for more information on &quot;#include&quot; directives:

#includedir /etc/sudoers.d
[root@devuan groucho]# </code></pre></div><p>Seems it&#039;s like you say.</p><div class="quotebox"><cite>chris2be8 wrote:</cite><blockquote><div><p>... run <span class="bbc">visudo</span> as root to add it (visudo edits a copy of /etc/sudoers with vi, then syntax checks your changes and copies it back if they are OK).</p></div></blockquote></div><p>I have tried in the past to get around vi but I&#039;ve found it very complicated to use. <br />I&#039;m afraid I&#039;m 20+ years late to <em>that</em> party, I learned the ropes with the early DOS 5.0 editors.</p><p>After trying three or four Linux CLI editors, I have finally settled on jed, it works for what I need to do.</p><div class="quotebox"><cite>chris2be8 wrote:</cite><blockquote><div><p>Then try <span class="bbc">sudo -l</span> to list what sudo will let you do. And <span class="bbc">sudo -i</span> to get to a root shell.</p></div></blockquote></div><div class="codebox"><pre><code>groucho@devuan:~$ sudo -l
Matching Defaults entries for groucho on devuan:
    env_reset, mail_badpass, secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin

User groucho may run the following commands on devuan:
    (ALL : ALL) ALL
    (root) NOPASSWD: /usr/sbin/pm-suspend, /usr/sbin/pm-hibernate, /sbin/halt, /sbin/reboot
groucho@devuan:~$ </code></pre></div><div class="codebox"><pre><code>groucho@devuan:~$ sudo -i
[sudo] password for groucho: 
[root@devuan ~]# </code></pre></div><p>It works ...&#160; =-)</p><p>Just in case:</p><div class="codebox"><pre><code>groucho@devuan:~$ groups
groucho adm dialout cdrom floppy tape sudo audio dip video plugdev netdev lpadmin scanner
groucho@devuan:~$ id
uid=1000(groucho) gid=1000(groucho) groups=1000(groucho),4(adm),20(dialout),24(cdrom),25(floppy),26(tape),27(sudo),29(audio),30(dip),44(video),46(plugdev),102(netdev),109(lpadmin),111(scanner)
groucho@devuan:~$ </code></pre></div><p>One thing:</p><div class="codebox"><pre><code># Allow members of group sudo to execute any command
%sudo	ALL=(ALL:ALL) ALL</code></pre></div><p>I don&#039;t want to be able to do <em>anything</em> with sudo, I would like to strictly limit what I can do as a member of the sudo group.</p><p>This <span class="bbc">ALL=(ALL:ALL) ALL</span> seems (to me) rather excessive.</p><p>How can this be effectively limited without hampering the use of the OS?</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>Thu, 30 Aug 2018 20:00:34 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=11580#p11580</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Solved] Permisison issue with winecfg]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=11579#p11579</link>
			<description><![CDATA[<div class="quotebox"><cite>Altoid wrote:</cite><blockquote><div><p>Is there a way to set up <span class="bbc">sudo</span> on a per-application basis ...<br />ie: so that sudo will work with a select list of apps, like Wine and LinSSID.</p></div></blockquote></div><p>Yes. If that&#039;s really all you want, putting a line like this at the end of <span class="bbc">/etc/sudoers</span> (preferably by running <span class="bbc"># EDITOR=nano visudo</span>) will do the trick:</p><div class="codebox"><pre><code>groucho ALL=(root) NOPASSWD: /usr/bin/wine-stable,/usr/bin/winecfg-stable,/usr/bin/linssid</code></pre></div><p>However, being able to use <span class="bbc">sudo</span> to run any command you want as any user:group you want is much more convenient. For that, put this at the end of sudoers:</p><div class="codebox"><pre><code>groucho ALL=(ALL:ALL) NOPASSWD: ALL</code></pre></div><p>If you prefer to enter your password each time, use <span class="bbc">PASSWD</span> instead of <span class="bbc">NOPASSWD</span>.</p><p>P.S. If you are truly in the sudo group, the <span class="bbc">%sudo...</span> line shown in chris2be8&#039;s response should allow you to run any command with sudo provided you enter your password. The problem you are having is either because the <span class="bbc">%sudo...</span> line is missing from sudoers (unlikely) or, more likely, you are not actually part of the sudo group. Type <span class="bbc">id</span> at the command line to see the groups you are part of. If you are not part of the sudo group, add yourself to it with this command: <span class="bbc"># usermod -a -G sudo groucho</span></p>]]></description>
			<author><![CDATA[dummy@example.com (GNUser)]]></author>
			<pubDate>Thu, 30 Aug 2018 19:16:01 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=11579#p11579</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Solved] Permisison issue with winecfg]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=11578#p11578</link>
			<description><![CDATA[<p>Look in /etc/sudoers, there should be something like this:</p><div class="codebox"><pre><code># Allow members of group sudo to execute any command
%sudo   ALL=(ALL:ALL) ALL</code></pre></div><p>If not run <span class="bbc">visudo</span> as root to add it (visudo edits a copy of /etc/sudoers with vi, then syntax checks your changes and copies it back if they are OK). If you don&#039;t know how to use vi then copying the above lines into /etc/sudoers with your favourite editor should work (I&#039;d only recommend this if you can get to root without using sudo, else you could lock yourself out).</p><p>Then try <span class="bbc">sudo -l</span> to list what sudo will let you do. And <span class="bbc">sudo -i</span> to get to a root shell.</p><p>If it still doesn&#039;t work post output from <span class="bbc">sudo -l</span> (lower case L), <span class="bbc">groups</span> and <span class="bbc">id</span>.</p><p>Chris</p>]]></description>
			<author><![CDATA[dummy@example.com (chris2be8)]]></author>
			<pubDate>Thu, 30 Aug 2018 18:27:56 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=11578#p11578</guid>
		</item>
		<item>
			<title><![CDATA[[Solved] Permisison issue with winecfg]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=11576#p11576</link>
			<description><![CDATA[<p>Hello:</p><p>I&#039;m trying to set up Wine in my Devuan ASCII installation but I seem to have run into a problem related to permissions.</p><p>When I installed Devuan ASCII, I selected to use <span class="bbc">su</span> and not <span class="bbc">sudo</span>.<br />I see it as a sort of <em>insurance</em> from myself and the possibility of getting distracted and inadvertently wreaking havoc.<br />ie: this way I will <span class="bbu">always</span> be reminded that whaever I am doing requires elevated privileges and will get them by entering the root PW.</p><p>But while I undertstand that this is not practical for some things, I have managed to get around the problem it brings up.<br />eg: to run LinSSID from a <span class="bbc">.desktop</span> file, the command will be <span class="bbc">gksu linssid</span> instead of the default <span class="bbc">gksudo linssid</span>.</p><p>I don&#039;t mind having to enter a PW for an app I don&#039;t use a lot.</p><p>Now, when I run <span class="bbc">winecfg</span> I am not able to set up the drives:</p><div class="codebox"><pre><code>groucho@devuan:~$ winecfg
err:winecfg:open_mountmgr failed to open mount manager err 2
err:winecfg:open_mountmgr failed to open mount manager err 2
groucho@devuan:~$ </code></pre></div><p>If I run it with <span class="bbc">sudo</span>, I get this:</p><div class="codebox"><pre><code>groucho@devuan:~$ sudo winecfg
[sudo] password for groucho: 
Sorry, user groucho is not allowed to execute &#039;/usr/bin/winecfg&#039; as root on devuan.
groucho@devuan:~$ </code></pre></div><p>My user <span class="bbu">is</span> in the sudo group.</p><p>And if I run it as root, it creates a configuration directory in /root ...</p><div class="codebox"><pre><code>[root@devuan groucho]# winecfg
wine: created the configuration directory &#039;/root/.wine&#039;
---
other stuff err: follows.
[root@devuan groucho]#</code></pre></div><p>... which will most probably (?) have the effect of needing to be root to run programs under Wine. </p><p>Is there a way to set up <span class="bbc">sudo</span> on a per-application basis ...<br />ie: so that sudo will work with a select list of apps, like Wine and LinSSID.</p><p>...&#160; or am I going about this the wrong way?</p><p>Thanks in advance,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Thu, 30 Aug 2018 13:31:25 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=11576#p11576</guid>
		</item>
	</channel>
</rss>
