Entire file system permissions were changed on Ubuntu 16.04 LTS

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












I'm running hadoop in my machine with hduser. When I was trying to user 'put' and 'get' commands it was throwing that "permission denied".



hduser@salmon-son-of-god:/usr/local/hadoop-2.6.5/bin$ hadoop fs -get /user/mySQL commands /home/salmon/Desktop/
18/03/21 15:43:11 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
get: /home/salmon/Desktop/mySQL commands._COPYING_ (Permission denied)


So I have mistakenly changed the file system ownership in my machine. When tried to deal with my files it is throwing the error like "Permission denied".



hduser@salmon-son-of-god:/usr/local/hadoop-2.6.5/bin$ ls -l /home/
total 12
drwxr-xr-x 23 salmon sudo 4096 Mar 21 15:07 hduser
drwxr-xr-x 18 salmon sudo 4096 Mar 7 12:17 krishna
drwxrwxrwx 30 salmon sudo 4096 Mar 21 16:01 salmon


when I changed the permissions on home directory to one user salmon, hadoop wasn't able to copy files to local file system. If I change permission to hduser local files were not accessed by salmon user.



When I check for same issue in Stack Overflow the people answered that you need to back up the file system and reinstall OS again.



Can anybody help me?










share|improve this question























  • You can try single user mode ( Recovery mode ) and chown everything back to root. But there can be a lot of problems after that.
    – dedunumax
    Mar 21 at 17:09










  • You can reset /home to defaults: help.ubuntu.com/community/dmrcErrors but if you changed / (root), you cannot really change settings back. Many are owned by root, but many others are not, so some things just will not work. Reinstall is often best alternative. User settings should be salmon salmon, not salmon sudo. try:sudo chown $USER:$USER /home/$USER.
    – oldfred
    Mar 21 at 18:08















up vote
0
down vote

favorite












I'm running hadoop in my machine with hduser. When I was trying to user 'put' and 'get' commands it was throwing that "permission denied".



hduser@salmon-son-of-god:/usr/local/hadoop-2.6.5/bin$ hadoop fs -get /user/mySQL commands /home/salmon/Desktop/
18/03/21 15:43:11 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
get: /home/salmon/Desktop/mySQL commands._COPYING_ (Permission denied)


So I have mistakenly changed the file system ownership in my machine. When tried to deal with my files it is throwing the error like "Permission denied".



hduser@salmon-son-of-god:/usr/local/hadoop-2.6.5/bin$ ls -l /home/
total 12
drwxr-xr-x 23 salmon sudo 4096 Mar 21 15:07 hduser
drwxr-xr-x 18 salmon sudo 4096 Mar 7 12:17 krishna
drwxrwxrwx 30 salmon sudo 4096 Mar 21 16:01 salmon


when I changed the permissions on home directory to one user salmon, hadoop wasn't able to copy files to local file system. If I change permission to hduser local files were not accessed by salmon user.



When I check for same issue in Stack Overflow the people answered that you need to back up the file system and reinstall OS again.



Can anybody help me?










share|improve this question























  • You can try single user mode ( Recovery mode ) and chown everything back to root. But there can be a lot of problems after that.
    – dedunumax
    Mar 21 at 17:09










  • You can reset /home to defaults: help.ubuntu.com/community/dmrcErrors but if you changed / (root), you cannot really change settings back. Many are owned by root, but many others are not, so some things just will not work. Reinstall is often best alternative. User settings should be salmon salmon, not salmon sudo. try:sudo chown $USER:$USER /home/$USER.
    – oldfred
    Mar 21 at 18:08













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I'm running hadoop in my machine with hduser. When I was trying to user 'put' and 'get' commands it was throwing that "permission denied".



hduser@salmon-son-of-god:/usr/local/hadoop-2.6.5/bin$ hadoop fs -get /user/mySQL commands /home/salmon/Desktop/
18/03/21 15:43:11 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
get: /home/salmon/Desktop/mySQL commands._COPYING_ (Permission denied)


So I have mistakenly changed the file system ownership in my machine. When tried to deal with my files it is throwing the error like "Permission denied".



hduser@salmon-son-of-god:/usr/local/hadoop-2.6.5/bin$ ls -l /home/
total 12
drwxr-xr-x 23 salmon sudo 4096 Mar 21 15:07 hduser
drwxr-xr-x 18 salmon sudo 4096 Mar 7 12:17 krishna
drwxrwxrwx 30 salmon sudo 4096 Mar 21 16:01 salmon


when I changed the permissions on home directory to one user salmon, hadoop wasn't able to copy files to local file system. If I change permission to hduser local files were not accessed by salmon user.



When I check for same issue in Stack Overflow the people answered that you need to back up the file system and reinstall OS again.



Can anybody help me?










share|improve this question















I'm running hadoop in my machine with hduser. When I was trying to user 'put' and 'get' commands it was throwing that "permission denied".



hduser@salmon-son-of-god:/usr/local/hadoop-2.6.5/bin$ hadoop fs -get /user/mySQL commands /home/salmon/Desktop/
18/03/21 15:43:11 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
get: /home/salmon/Desktop/mySQL commands._COPYING_ (Permission denied)


So I have mistakenly changed the file system ownership in my machine. When tried to deal with my files it is throwing the error like "Permission denied".



hduser@salmon-son-of-god:/usr/local/hadoop-2.6.5/bin$ ls -l /home/
total 12
drwxr-xr-x 23 salmon sudo 4096 Mar 21 15:07 hduser
drwxr-xr-x 18 salmon sudo 4096 Mar 7 12:17 krishna
drwxrwxrwx 30 salmon sudo 4096 Mar 21 16:01 salmon


when I changed the permissions on home directory to one user salmon, hadoop wasn't able to copy files to local file system. If I change permission to hduser local files were not accessed by salmon user.



When I check for same issue in Stack Overflow the people answered that you need to back up the file system and reinstall OS again.



Can anybody help me?







filesystem hadoop






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 21 at 17:09









wjandrea

7,19342255




7,19342255










asked Mar 21 at 14:09









sai krishna

65




65











  • You can try single user mode ( Recovery mode ) and chown everything back to root. But there can be a lot of problems after that.
    – dedunumax
    Mar 21 at 17:09










  • You can reset /home to defaults: help.ubuntu.com/community/dmrcErrors but if you changed / (root), you cannot really change settings back. Many are owned by root, but many others are not, so some things just will not work. Reinstall is often best alternative. User settings should be salmon salmon, not salmon sudo. try:sudo chown $USER:$USER /home/$USER.
    – oldfred
    Mar 21 at 18:08

















  • You can try single user mode ( Recovery mode ) and chown everything back to root. But there can be a lot of problems after that.
    – dedunumax
    Mar 21 at 17:09










  • You can reset /home to defaults: help.ubuntu.com/community/dmrcErrors but if you changed / (root), you cannot really change settings back. Many are owned by root, but many others are not, so some things just will not work. Reinstall is often best alternative. User settings should be salmon salmon, not salmon sudo. try:sudo chown $USER:$USER /home/$USER.
    – oldfred
    Mar 21 at 18:08
















You can try single user mode ( Recovery mode ) and chown everything back to root. But there can be a lot of problems after that.
– dedunumax
Mar 21 at 17:09




You can try single user mode ( Recovery mode ) and chown everything back to root. But there can be a lot of problems after that.
– dedunumax
Mar 21 at 17:09












You can reset /home to defaults: help.ubuntu.com/community/dmrcErrors but if you changed / (root), you cannot really change settings back. Many are owned by root, but many others are not, so some things just will not work. Reinstall is often best alternative. User settings should be salmon salmon, not salmon sudo. try:sudo chown $USER:$USER /home/$USER.
– oldfred
Mar 21 at 18:08





You can reset /home to defaults: help.ubuntu.com/community/dmrcErrors but if you changed / (root), you cannot really change settings back. Many are owned by root, but many others are not, so some things just will not work. Reinstall is often best alternative. User settings should be salmon salmon, not salmon sudo. try:sudo chown $USER:$USER /home/$USER.
– oldfred
Mar 21 at 18:08
















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
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',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1017953%2fentire-file-system-permissions-were-changed-on-ubuntu-16-04-lts%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1017953%2fentire-file-system-permissions-were-changed-on-ubuntu-16-04-lts%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

Trouble downloading packages list due to a “Hash sum mismatch” error

How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

Cutting all the characters after the last /