Entire file system permissions were changed on Ubuntu 16.04 LTS

Clash 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?
filesystem hadoop
add a comment |Â
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?
filesystem hadoop
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
add a comment |Â
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?
filesystem hadoop
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
filesystem hadoop
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
add a comment |Â
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
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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
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