-bash: /home/pi/.bash_profile: Permission denied
When I log into my pi via ssh, I get this error message -bash: /home/pi/.bash_profile: Permission denied then it logs into the root directory. If I try to change directory, i.e. cd /home/pi, I get the same message permission denied.
Linux raspberrypi 4.14.79-v7+ #1159 SMP Sun Nov 4 17:50:20 GMT 2018 armv7l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Jan 14 00:05:22 2019 from 10.0.0.x
Could not chdir to home directory /home/pi: Permission denied
Wi-Fi is disabled because the country is not set.
Use raspi-config to set the country before use.
-bash: /home/pi/.bash_profile: Permission denied
pi@raspberrypi:/$
Prior to this I have been install nginx and shiny server, however both of those start and stop with no error. I did add a swap drive for extra memory and change permissions via:
sudo /sbin/swapoff /var/swap.1
sudo chown root:disk /var/swap.1 # add root to swap
sudo chmod 0600 /var/swap.1 # add 0600 permission
sudo /sbin/swapon /var/swap.1`.
Another time I changed permissions was:
sudo groupadd shiny-apps
sudo usermod -aG shiny-apps pi
sudo usermod -aG shiny-apps shiny
cd /srv/shiny-server
sudo chown -R pi:shiny-apps .
sudo chmod g+w .
sudo chmod g+s .
debian permissions bash-profile
add a comment |
When I log into my pi via ssh, I get this error message -bash: /home/pi/.bash_profile: Permission denied then it logs into the root directory. If I try to change directory, i.e. cd /home/pi, I get the same message permission denied.
Linux raspberrypi 4.14.79-v7+ #1159 SMP Sun Nov 4 17:50:20 GMT 2018 armv7l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Jan 14 00:05:22 2019 from 10.0.0.x
Could not chdir to home directory /home/pi: Permission denied
Wi-Fi is disabled because the country is not set.
Use raspi-config to set the country before use.
-bash: /home/pi/.bash_profile: Permission denied
pi@raspberrypi:/$
Prior to this I have been install nginx and shiny server, however both of those start and stop with no error. I did add a swap drive for extra memory and change permissions via:
sudo /sbin/swapoff /var/swap.1
sudo chown root:disk /var/swap.1 # add root to swap
sudo chmod 0600 /var/swap.1 # add 0600 permission
sudo /sbin/swapon /var/swap.1`.
Another time I changed permissions was:
sudo groupadd shiny-apps
sudo usermod -aG shiny-apps pi
sudo usermod -aG shiny-apps shiny
cd /srv/shiny-server
sudo chown -R pi:shiny-apps .
sudo chmod g+w .
sudo chmod g+s .
debian permissions bash-profile
1
What is the output ofls -l /home?
– Sparhawk
1 hour ago
2
What is the output ofsudo ls -ld /home /home/pi?
– Mark Plotnick
1 hour ago
add a comment |
When I log into my pi via ssh, I get this error message -bash: /home/pi/.bash_profile: Permission denied then it logs into the root directory. If I try to change directory, i.e. cd /home/pi, I get the same message permission denied.
Linux raspberrypi 4.14.79-v7+ #1159 SMP Sun Nov 4 17:50:20 GMT 2018 armv7l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Jan 14 00:05:22 2019 from 10.0.0.x
Could not chdir to home directory /home/pi: Permission denied
Wi-Fi is disabled because the country is not set.
Use raspi-config to set the country before use.
-bash: /home/pi/.bash_profile: Permission denied
pi@raspberrypi:/$
Prior to this I have been install nginx and shiny server, however both of those start and stop with no error. I did add a swap drive for extra memory and change permissions via:
sudo /sbin/swapoff /var/swap.1
sudo chown root:disk /var/swap.1 # add root to swap
sudo chmod 0600 /var/swap.1 # add 0600 permission
sudo /sbin/swapon /var/swap.1`.
Another time I changed permissions was:
sudo groupadd shiny-apps
sudo usermod -aG shiny-apps pi
sudo usermod -aG shiny-apps shiny
cd /srv/shiny-server
sudo chown -R pi:shiny-apps .
sudo chmod g+w .
sudo chmod g+s .
debian permissions bash-profile
When I log into my pi via ssh, I get this error message -bash: /home/pi/.bash_profile: Permission denied then it logs into the root directory. If I try to change directory, i.e. cd /home/pi, I get the same message permission denied.
Linux raspberrypi 4.14.79-v7+ #1159 SMP Sun Nov 4 17:50:20 GMT 2018 armv7l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Jan 14 00:05:22 2019 from 10.0.0.x
Could not chdir to home directory /home/pi: Permission denied
Wi-Fi is disabled because the country is not set.
Use raspi-config to set the country before use.
-bash: /home/pi/.bash_profile: Permission denied
pi@raspberrypi:/$
Prior to this I have been install nginx and shiny server, however both of those start and stop with no error. I did add a swap drive for extra memory and change permissions via:
sudo /sbin/swapoff /var/swap.1
sudo chown root:disk /var/swap.1 # add root to swap
sudo chmod 0600 /var/swap.1 # add 0600 permission
sudo /sbin/swapon /var/swap.1`.
Another time I changed permissions was:
sudo groupadd shiny-apps
sudo usermod -aG shiny-apps pi
sudo usermod -aG shiny-apps shiny
cd /srv/shiny-server
sudo chown -R pi:shiny-apps .
sudo chmod g+w .
sudo chmod g+s .
debian permissions bash-profile
debian permissions bash-profile
edited 1 hour ago
Jeff Schaller
39.3k1054125
39.3k1054125
asked 2 hours ago
tcratiustcratius
123
123
1
What is the output ofls -l /home?
– Sparhawk
1 hour ago
2
What is the output ofsudo ls -ld /home /home/pi?
– Mark Plotnick
1 hour ago
add a comment |
1
What is the output ofls -l /home?
– Sparhawk
1 hour ago
2
What is the output ofsudo ls -ld /home /home/pi?
– Mark Plotnick
1 hour ago
1
1
What is the output of
ls -l /home?– Sparhawk
1 hour ago
What is the output of
ls -l /home?– Sparhawk
1 hour ago
2
2
What is the output of
sudo ls -ld /home /home/pi?– Mark Plotnick
1 hour ago
What is the output of
sudo ls -ld /home /home/pi?– Mark Plotnick
1 hour ago
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f494327%2fbash-home-pi-bash-profile-permission-denied%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f494327%2fbash-home-pi-bash-profile-permission-denied%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
What is the output of
ls -l /home?– Sparhawk
1 hour ago
2
What is the output of
sudo ls -ld /home /home/pi?– Mark Plotnick
1 hour ago