File Permissions on recovered folders












1















I have had to recover an Ubuntu Clonezilla machine. The computer died, harddrive intact. New computer, not same model so I have transferred the folders to the public profile. I have rebuilt the machine and have Clonezilla operational, however, I am unable to move the files into the folder tree of Clonezilla to access the files...



1: the files are owned by root and sudo will not move them.



2: it tells me access is denied.



How can I change the file ownership and access to be able to move these files to the correct file path for Clonezilla to access?



Thank you





Output of ls -la



total 120
drwxr-xr-x 19 guy guy 4096 Jan 11 16:49 .
drwxr-xr-x 5 root root 4096 Jan 10 13:01 ..
-rw------- 1 guy guy 1746 Jan 11 10:16 .bash_history
-rw-r--r-- 1 guy guy 220 Dec 27 10:00.bash_logout
-rw-r--r-- 1 guy guy 3771 Dec 27 10:00 .bashrc
drwx------ 17 guy guy 4096 Jan 7 11:33 .cache
drwx------ 3 guy guy 4096 Jan 7 14:18 .compiz
drwx------ 15 guy guy 4096 Jan 10 13:06 .config
drwx------ 3 root root 4096 Dec 27 12:09 .dbus
drwxr-xr-x 2 guy guy 4096 Jan 11 10:17 Desktop
drwxr-xr-x 2 guy guy 4096 Jan 10 12:43 Documents
drwxr-xr-x 3 guy guy 4096 Dec 27 10:15 Downloads
-rw-r--r-- 1 guy guy 8980 Dec 27 10:00 examples.desktop
drwx------ 3 guy guy 4096 Jan 11 09:07 .gconf
-rw-r----- 1 guy guy 0 Dec 27 13:44 .gksu.lock
drwx------ 3 guy guy 4096 Jan 10 13:30 .gnupg
-rw------- 1 guy guy 2282 Jan 10 13:30 .ICEauthority
drwx------ 3 guy guy 4096 Dec 27 10:07 .local
drwx------ 5 guy guy 4096 Dec 27 10:14 .mozilla
drwxr-xr-x 2 guy guy 4096 Dec 27 10:07 Music
-rw-rw-r-- 1 guy guy 0 Jan 11 16:49 permissions.txt
drwxr-xr-x 2 guy guy 4096 Dec 27 10:07 Pictures
-rw-r--r-- 1 guy guy 655 Dec 27 10:00 .profile
drwxr-xr-x 3 guy guy 4096 Dec 27 12:20 Public
drwxr-xr-x 3 root root 4096 Jan 10 12:53 public
-rw-r--r-- 1 guy guy 0 Dec 27 10:18 .sudo_as_admin_successful
drwxr-xr-x 2 guy guy 4096 Dec 27 10:07 Templates
drwxr-xr-x 2 guy guy 4096 Dec 27 10:07 Videos
-rw------- 1 guy guy 53 Jan 10 13:30 .Xauthority
-rw------- 1 guy guy 82 Jan 10 13:30 .xsession-errors
-rw------- 1 guy guy 1177 Jan 10 13:20 .xsession-errors.old









share|improve this question









New contributor




CrashAbbott is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • can you please post the output of ls -la?

    – Boba Fit
    Jan 11 at 16:00











  • Thanks Boba Fit, is there a way to create a txt file output to post?..I apologise, I do not know how to post onto this forum or how to from Ubuntu.. Im learning. :)

    – CrashAbbott
    Jan 11 at 17:24











  • after a comand you can put > textfile.txt. The Output will be directet and write (overwrite) the textfile.txt (you may change the name)

    – Boba Fit
    Jan 11 at 21:30











  • Best way I could do it.. hope thats ok.. thanks Boba Fit!

    – CrashAbbott
    Jan 11 at 21:56
















1















I have had to recover an Ubuntu Clonezilla machine. The computer died, harddrive intact. New computer, not same model so I have transferred the folders to the public profile. I have rebuilt the machine and have Clonezilla operational, however, I am unable to move the files into the folder tree of Clonezilla to access the files...



1: the files are owned by root and sudo will not move them.



2: it tells me access is denied.



How can I change the file ownership and access to be able to move these files to the correct file path for Clonezilla to access?



Thank you





Output of ls -la



total 120
drwxr-xr-x 19 guy guy 4096 Jan 11 16:49 .
drwxr-xr-x 5 root root 4096 Jan 10 13:01 ..
-rw------- 1 guy guy 1746 Jan 11 10:16 .bash_history
-rw-r--r-- 1 guy guy 220 Dec 27 10:00.bash_logout
-rw-r--r-- 1 guy guy 3771 Dec 27 10:00 .bashrc
drwx------ 17 guy guy 4096 Jan 7 11:33 .cache
drwx------ 3 guy guy 4096 Jan 7 14:18 .compiz
drwx------ 15 guy guy 4096 Jan 10 13:06 .config
drwx------ 3 root root 4096 Dec 27 12:09 .dbus
drwxr-xr-x 2 guy guy 4096 Jan 11 10:17 Desktop
drwxr-xr-x 2 guy guy 4096 Jan 10 12:43 Documents
drwxr-xr-x 3 guy guy 4096 Dec 27 10:15 Downloads
-rw-r--r-- 1 guy guy 8980 Dec 27 10:00 examples.desktop
drwx------ 3 guy guy 4096 Jan 11 09:07 .gconf
-rw-r----- 1 guy guy 0 Dec 27 13:44 .gksu.lock
drwx------ 3 guy guy 4096 Jan 10 13:30 .gnupg
-rw------- 1 guy guy 2282 Jan 10 13:30 .ICEauthority
drwx------ 3 guy guy 4096 Dec 27 10:07 .local
drwx------ 5 guy guy 4096 Dec 27 10:14 .mozilla
drwxr-xr-x 2 guy guy 4096 Dec 27 10:07 Music
-rw-rw-r-- 1 guy guy 0 Jan 11 16:49 permissions.txt
drwxr-xr-x 2 guy guy 4096 Dec 27 10:07 Pictures
-rw-r--r-- 1 guy guy 655 Dec 27 10:00 .profile
drwxr-xr-x 3 guy guy 4096 Dec 27 12:20 Public
drwxr-xr-x 3 root root 4096 Jan 10 12:53 public
-rw-r--r-- 1 guy guy 0 Dec 27 10:18 .sudo_as_admin_successful
drwxr-xr-x 2 guy guy 4096 Dec 27 10:07 Templates
drwxr-xr-x 2 guy guy 4096 Dec 27 10:07 Videos
-rw------- 1 guy guy 53 Jan 10 13:30 .Xauthority
-rw------- 1 guy guy 82 Jan 10 13:30 .xsession-errors
-rw------- 1 guy guy 1177 Jan 10 13:20 .xsession-errors.old









share|improve this question









New contributor




CrashAbbott is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • can you please post the output of ls -la?

    – Boba Fit
    Jan 11 at 16:00











  • Thanks Boba Fit, is there a way to create a txt file output to post?..I apologise, I do not know how to post onto this forum or how to from Ubuntu.. Im learning. :)

    – CrashAbbott
    Jan 11 at 17:24











  • after a comand you can put > textfile.txt. The Output will be directet and write (overwrite) the textfile.txt (you may change the name)

    – Boba Fit
    Jan 11 at 21:30











  • Best way I could do it.. hope thats ok.. thanks Boba Fit!

    – CrashAbbott
    Jan 11 at 21:56














1












1








1








I have had to recover an Ubuntu Clonezilla machine. The computer died, harddrive intact. New computer, not same model so I have transferred the folders to the public profile. I have rebuilt the machine and have Clonezilla operational, however, I am unable to move the files into the folder tree of Clonezilla to access the files...



1: the files are owned by root and sudo will not move them.



2: it tells me access is denied.



How can I change the file ownership and access to be able to move these files to the correct file path for Clonezilla to access?



Thank you





Output of ls -la



total 120
drwxr-xr-x 19 guy guy 4096 Jan 11 16:49 .
drwxr-xr-x 5 root root 4096 Jan 10 13:01 ..
-rw------- 1 guy guy 1746 Jan 11 10:16 .bash_history
-rw-r--r-- 1 guy guy 220 Dec 27 10:00.bash_logout
-rw-r--r-- 1 guy guy 3771 Dec 27 10:00 .bashrc
drwx------ 17 guy guy 4096 Jan 7 11:33 .cache
drwx------ 3 guy guy 4096 Jan 7 14:18 .compiz
drwx------ 15 guy guy 4096 Jan 10 13:06 .config
drwx------ 3 root root 4096 Dec 27 12:09 .dbus
drwxr-xr-x 2 guy guy 4096 Jan 11 10:17 Desktop
drwxr-xr-x 2 guy guy 4096 Jan 10 12:43 Documents
drwxr-xr-x 3 guy guy 4096 Dec 27 10:15 Downloads
-rw-r--r-- 1 guy guy 8980 Dec 27 10:00 examples.desktop
drwx------ 3 guy guy 4096 Jan 11 09:07 .gconf
-rw-r----- 1 guy guy 0 Dec 27 13:44 .gksu.lock
drwx------ 3 guy guy 4096 Jan 10 13:30 .gnupg
-rw------- 1 guy guy 2282 Jan 10 13:30 .ICEauthority
drwx------ 3 guy guy 4096 Dec 27 10:07 .local
drwx------ 5 guy guy 4096 Dec 27 10:14 .mozilla
drwxr-xr-x 2 guy guy 4096 Dec 27 10:07 Music
-rw-rw-r-- 1 guy guy 0 Jan 11 16:49 permissions.txt
drwxr-xr-x 2 guy guy 4096 Dec 27 10:07 Pictures
-rw-r--r-- 1 guy guy 655 Dec 27 10:00 .profile
drwxr-xr-x 3 guy guy 4096 Dec 27 12:20 Public
drwxr-xr-x 3 root root 4096 Jan 10 12:53 public
-rw-r--r-- 1 guy guy 0 Dec 27 10:18 .sudo_as_admin_successful
drwxr-xr-x 2 guy guy 4096 Dec 27 10:07 Templates
drwxr-xr-x 2 guy guy 4096 Dec 27 10:07 Videos
-rw------- 1 guy guy 53 Jan 10 13:30 .Xauthority
-rw------- 1 guy guy 82 Jan 10 13:30 .xsession-errors
-rw------- 1 guy guy 1177 Jan 10 13:20 .xsession-errors.old









share|improve this question









New contributor




CrashAbbott is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












I have had to recover an Ubuntu Clonezilla machine. The computer died, harddrive intact. New computer, not same model so I have transferred the folders to the public profile. I have rebuilt the machine and have Clonezilla operational, however, I am unable to move the files into the folder tree of Clonezilla to access the files...



1: the files are owned by root and sudo will not move them.



2: it tells me access is denied.



How can I change the file ownership and access to be able to move these files to the correct file path for Clonezilla to access?



Thank you





Output of ls -la



total 120
drwxr-xr-x 19 guy guy 4096 Jan 11 16:49 .
drwxr-xr-x 5 root root 4096 Jan 10 13:01 ..
-rw------- 1 guy guy 1746 Jan 11 10:16 .bash_history
-rw-r--r-- 1 guy guy 220 Dec 27 10:00.bash_logout
-rw-r--r-- 1 guy guy 3771 Dec 27 10:00 .bashrc
drwx------ 17 guy guy 4096 Jan 7 11:33 .cache
drwx------ 3 guy guy 4096 Jan 7 14:18 .compiz
drwx------ 15 guy guy 4096 Jan 10 13:06 .config
drwx------ 3 root root 4096 Dec 27 12:09 .dbus
drwxr-xr-x 2 guy guy 4096 Jan 11 10:17 Desktop
drwxr-xr-x 2 guy guy 4096 Jan 10 12:43 Documents
drwxr-xr-x 3 guy guy 4096 Dec 27 10:15 Downloads
-rw-r--r-- 1 guy guy 8980 Dec 27 10:00 examples.desktop
drwx------ 3 guy guy 4096 Jan 11 09:07 .gconf
-rw-r----- 1 guy guy 0 Dec 27 13:44 .gksu.lock
drwx------ 3 guy guy 4096 Jan 10 13:30 .gnupg
-rw------- 1 guy guy 2282 Jan 10 13:30 .ICEauthority
drwx------ 3 guy guy 4096 Dec 27 10:07 .local
drwx------ 5 guy guy 4096 Dec 27 10:14 .mozilla
drwxr-xr-x 2 guy guy 4096 Dec 27 10:07 Music
-rw-rw-r-- 1 guy guy 0 Jan 11 16:49 permissions.txt
drwxr-xr-x 2 guy guy 4096 Dec 27 10:07 Pictures
-rw-r--r-- 1 guy guy 655 Dec 27 10:00 .profile
drwxr-xr-x 3 guy guy 4096 Dec 27 12:20 Public
drwxr-xr-x 3 root root 4096 Jan 10 12:53 public
-rw-r--r-- 1 guy guy 0 Dec 27 10:18 .sudo_as_admin_successful
drwxr-xr-x 2 guy guy 4096 Dec 27 10:07 Templates
drwxr-xr-x 2 guy guy 4096 Dec 27 10:07 Videos
-rw------- 1 guy guy 53 Jan 10 13:30 .Xauthority
-rw------- 1 guy guy 82 Jan 10 13:30 .xsession-errors
-rw------- 1 guy guy 1177 Jan 10 13:20 .xsession-errors.old






permissions data-recovery






share|improve this question









New contributor




CrashAbbott is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




CrashAbbott is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 2 days ago









Boba Fit

457212




457212






New contributor




CrashAbbott is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Jan 11 at 14:01









CrashAbbottCrashAbbott

62




62




New contributor




CrashAbbott is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





CrashAbbott is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






CrashAbbott is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.













  • can you please post the output of ls -la?

    – Boba Fit
    Jan 11 at 16:00











  • Thanks Boba Fit, is there a way to create a txt file output to post?..I apologise, I do not know how to post onto this forum or how to from Ubuntu.. Im learning. :)

    – CrashAbbott
    Jan 11 at 17:24











  • after a comand you can put > textfile.txt. The Output will be directet and write (overwrite) the textfile.txt (you may change the name)

    – Boba Fit
    Jan 11 at 21:30











  • Best way I could do it.. hope thats ok.. thanks Boba Fit!

    – CrashAbbott
    Jan 11 at 21:56



















  • can you please post the output of ls -la?

    – Boba Fit
    Jan 11 at 16:00











  • Thanks Boba Fit, is there a way to create a txt file output to post?..I apologise, I do not know how to post onto this forum or how to from Ubuntu.. Im learning. :)

    – CrashAbbott
    Jan 11 at 17:24











  • after a comand you can put > textfile.txt. The Output will be directet and write (overwrite) the textfile.txt (you may change the name)

    – Boba Fit
    Jan 11 at 21:30











  • Best way I could do it.. hope thats ok.. thanks Boba Fit!

    – CrashAbbott
    Jan 11 at 21:56

















can you please post the output of ls -la?

– Boba Fit
Jan 11 at 16:00





can you please post the output of ls -la?

– Boba Fit
Jan 11 at 16:00













Thanks Boba Fit, is there a way to create a txt file output to post?..I apologise, I do not know how to post onto this forum or how to from Ubuntu.. Im learning. :)

– CrashAbbott
Jan 11 at 17:24





Thanks Boba Fit, is there a way to create a txt file output to post?..I apologise, I do not know how to post onto this forum or how to from Ubuntu.. Im learning. :)

– CrashAbbott
Jan 11 at 17:24













after a comand you can put > textfile.txt. The Output will be directet and write (overwrite) the textfile.txt (you may change the name)

– Boba Fit
Jan 11 at 21:30





after a comand you can put > textfile.txt. The Output will be directet and write (overwrite) the textfile.txt (you may change the name)

– Boba Fit
Jan 11 at 21:30













Best way I could do it.. hope thats ok.. thanks Boba Fit!

– CrashAbbott
Jan 11 at 21:56





Best way I could do it.. hope thats ok.. thanks Boba Fit!

– CrashAbbott
Jan 11 at 21:56










1 Answer
1






active

oldest

votes


















0














You can change the owner of a folder by sudo chown guy:guy .



If you want to change the owner also in every subfolder and every file, you may add -R



So I recommend you to use sudo chown guy:guy . -R






share|improve this answer
























  • Boba Fit!! Thank you so much.. that command helped me to take ownership from root, move the folder to my choice and Clonezilla runs from my restored images now!! The Force is Strong in you!

    – CrashAbbott
    7 hours ago











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',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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
});


}
});






CrashAbbott is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1108865%2ffile-permissions-on-recovered-folders%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














You can change the owner of a folder by sudo chown guy:guy .



If you want to change the owner also in every subfolder and every file, you may add -R



So I recommend you to use sudo chown guy:guy . -R






share|improve this answer
























  • Boba Fit!! Thank you so much.. that command helped me to take ownership from root, move the folder to my choice and Clonezilla runs from my restored images now!! The Force is Strong in you!

    – CrashAbbott
    7 hours ago
















0














You can change the owner of a folder by sudo chown guy:guy .



If you want to change the owner also in every subfolder and every file, you may add -R



So I recommend you to use sudo chown guy:guy . -R






share|improve this answer
























  • Boba Fit!! Thank you so much.. that command helped me to take ownership from root, move the folder to my choice and Clonezilla runs from my restored images now!! The Force is Strong in you!

    – CrashAbbott
    7 hours ago














0












0








0







You can change the owner of a folder by sudo chown guy:guy .



If you want to change the owner also in every subfolder and every file, you may add -R



So I recommend you to use sudo chown guy:guy . -R






share|improve this answer













You can change the owner of a folder by sudo chown guy:guy .



If you want to change the owner also in every subfolder and every file, you may add -R



So I recommend you to use sudo chown guy:guy . -R







share|improve this answer












share|improve this answer



share|improve this answer










answered 2 days ago









Boba FitBoba Fit

457212




457212













  • Boba Fit!! Thank you so much.. that command helped me to take ownership from root, move the folder to my choice and Clonezilla runs from my restored images now!! The Force is Strong in you!

    – CrashAbbott
    7 hours ago



















  • Boba Fit!! Thank you so much.. that command helped me to take ownership from root, move the folder to my choice and Clonezilla runs from my restored images now!! The Force is Strong in you!

    – CrashAbbott
    7 hours ago

















Boba Fit!! Thank you so much.. that command helped me to take ownership from root, move the folder to my choice and Clonezilla runs from my restored images now!! The Force is Strong in you!

– CrashAbbott
7 hours ago





Boba Fit!! Thank you so much.. that command helped me to take ownership from root, move the folder to my choice and Clonezilla runs from my restored images now!! The Force is Strong in you!

– CrashAbbott
7 hours ago










CrashAbbott is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















CrashAbbott is a new contributor. Be nice, and check out our Code of Conduct.













CrashAbbott is a new contributor. Be nice, and check out our Code of Conduct.












CrashAbbott is a new contributor. Be nice, and check out our Code of Conduct.
















Thanks for contributing an answer to Ask Ubuntu!


  • 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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1108865%2ffile-permissions-on-recovered-folders%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

Category:香港粉麵

List *all* the tuples!

Channel [V]