Ubuntu Installation :: Copy /home Without Losing Permissions?
Nov 16, 2010
I backed up my "/home" and "/usr" folders from a previous installation.How can I copy them on to my new installation without losing my permissions?I tried using nautilus, but everything had "Root-only" permissions after I pasted the files.
I tried to install rawhide by enabling the rawhide repo and doing a yum update. Lets just say it didn't go so well. My system wont start the GUI when I start the computer. It just shows the Fedora boot animation and stays there. So anyway I need to reinstall Fedora 14. I wanted to reinstall Fedora without having to backup and restore all my data (my home directory). So I did some Googleing and found that if I had my home directory on a separate partition that I was set to go. All I had to do was format "/" and just tell it to use the "/home" partition I already had and not to format it and I that was it. So I went to try it myself and found that it was not as straight forward as it seemed. Well at least for me.
I clicked on "lv_root" assuming that was supposed to have "/" as its mount point. I clicked the edit button. I selected "/" as its mount point and told it to format it as ext4. Then I clicked on lv_home and clicked on the edit button. I made its mount point "/home" and clicked "ok". I clicked "Next" and I get this error "Bootable partitions cannot be on a logical volume". What do I need to do to fix this? I assume this has to do with the "lv_" at the beginning of the partition names.
I am currently running Ubuntu Studio (a variant of Ubuntu 10.10), dual-booted with Windows 7. For convenience's sake, I have three partitions - one for 7, one for Ubuntu, and a third shared partition, for all of my non-OS-specific media, documents and programs. I am using RhythmBox Media Player, and have it pointed at a folder on the shared partition as a music library.
However, every time I boot, I have to re-mount the shared partition, which requires re-entering my login password. In a similar vein, when I'm installing programs in terminal (doing 'sudo apt-get install [x]'), I have to re-enter my password each time I do a sudo command. Is there any way to keep super-user permissions until I choose to drop them myself? Better yet, can I make it so that logging in as the admin account automatically instates super-user privileges?
I have an Ubuntu 11.04 laptop that I use to connect to a Windows 7 server. Everything was working fine until the hard drive on the server crashed and it was replaced with a backup. Now I intermittently lose access to the shares with Nautilus giving me the following message:
"The folder contents could not be displayed.You do not have the permissions necessary to view the contents of Folder"
When I look at the mount points in terminal I see the following:
Where Folder is the mount point.My fstab looks like this, although I must point out that I have tried virtually every possible permutation with no change.
Sometimes the permissions will revert back by themselves, sometimes I need to umount and mount to get back in.I have tried deleting and recreating the mount points. No change.It is driving me up the wall, I have tried everything I can think of, installing/uninstalling winbind, the fuse modules etc etc. I use this machine as a production machine in a heterogeneous environment and everything works awesomely except for this. I love Ubuntu, I can't even think of booting Windoze these days but not being able to access the network shares is a right show-stopper for me.
I just love the synch of Evolution contacts to Ubuntu One via Couch DB. However: When I copy contacts from Evolution Personal contacts to Couch DB, I lose all of the first names of my contacts. Example: [Full Name]Peter Smith becomes [Full Name] Smith.
I installed a new 11.04 on my Thinkpad in place of the old 10.10 system, so it replaced the old /home with a new empty one. But I had previously done a partition copy of the original 10.10, complete with /home to a spare HDD so now I can copy that /home in place of the new empty /home. What's the best way to do that? Should I use 'dd'? Should I use Nautilus? Or should I partition-copy that copy of the 10.10 onto available space on the thinkpad 11.04, then manipulate the partitions to consolidate? Maybe create a separate /home partition?
I've been using Ubuntu for the past 4 years or so and would like to give Fedora a try. I have a question - should I decide to ditch Ubuntu for Fedora I will want to install but keep my Home folder.Normally whenever I've reinstalled Ubuntu I've installed over top of my existing installation. I have 3 partitions: 1 - Root 2 - Swap 3 - Home
When I reinstall I normally format root and swap but keep home and choose my usual user name. hen I boot up after install all my settings for all my apps are retained.
If I install Fedora this way (keeping Home while formatting Root and Swap) will I get the same results?
I tried to install rawhide by enabling the rawhide repo and doing a yum update. Lets just say it didn't go so well. My system wont start the GUI when I start the computer. It just shows the Fedora boot animation and stays there. So anyway I need to reinstall Fedora 14. I wanted to reinstall Fedora without having to backup and restore all my data (my home directory). So I did some Googleing and found that if I had my home directory on a separate partition that I was set to go. All I had to do was format "/" and just tell it to use the "/home" partition I already had and not to format it and I that was it. So I went to try it myself and found that it was not as straight forward as it seemed. Well at least for me.
I clicked on "lv_root" assuming that was supposed to have "/" as its mount point. I clicked the edit button. I selected "/" as its mount point and told it to format it as ext4.Then I clicked on lv_home and clicked on the edit button. I made its mount point "/home" and clicked "ok".I clicked "Next" and I get this error "Bootable partitions cannot be on a logical volume". What do I need to do to fix this? I assume this has to do with the "lv_" at the beginning of the partition names.
I tried to install rawhide by enabling the rawhide repo and doing a yum update. Lets just say it didn't go so well. My system wont start the GUI when I start the computer. It just shows the Fedora boot animation and stays there. So anyway I need to reinstall Fedora 14. I wanted to reinstall Fedora without having to backup and restore all my data (my home directory). So I did some Googleing and found that if I had my home directory on a separate partition that I was set to go. All I had to do was format "/" and just tell it to use the "/home" partition I already had and not to format it and I that was it. So I went to try it myself and found that it was not as straight forward as it seemed. Well at least for me.
I clicked on "lv_root" assuming that was supposed to have "/" as its mount point. I clicked the edit button. I selected "/" as its mount point and told it to format it as ext4.Then I clicked on lv_home and clicked on the edit button. I made its mount point "/home" and clicked "ok".I clicked "Next" and I get this error "Bootable partitions cannot be on a logical volume". What do I need to do to fix this? I assume this has to do with the "lv_" at the beginning of the partition names.
I am running ubuntu 11.04 I'd like to encrypt my home folder. - how can it be done, without creating new user/starting from scratch. -I'd like to keep all the files and desktop settings - the only change should be that the folder is encrypted now.
My laptop has Ubuntu as a dual boot. Many times I want to copy files from one folder to another. But I run into permissions problems.
For example, I downloaded a program that required me to put a rules file in /etc/udev/rules.d But when I tried to do that, I got an error: "permission denied"
Is there any way to change permissions on folders so that I can freely copy them from one folder to another? That would make life a lot easier.
I have two HDDs in computer, one with ntfs and windows on it and second with btrfs. I want to get data on that btrfs disk. I boot with bootable USB stick with ubuntu on it but I found out that I cannot copy anzthing. I dont have permissions. How to change that. I am logged in as nobody here in USB stick, and files are probably locked as mz previous username when I create them.
I have a comp with Snow Leopard/Windows/Ubuntu 10.4 on it. What I'm trying to do is set permissions to let me copy files from the Snow Leopard partition. I use to be able to. Now I get Permission denied. What do I need to do to set up permissions to the hfs+ journaled partition?
I have a system where the permissions of many files are messed up. I have another system that has the same files, if I put that hard drive in, without simply overwriting the files, is there a way where I can recursively set the permissions of each file to that of this other directory?
I have a question regarding Samba Permissions. As the subject described, is it possible to let users read the file but can not copy the file physically? It's fine if they open and copy paste the contents but no physical copy paste and also I need to log the activity of the users. If samba will not be able to comply my needs, could you suggest some programs to meet my requirements?
I am using Joomla and a script within it. That Script is suppose to copy tables from one DB to another.
Code: Error(1) [1142] query [CREATE OR REPLACE VIEW test_users AS SELECT * FROM `localiz_master`.`jos_users`]. DB Error: CREATE VIEW command denied to user 'localiz_master'@'localhost' for table 'test_users' SQL=CREATE OR REPLACE VIEW test_users AS SELECT * FROM `localiz_master`.`jos_users` Error [1142] retrying query [CREATE OR REPLACE VIEW test_users AS SELECT * FROM `localiz_master`.`jos_users`]. DB Error: CREATE VIEW command denied to user 'localiz_master'@'localhost' for table 'test_users' SQL=CREATE OR REPLACE VIEW test_users AS SELECT * FROM `localiz_master`.`jos_users` localiz_master: name of the DB from which data is suppose to be copied. jos_users: name of the table form the main DB. localiz_master: user for the DB. localhost: host test_users: name of the table to be created.
We do have phpmyadmin but the user's table is hidden. What SSH command we might run to make localiz_master user have access to all the databases.
I did a clean install from Ubuntu 09.04 to 10.04 and restored my files from tar. Everything worked fine until I tried my weekly rsync backup. The permissions seemed to be causing problems, so I recursively changed all the permissions in my home directory:
Code: ~/Documents$ sudo chmod -R 644 /home/wolf/ [sudo] password for wolf: chmod: cannot access '/home/wolf/.gvfs': Permission denied So now all the directories and files have read permission for everyone:
Code: ~/Documents$ ls -A ls: cannot open directory .: Permission denied ~/Documents$ sudo ls -lA [sudo] password for wolf: total 80 drw-r--r-- 2 wolf wolf 4096 2010-05-22 20:45 career drw-r--r-- 23 wolf wolf 4096 2010-05-02 17:17 computer_languages drw-r--r-- 2 wolf wolf 4096 2009-08-09 23:29 .ecryptfs drw-r--r-- 21 wolf wolf 4096 2010-05-02 17:23 misc -rw-r--r-- 1 wolf wolf 27298 2010-05-23 13:01 next.odt drw-r--r-- 3 wolf wolf 4096 2010-05-23 15:46 PC_maintenance drw-r--r-- 5 wolf wolf 4096 2010-05-08 01:43 software_projects Now I can't even look at my own directory:
Code: /home$ cd /home/ /home$ ls -lA total 20 drwx------ 2 root root 16384 2010-05-07 01:01 lost+found drw-r--r-- 42 wolf wolf 4096 2010-05-23 15:35 wolf /home$ cd /home/wolf bash: cd: /home/wolf: Permission denied /home$ sudo cd /home/wolf [sudo] password for wolf: sudo: cd: command not found /home$
I have a NTFS drive mounted at /media/bigbrother as my user. I have no trouble reading or writing to files here. I just created a link to /var/www using: ln -s /var/www /media/bigbrother/
The link is there however, I can't even open the folder. How should I go about getting access. So that I'm able to copy files from other systems on the network.
I am confused that what should be the permssions of home directory because currenlty my users when they log into their home directory , they can see all the contents of /home directory as well..However if i take read all permissions then my sites are not accessible , what should i do The current permissions are 755
i'm having trouble with my fresh ubuntu installation (netbook edition). what i did was install xubuntu-desktop on top of that (wanted to check it out)..........didn't really work for me, so i removed it, hoping this would also remove the xubuntu desktop logon screen, which i didn't like. since this wasn't the case, i went to synaptics and removed all and everything with xubuntu in the title. NOTE: in the same session i turned off password requests for login - it could also matter, but i'm not sure, so i thought i'd mention it. the end result: three warning messages at logon
- Could not update ICEauthority file /home/dsikl/.ICEauthority
- There is a problem with the configuration server. (/usr/lib/bgconf2-4/gconf-sanity-check-2 exited with status 256)
- Nautilus could not create the following required folders: /home/dsikl/Desktop, /home/dsikl/.nautilus. Before running Nautilus, please create these folders, or set permissions such that Nautilus can create them.
i don't have access to my programs, administrator tools, /home folder, nothing.........the only thing that appears is the right part of the top bar (network, clock etc.), but also completely different.......it doesn't have my WLAN data anymore (can't access it), and all i have managed to get started was (accidentally) terminal with Ctrl-Alt-T, and from there I can use sudo, or even start nautilus, but can't access my own user, no matter what.........in the end i somehow managed to get to the point where it requested my passphrase, which i wanted to print out a day before it happened, but didn't and the screenshot is unfortunately within my /home folder. i tried reinstalling xubuntu-desktop, even ubuntu-desktop, i repaired broken packages from the recovery mode, tried everything i could to get the bugger going again, no success yet.
i would be happy to do a clean install, but there's one spreadsheet in the documents folder which i desperately need and i really need to get a hold of it before formating. could some sort of a rescue livecd help? i just need that one file. the easiest would be if i could somehow repair whatever packages may be broken, or manually (with apt-get or similar) reinstall the additional xubuntu packages i manually removed via synaptics, but i wouldn't have a clue what those were
I would like not check first, and if not ok, then to write the permssisions. Means no use to write endessly on disk if not needed. How to check and fix the permissions to avoid writing (chmod o-rwx /home/*) ?
I just installed virtualbox and installed windows xp on it. I need windows xp for compiling my Lazarus (Free Pascal Compiler) projects in it, so that something I program on ubuntu works on Windows too. Windows works correctly on the virtual machine, there is just one problem. How do i copy a file from ubuntu(for example from/home/user/downloads) into the C drive of windows(Windows is installed on the virtual machine)
When I am creating a user (say sandy) on my FC14 system, I find that the default permissions for her home directory (/home/sandy) are 700.Can I somehow set up my system so that these permissions are 711 in place of 700.
I had Fedora 7 and Windows-XP dual operating system. Few weeks ago, there was GRUB error. Now I want to install Fedora 14, but before it I want to back up all data in one external hard drive. I used Fedora 13 live-CD I could access all the drive formatted as NTFS, but I couldn't access /home and the drive formatted (ext2) and owned by the user-name.
Please, inform if there is any idea to copy my files that remains in the home folder. (I can see them but copying is prevented)
I've created other users in my machine. now I want to add all my home directory contents and settings to the home directory of other users. how can i do that? Can I do it from /etc/skel directory?