Results 1 to 7 of 7
I'm using Ubuntu 8.10
I was using Xubuntu but the window manager got messed up so i decided to switch over to Ubuntu.
I created another partition as a backup ...
- 12-28-2008 #1
[SOLVED] file permissions on ubuntu
I'm using Ubuntu 8.10
I was using Xubuntu but the window manager got messed up so i decided to switch over to Ubuntu.
I created another partition as a backup partition and i backed up my files.
I installed Ubuntu and everything works fine. but when i go to copy my files over from that partition it says i need root permissions so i use "sudo nautilus" and i copy all the files on the backup partition to my home folder.
but now when i try to access my files that i copied it says i dont have permission.
how can i copy the files over and give my normal account permmision to use them????Microsoft isn't evil, they just make really crappy operating systems.
Linus Torvalds
Personal and politically centrist blog.--->http://www.deathnerd.com
- 12-28-2008 #2
You have to change the ownership of copied files/folder.
Let say, UserID of Regular User is simple and copied folder name is back_up.
Navigate to the folder having back_up folder in Terminal and execute this
Above command will change ownership of back_up folder and all the files inside it.Code:sudo chown -R simple:simple back_up
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 12-28-2008 #3
You'll need to change ownership of the files to the new user profile using the chown command as su.
example:
su
(enter root password)
chown user /home
gives ownership of /home to user
You can use this command with the -R switch to make it recursive.
See
man chown
for more details.
- 12-28-2008 #4
when i ran "sudo chown" it changed the permission of the backup folders but not there files or subfolders. is there a command to change all the contents of "/media/disk" to normal permmisions????
Microsoft isn't evil, they just make really crappy operating systems.
Linus Torvalds
Personal and politically centrist blog.--->http://www.deathnerd.com
- 12-29-2008 #5
I believe the -R switch will run it recursively.
man chown for full details
- 12-29-2008 #6
heeeyyy it worked, thanx guys.
i didnt know exactly what you meant by recursively at first.Microsoft isn't evil, they just make really crappy operating systems.
Linus Torvalds
Personal and politically centrist blog.--->http://www.deathnerd.com
- 12-29-2008 #7
Glad to help you !
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First


