<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Shell environment customization (for root)]]></title><description><![CDATA[<p dir="auto">Per <a class="plugin-mentions-user plugin-mentions-a" href="/user/james" aria-label="Profile: james">@<bdi>james</bdi></a> , I am putting in a feature request instead of a support topic.</p>
<p dir="auto">Context:</p>
<p dir="auto">I am running about 20 of the Cloudron LAMP app instances.</p>
<p dir="auto">I have been updating them via WINSCP/FileZilla. I'm switching to doing a git pull (since all of the content is managed in a git repo).</p>
<p dir="auto">Currently I have to:</p>
<pre><code class="language-shell">su www-data -c "git pull"
</code></pre>
<p dir="auto">Otherwise I get:</p>
<pre><code class="language-shell">root@16405153-e269-41e3-ab8d-095606d5b07e:/app/data/public/KNEL/FetchApply# git pull
fatal: detected dubious ownership in repository at '/app/data/public/KNEL/FetchApply'
To add an exception for this directory, call:

    git config --global --add safe.directory /app/data/public/KNEL/FetchApply
root@16405153-e269-41e3-ab8d-095606d5b07e:/app/data/public/KNEL/FetchApply# git config --global --add safe.directory /app/data/public/KNEL/FetchApply
error: could not lock config file /root/.gitconfig: Read-only file system
</code></pre>
<p dir="auto">I want to make an alias for the su -... command.</p>
<p dir="auto">Editing .bashrc says read only filesystem.</p>
<p dir="auto">Question 1:  Should we have the ability to customize the root shell on cloudron? Does this compromise the integrity of the system? What are the downsides? What are the rollback / recovery mechanisms?</p>
<p dir="auto">Question 2:  Should we have the ability to change shells? (I am a huge zsh user, cloudron is the only system in my fleet not using zsh).</p>
<p dir="auto">Question 3: How should different kinds of customizations be handled? For example, aliases/ps(x)/themes etc? Should it only be a single custom file where you can put "whatever you want"? Should it be a set of files?</p>
<p dir="auto">Question 4: Can the files be able to be pulled from version control?</p>
]]></description><link>https://forum.cloudron.io/topic/14010/shell-environment-customization-for-root</link><generator>RSS for Node</generator><lastBuildDate>Sun, 10 May 2026 23:31:24 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/14010.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 30 Jun 2025 19:50:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Shell environment customization (for root) on Mon, 30 Jun 2025 22:00:47 GMT]]></title><description><![CDATA[<pre><code class="language-shell">Connecting...
root@16405153-e269-41e3-ab8d-095606d5b07e:/app/data/public/KNEL/FetchApply# gup
Already up to date.
root@16405153-e269-41e3-ab8d-095606d5b07e:/app/data/public/KNEL/FetchApply# cat /app/data/.bashrc 
cd /app/data/public/KNEL/FetchApply
alias gup='su www-data -c "git pull"'

root@16405153-e269-41e3-ab8d-095606d5b07e:/app/data/public/KNEL/FetchApply# 

</code></pre>
<p dir="auto">Ah this opens up all manner of creature comforts. Excellent! Really appreciate the prompt response <a class="plugin-mentions-user plugin-mentions-a" href="/user/joseph" aria-label="Profile: joseph">@<bdi>joseph</bdi></a></p>
]]></description><link>https://forum.cloudron.io/post/109500</link><guid isPermaLink="true">https://forum.cloudron.io/post/109500</guid><dc:creator><![CDATA[charlesnw]]></dc:creator><pubDate>Mon, 30 Jun 2025 22:00:47 GMT</pubDate></item><item><title><![CDATA[Reply to Shell environment customization (for root) on Mon, 30 Jun 2025 21:58:56 GMT]]></title><description><![CDATA[<p dir="auto">Thanks!!! That's awesome. That did EXACTLY what I needed. <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=fed68e33a46" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://forum.cloudron.io/post/109499</link><guid isPermaLink="true">https://forum.cloudron.io/post/109499</guid><dc:creator><![CDATA[charlesnw]]></dc:creator><pubDate>Mon, 30 Jun 2025 21:58:56 GMT</pubDate></item><item><title><![CDATA[Reply to Shell environment customization (for root) on Mon, 30 Jun 2025 20:22:33 GMT]]></title><description><![CDATA[<p dir="auto">You can already put stuff in <code>/app/data/.bashrc</code> . This is automatically sourced by /root/.bashrc if it exists</p>
]]></description><link>https://forum.cloudron.io/post/109487</link><guid isPermaLink="true">https://forum.cloudron.io/post/109487</guid><dc:creator><![CDATA[joseph]]></dc:creator><pubDate>Mon, 30 Jun 2025 20:22:33 GMT</pubDate></item></channel></rss>