<?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=4440&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / how do I set the default directory to / when I use su?]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=4440</link>
		<description><![CDATA[The most recent posts in how do I set the default directory to / when I use su?.]]></description>
		<lastBuildDate>Sun, 01 Aug 2021 08:51:17 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: how do I set the default directory to / when I use su?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30955#p30955</link>
			<description><![CDATA[<p>I have created my own root terminal according to this description: <a href="https://dev1galaxy.org/viewtopic.php?id=2717" rel="nofollow">https://dev1galaxy.org/viewtopic.php?id=2717</a>. This ends up in /root as working directory. The example is for Mate, but it also works with Cinnamon/Gnome terminal.</p><p>I guess you can easily set the path to /.</p><p>rolfie</p>]]></description>
			<author><![CDATA[dummy@example.com (rolfie)]]></author>
			<pubDate>Sun, 01 Aug 2021 08:51:17 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30955#p30955</guid>
		</item>
		<item>
			<title><![CDATA[Re: how do I set the default directory to / when I use su?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30953#p30953</link>
			<description><![CDATA[<p>Hi, I wanted to do this because I don&#039;t have sudo enabled and I use su a lot, packaging updates... checking net and kernel logs and such.</p><p>I do it a lot and it was just something I thought I could do with my systems, laptop and desktops that would streamline the process for me.</p><p>I am very grateful to this community for all the support I get when I can&#039;t find a solution to a hack I want to implement. <br />I don&#039;t know much (anything, ... no motive) about real hacking) but try to keep my system as secure as possible and stay current as possible.</p><p>But this is mostly because I have disabled sudo that I use su so frequently.</p><p>Thank you again (I&#039;ll read that link now ...GNU...)</p>]]></description>
			<author><![CDATA[dummy@example.com (GlennW)]]></author>
			<pubDate>Sun, 01 Aug 2021 00:18:18 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30953#p30953</guid>
		</item>
		<item>
			<title><![CDATA[Re: how do I set the default directory to / when I use su?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30946#p30946</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p><a href="http://harmful.cat-v.org/software/GNU/" rel="nofollow">http://harmful.cat-v.org/software/GNU/</a></p></div></blockquote></div><p>Yes, I know ...</p><p>But old habits die hard, very.&#160; 8^/</p><p>But thanks for the heads up.<br />Eventually, I guess.</p><p>Best,</p><p>A.</p><p>BTW:<br />I see a chap by the name of Andy Tanenbaum has an entry there.<br />I have not ever been around Unix and have only 10 years or so in Linux.</p><p>But reading the page made me wonder: Is this Tanenbaum (genetically or otherwise) related to systemd&#039;s Poettering?<br />Just curious ...</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Sat, 31 Jul 2021 13:57:54 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30946#p30946</guid>
		</item>
		<item>
			<title><![CDATA[Re: how do I set the default directory to / when I use su?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30944#p30944</link>
			<description><![CDATA[<p><a href="http://harmful.cat-v.org/software/GNU/" rel="nofollow">http://harmful.cat-v.org/software/GNU/</a></p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sat, 31 Jul 2021 08:25:42 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30944#p30944</guid>
		</item>
		<item>
			<title><![CDATA[Re: how do I set the default directory to / when I use su?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30943#p30943</link>
			<description><![CDATA[<div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><div class="quotebox"><cite>andyprough wrote:</cite><blockquote><div><p>Ain&#039;t Linux great!?!</p></div></blockquote></div><p><a href="http://harmful.cat-v.org/software/operating-systems/os-suck" rel="nofollow">Meh</a>.</p></div></blockquote></div><p>But the author didn&#039;t say GNU/Linux sucks. I think they&#039;re just referring to systemd/Linux sucking.</p>]]></description>
			<author><![CDATA[dummy@example.com (andyprough)]]></author>
			<pubDate>Sat, 31 Jul 2021 04:02:44 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30943#p30943</guid>
		</item>
		<item>
			<title><![CDATA[Re: how do I set the default directory to / when I use su?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30942#p30942</link>
			<description><![CDATA[<div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><div class="quotebox"><cite>andyprough wrote:</cite><blockquote><div><p>Ain&#039;t Linux great!?!</p></div></blockquote></div><p><a href="http://harmful.cat-v.org/software/operating-systems/os-suck" rel="nofollow">Meh</a>.</p></div></blockquote></div><p>I&#039;m loving it! Thanks again, see you &#039;round the posts.</p>]]></description>
			<author><![CDATA[dummy@example.com (GlennW)]]></author>
			<pubDate>Fri, 30 Jul 2021 22:27:43 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30942#p30942</guid>
		</item>
		<item>
			<title><![CDATA[Re: how do I set the default directory to / when I use su?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30941#p30941</link>
			<description><![CDATA[<p>I know, right. :-)</p><p>Thank you for your advise, I got it working.</p><p>I added the cd / to /root/.profile<br />and used </p><div class="codebox"><pre><code>source /root/.profile</code></pre></div><p>but that didn&#039;t work, then I tried again with su - and it works.</p><p>So, I went back into my ~/.bashrc and uncommented my alias</p><p>alias su=&#039;su -&#039;</p><p>and now it&#039;s working.</p><p>This box is fully-updated devuan_chimaera_4.0.a</p><p>Thank you everybody.</p>]]></description>
			<author><![CDATA[dummy@example.com (GlennW)]]></author>
			<pubDate>Fri, 30 Jul 2021 22:12:13 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30941#p30941</guid>
		</item>
		<item>
			<title><![CDATA[Re: how do I set the default directory to / when I use su?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30940#p30940</link>
			<description><![CDATA[<div class="quotebox"><cite>andyprough wrote:</cite><blockquote><div><p>Ain&#039;t Linux great!?!</p></div></blockquote></div><p><a href="http://harmful.cat-v.org/software/operating-systems/os-suck" rel="nofollow">Meh</a>.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Fri, 30 Jul 2021 22:02:06 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30940#p30940</guid>
		</item>
		<item>
			<title><![CDATA[Re: how do I set the default directory to / when I use su?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30933#p30933</link>
			<description><![CDATA[<div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>Or add this line to <span class="bbc">/root/.profile</span>:</p><div class="codebox"><pre><code>cd /</code></pre></div><p>But you would have to call <span class="bbc">su -</span> to ensure that the file is read.</p></div></blockquote></div><p>So many different ways to avoid simply typing &quot;cd /&quot; each time. Ain&#039;t Linux great!?!</p>]]></description>
			<author><![CDATA[dummy@example.com (andyprough)]]></author>
			<pubDate>Fri, 30 Jul 2021 18:18:41 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30933#p30933</guid>
		</item>
		<item>
			<title><![CDATA[Re: how do I set the default directory to / when I use su?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30929#p30929</link>
			<description><![CDATA[<p>Or add this line to <span class="bbc">/root/.profile</span>:</p><div class="codebox"><pre><code>cd /</code></pre></div><p>But you would have to call <span class="bbc">su -</span> to ensure that the file is read.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Fri, 30 Jul 2021 17:20:10 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30929#p30929</guid>
		</item>
		<item>
			<title><![CDATA[Re: how do I set the default directory to / when I use su?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30928#p30928</link>
			<description><![CDATA[<p>Why not simply use a mini script which only contains one line: cd / &amp;&amp; su<br />Calling that script will bring you to / as root.</p>]]></description>
			<author><![CDATA[dummy@example.com (berni51)]]></author>
			<pubDate>Fri, 30 Jul 2021 17:05:42 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30928#p30928</guid>
		</item>
		<item>
			<title><![CDATA[Re: how do I set the default directory to / when I use su?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30927#p30927</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>GlennW wrote:</cite><blockquote><div><p>No, that&#039;s what I have to do.</p></div></blockquote></div><p>I see.</p><p>So ...<br />You want to do <span class="bbc">su -</span> and be sent directly to <span class="bbc">/</span> without the <span class="bbc">cd /</span> bit.<br />Sorry, it seems that I&#039;ve reached my pay grade limit.&#160; 8^|</p><div class="quotebox"><cite>GlennW wrote:</cite><blockquote><div><p>... thank you for trying ...</p></div></blockquote></div><p>You&#039;re welcome.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Fri, 30 Jul 2021 15:49:18 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30927#p30927</guid>
		</item>
		<item>
			<title><![CDATA[Re: how do I set the default directory to / when I use su?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30926#p30926</link>
			<description><![CDATA[<p>No, that&#039;s what I have to do. But thank you for trying to help me.</p><p>Because it&#039;s a one user system I only have to cd {enter} to get to /</p><p>I was looking or a shorter short cut. :-)</p><p>Cheers</p>]]></description>
			<author><![CDATA[dummy@example.com (GlennW)]]></author>
			<pubDate>Fri, 30 Jul 2021 15:34:54 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30926#p30926</guid>
		</item>
		<item>
			<title><![CDATA[Re: how do I set the default directory to / when I use su?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30925#p30925</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>GlennW wrote:</cite><blockquote><div><div class="codebox"><pre><code>glenn@GamesBox ~ $ cat /etc/default/su
ALWAYS_SET_PATH yes
glenn@GamesBox ~ $ </code></pre></div></div></blockquote></div><p>Right ...<br />Now, open the terminal and do ...</p><div class="codebox"><pre><code>~ $ su -</code></pre></div><p>That should get you to <span class="bbc">/root</span>.</p><p>And from there you can <span class="bbc">cd /</span> to <span class="bbc">/</span>.</p><p>Is that what you meant to do?</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Fri, 30 Jul 2021 13:28:25 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30925#p30925</guid>
		</item>
		<item>
			<title><![CDATA[Re: how do I set the default directory to / when I use su?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30924#p30924</link>
			<description><![CDATA[<div class="codebox"><pre><code>glenn@GamesBox ~ $ cat /etc/default/su
ALWAYS_SET_PATH yes
glenn@GamesBox ~ $ </code></pre></div><p>Thank you, but the PATH is not the problem, it&#039;s just the look and being in the user directory when I have su&#039;d to root.</p><p>I&#039;ve been looking and hacking the .bashrc file, /etc/profile and /etc/bash.bashrc files and I was mistaken thinking the /w in PS1 may have been the key, but that&#039;s not it either.</p><p>w.i.p. </p><p>Thanks again. regards Glenn</p>]]></description>
			<author><![CDATA[dummy@example.com (GlennW)]]></author>
			<pubDate>Fri, 30 Jul 2021 11:10:42 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30924#p30924</guid>
		</item>
	</channel>
</rss>
