Copy arch to new disk = screwy user permissons

I copied arch to a new disk today, using an ubuntu 10.04 live cd...
I've gotten my system up and running but it seems i'm having some user permission problems
startx wont start...
[ryan@psychicstate ~]$ startx
mktemp: failed to create file via template `/tmp/serverauth.XXXXXXXXXX': Permission denied
/usr/bin/startx: line 156: cannot create temp file for here-document: Permission denied
and sudo is broken
[ryan@psychicstate ~]$ sudo cp
sudo: must be setuid root
I should also note that I issued a #chown -R ryan /home/ryan/* thinking this would fix some things....
Help?

I typically go with a fresh install for this. A couple of tips:
1) Save important files in /etc like rc.conf, any xorg customizations, and anything else you may have tinkered with in there. I, personally, make routine saves to a seperate HD that I mount for backups.
2) Save all of the contents of /home/ryan to an external source and "copy" to the new /home/ryan after you have logged into the new system as ryan. Using copy this way will inherit the ownership of the current user who executes the copy command and avoid most (if not all) potential permissions/ownership issues.
3) You can copy the contents of /var/cache/pacman/pkg (assuming you haven't cleared this) to an external source as well and then copy to the new system. This will save you a bunch of time as the packages won't need to be downloaded when installing.
- Swill

Similar Messages

  • After copying Arch to new SSD, KDE permission problems.

    Following instructions in this thread:https://bbs.archlinux.org/viewtopic.php?pid=596228
    1. Boot a Ubuntu livecd
    2. mount /dev/sda1 /mnt/old
    3. mount /dev/sdb1 /mnt/new
    4. cp -rav /mnt/old/* /mnt/new
    5. umount /mnt/old
    6. mount -o bind /dev /mnt/new/dev
    7. mount -t proc none /mnt/new/proc
    8. chroot /mnt/new /bin/bash
    ---1. grub-install /dev/sdb
    ---2. exit
    9. Exit and reboot
    And modifying /etc/fstab
    My Archlinux boots fine but some problems occur:
    1. 20s delay for no reason after KDM login.
    2. No sleep option in leave menu or power management settings.
    3. networkmanager is running fine but kde plasma widget for it shows networkmanager is not running and asks me to start it.
    4. The battery monitor of KDE seems to lose access to power management and battery.
    5. cannot change settings in kde systemsettings--login screen.
    I guess it is caused by some file copying permission problems or symbolic link problems. So how can I figure it out?

    that's why you should use rsync -a and not cp.

  • Aliases failing after migrating to new disk

    I migrated from my original 500GB disk to a new 1TB disk by using Disk Utility's "Restore" function.  For those of you that are not familiar with Restore, it should be the highest fidelity form of coping a partition given that it does a "block copy" - e.g. it copies the data byte-by-byte instead of doing a file based copy.  Also it verifies after the copy is done.  In my opinion, it is the gold standard for copying an entire partition.
    The new disk booted up fine, but I was surprised to find out that about half of my 190 aliases were broken.  When I looked inside the alias files themselves I saw that they contain a lot of data, including a path to the target file.  In all cases where the aliases stopped working on the new drive, this path was not correct.  In other words, I had moved the target file on the old drive before cloning the whole partition onto a new drive.
    I reinstalled the old drive and verified that all my aliases were in fact functioning so this was not an issue in on the source disk.  The aliases were able to work properly even with outdated path data in them.
    After doing some reading on how OS X aliases work, I found out they use multiple ways to find the target file.  If the path inside the alias is not good, OS X has other means to find the original target file.  But somehow this broke after copying to the new disk.
    So the question is if there is a way to force aliases to get refreshed so that all their data is correct?  In other words, before I do a migration to a new disk, can I run some command that causes all the aliases on my existing disk to be resolved to their targets and then have the contents of the aliases be made fully consistent with that resolved target data.  This would fix the broken paths in the aliases which would allow them to work after the migration to the new disk.

    Try this:
    Make a folder on your destop called F.
    Inside folder F make two subfolders called A and B.
    Inside A create a text file called T.
    Now creas an alias to T which we will call T.alais.
    Test out T.alias.  It should open T.
    Now move T to folder B.
    Again, test out T.alias.  It should open T even though it has been moved.
    Now use CCC to copy F to another disk.
    Delete the original F and empty the trash.
    Now try to open T.alias.  It will fail.
    The reason it fails is that you moved the target of an alias (from A to B) then copied the whole thing (both alias and target) to a new disk.
    I just tried it and it failed for me.
    This is what happens to me en-mass when I move from one disk to another.

  • New disk and Leopard install, need existing .Mac iDisk files

    I just had to replace my hard drive in my Macbook. So, my Macbook has a fresh install of OS X (NOT a restore from backup). Most of my important files are on my .Mac (now MobileMe) iDisk. I would like to just mount my iDisk, and let all the files on the server populate the local copy on my new disk.
    However, some time ago, I seem to recall that when I used System Prefs to "Start" the iDisk Sync for the first time on a new machine, the result was that my new machine's "empty" iDisk tried to replace (erase) the one at .Mac. How do I safely enable iDisk Sync so that my local iDisk receives a copy of my .Mac's iDisk, and not the other way around?

    Leslie Worley wrote:
    I just had to replace my hard drive in my Macbook. So, my Macbook has a fresh install of OS X (NOT a restore from backup). Most of my important files are on my .Mac (now MobileMe) iDisk. I would like to just mount my iDisk, and let all the files on the server populate the local copy on my new disk.
    However, some time ago, I seem to recall that when I used System Prefs to "Start" the iDisk Sync for the first time on a new machine, the result was that my new machine's "empty" iDisk tried to replace (erase) the one at .Mac. How do I safely enable iDisk Sync so that my local iDisk receives a copy of my .Mac's iDisk, and not the other way around?
    While someone here might have the answer, you will probably get one quicker in the mobileme sync forum here:
    http://discussions.apple.com/forum.jspa?forumID=1264

  • Disk utility's encrypted drives and user permissions

    I've decided against using filevault based on some of the feedback and research I have conducted. I am still interested, however, in encryption of some documents. I have used the Disk Utility to create a 128 bit encrypted .dmg image. I mount it using my user account, but only as r-x. I see that root has write permission, and so I assume it is safe to write to these drives. What is the best way to make it so that my user account has rwx permissions? I could manually do a chmod each time I mount the drive, but that seems silly. Also I noticed that apple doesnt seem to mount drives using the same files as linux, so I'm a little confused. Could someone please provide some insight to this. Also, *put on tin foil hat* how secure is this? When I access the drive is it writing unencrypted data to the swap file? thanks,

    Hi, iMacGyver.
    A. You wrote: " I have used the Disk Utility to create a 128 bit encrypted .dmg image. I mount it using my user account, but only as r-x. I see that root has write permission, and so I assume it is safe to write to these drives."Were you logged in as root when you created the dmg? Or did you create a read-only image from a folder containing the documents?
    To create a disk image to which you can add/remove documents and on which you will have Read/Write permissions:
    1. Log in to your account.
    2. Launch Disk Utility.
    3. Select File > New > Blank Disk Image...
    4. In the New Blank Image window, type a name for the new disk image in the Save As field, then select a location for saving the disk image, the desired Size, Encryption (select AES-128 in the pop-up menu), and leave Format as "read/write disk image."
    5. Click Create.
    6. Provide a password for the disk image when prompted. If you want extra security, de-select the option to save the password in your keychain, but be sure to never forget the password if elect to not save it in your Keychain.
    You can then double-click the disk image you just created, type the password when prompted, the disk image will mount, and you can add files to it. Ejecting the disk image will unmount it and all the content you added will be encrypted.
    One can use Disk Utility > File > New > Disk Image from Folder... to create either a Read Only or Read/Write encrypted disk image of an existing folder of documents, but if you elect to make it Read/Write there isn't much spare capacity for adding documents as the size of the disk image is based on the size of the folder.
    Also, if your comfortable with Terminal, you can look into the hdiutil command for creating and managing disk images.
    For example, if in step 4 above you selected the format as "sparse disk image", you'd later need to use the hdiutil command to compact the sparse image to recover disk space from files deleted from the spares disk image. Spare disk images are always Read/Write and only occupy as much hard drive space as the data they contain, e.g. a 100 MB sparse disk image containing 30 MB of files only uses 30 MB of hard disk space: they grow as files are added. A conventional R/W disk image of 100 MB in size takes up 100 MB of hard drive space even if it is empty.
    However, when you delete files from a sparse disk image, the amount of hard disk space it occupies does not decrease until you compact it using the compact verb of hdiutil. Disk Utility does not expose all of hdiutil's functions.
    B. You wrote: "Also I noticed that apple doesnt seem to mount drives using the same files as linux, so I'm a little confused. Could someone please provide some insight to this. "I don't understand what you mean. You'll need to be more specific.
    C. You wrote: " Also, *put on tin foil hat* how secure is this? When I access the drive is it writing unencrypted data to the swap file? thanks"To use encrypted swap files, select "Use secure virtual memory" in System Preferences > Security. Depending on the applications you use, there may be a slight performance reduction with encrypted swap.
    D. Your questions imply you're new to Mac. While you may be familiar with Linux, there are differences, especially in doing things through the GUI. If that's the case, my "Learning About Mac OS X" FAQ has a number of resources that you will find helpful including books, online training, and more.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X
    Note: The information provided in the link(s) above is freely available. However, because I own The X Lab™, a commercial Web site to which some of these links point, the Apple Discussions Terms of Use require I include the following disclosure statement with this post:
    I may receive some form of compensation, financial or otherwise, from my recommendation or link.

  • . . . was wondering: Would you happen to know if, Adobe CS5 Design Premium in compatible or incompatible with MS WIN8.1? I bought a new Dell XPS 9530 -- with NO CD drive. I copied my CS5 install disk to a Flash Drive, then ran the "install" on my new

    . . . was wondering: Would you happen to know if, < Adobe CS5 Design Premium > in compatible or incompatible with MS WIN8.1? I bought a new Dell XPS 9530 -- with NO CD drive. I copied my CS5 install disk to a Flash Drive, then ran the "install" on my new computer. I had the ownership S/N, so-o-o-o, CS5 installed and "seems" to respond well. PROBLEM: PhotoShop. The Menu Bar, the Commands, the Tool Bar, the Color Palettes, and etc., etc., are all real small on my display -- I would estimate they are about 1/3 of the normal size. Same problem with Illustrator. I've made all the Screen Resolution and Print-Size settings and nothing remedies the small display. (My working page is fine; it's just the display that is REAL tiny!!) Can you help me? Do you have any suggestions for me to try? Should I re-install from the internet? Am I forced to upgrade my application? I appreciate any comments you might have. Thanks. -- Dennis

    @saratogacoach,
    The key log entry is the following:
    Feature: Microsoft_VC90_CRT_x86_
    Action 10:31:26: PublishProduct.  Publishing product information
    [    5888] Thu May 06 10:31:27 2010   INFO
    .An error occurred during the installation of assembly  component {43CC1B37-B20C-3EBC-9C04-F809989E4FD3}. HRESULT: 0x80073712.
    Action  ended 10:31:27: InstallFinalize. Return value 3.
    First, see if this hotfix maybe applicable to your system
    http://support.microsoft.com/kb/946927
    or this one:
    http://support.microsoft.com/kb/902330

  • HELP Compaq 615 disk upgrade and recovery partion and C: copied to new disk

    Hello there,
    I have a 615 laptop that I neede to upgrade its capacity from 160 GB  so i bought a seagate momentus 500 GB disk.
    I want to ask if there is something I have to do ( eg change bios settings or anything else) so that the new disk is identified and also it is important for me to copy the recovery and old C part with my operating system in the new disk.
    Please help
    Thanks a lot for your time  

    Hello there,
    I have a 615 laptop that I neede to upgrade its capacity from 160 GB  so i bought a seagate momentus 500 GB disk.
    I want to ask if there is something I have to do ( eg change bios settings or anything else) so that the new disk is identified and also it is important for me to copy the recovery and old C part with my operating system in the new disk.
    Please help
    Thanks a lot for your time  

  • Copy Users/Permissions/objects from a database to another database

    Can anyone help me how to copy users, permissions, stored procedures, views, functions and all other objects from one database to another database.
     I need a SQL Script to get this job done. I cannot use backup restore or SSIS Package.

    There's also a transfer sqlserver objects task available in SSIS
    http://www.mssqltips.com/sqlservertip/2064/transfer-database-task-and-transfer-sql-server-objects-task-in-ssis/
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Disk Utilities - How do I create a new Start-up Disk to repair permissions

    I believe that the Disk Utilities program updates with Software Updates. To run the new Permission Repairs, I believe I am supposed to boot from a separate disk to make repairs to the master system on the computer. How do I make a separate, stand-alone disk that will launch my computer and allow me to run the new Permission Repairs.
    Thank you,
    Charles

    Normally you Repair Permissions while booted from your Boot Drive, but in a pinch, you can do it from the Install Disk.
    Repair Permissions uses the list of PKGs in Library Receipts to get it's info, so if you must do it from the Install Disk, you should do it once again from the Bot Disk.
    Is it not booting from the Hard Disk?
    Only Disk Repairs, not Permission Repairs need to be run from other than he Boot Drive.
    DiskWarrior can fix both Disks & Permissions if you get the CD...
    http://www.alsoft.com/DiskWarrior/

  • Unknown User Permissions - Erase and Install Backup Plan

    Hi everyone,
    I upgraded from Tiger and therefore have the unknown user permissions problems. I'd like to erase and install my system and am writing to verify the following:
    If I copy my data (with the funny permissions) to a Powerbook in Firewire Disk Mode, reinstall Leopard on my new iMac, then copy the data back from the Powerbook in disk target mode, will the permissions be fixed?
    Thank you, Tom Bertram.

    Thomas,
    If you are talking about the "unknown" group problem seen in the permissions portion of Get Info, be aware that Apple is in the process of putting out a Knowledge Base article to address this and it may be wise to be patient a little longer.
    The user accounts inherited from Tiger belong to a "group" that has a missing piece of information -- a group name that Leopard wants. The installer should have dealt with this but it didn't. Anyway, a couple of simple Terminal commands can fix this for each such account. Once the Group description is proper, there will no longer be any need to change the group membership of your files.
    Unfortunately the first couple tries Apple made of describing how to do this appear to be in error. See the following thread:
    http://discussions.apple.com/thread.jspa?threadID=1280472&tstart=0
    The correct commands should be posted by Apple shortly and then you can resolve this without having to do a whole re-install.
    --Bob

  • Hard drive volume appears in sidebar Favorites when new disk mounts

    Hard drive on my 17” MacBook Pro Quad Core i7 (2.5 GHz, 8GB SDRAM OS 10.8.2) is partitioned into 4 volumes; I'll call them A-Mountain Lion startup drive, B-Personal, C-Work, D-minimal clean Mt. Lion for emergencies. Problem relates to my regular boot drive.
    I have Finder sidebars set to show 8 or 10 folders in the "Favorites" section and have ticked all boxes in the "Devices" section. Most of the time I have no external disks, CDs, etc., connected to the MBP, so the Devices section generally shows my computer and the four partitions. So far, so good.
    Lately, every time an external volume is mounted and every time a disk image is mounted, the Personal volume (B) of my internal drive, which is already showing under Devices, also pops up in the Favorites section of the sidebar. I remove it from the Favorites, but the next time an external disk or a disk image mounts, there it is again. It's always volume B, never A, C, or D.
    I have tried everything I can think of to cure this odd behavior: Used Disk Utility (verify all disks/volumes; repair volumes; repair permissions; etc.), though nothing seemed wrong. I've run Disk Warrior on all volumes. I cleaned out everything possible on the startup drive (A) with the latest version of Onyx. I've repeatedly trashed the plists I could identify in my user Library that had "sidebar" or "finder" in their names. I've logged in and out; started and restarted; started with shift key down. Still, every time a new volume or disk mounts, up pops this extra volume B among the Favorites (where it shouldn't be). I checked and unchecked various combinations of sidebar items in Finder Preferences. I've Forced Quit the Finder. It doesn't matter whether all, some, or no devices are checked; when a new disk mounts, there's the extra volume B again.
    I have only two other clues to add. (1) I created a new temporary user account on my startup drive (volume A), and this behavior did NOT occur in the new account. (2) This same behavior had arisen once before, a couple of months ago. I went through similar blind attempts to cure it then, but at some point I must have done something right because I it got fixed. For the life of me, I can't remember which of all the things I tried did the trick.
    Many thanks to anyone who can shed light on this annoying behavior.

    I can add a bit to my earlier description. I had said the problem did not occur in a new user account. Well, after using the new account for a while, it showed up. Eventually I erased the startup volume and installed Mountain Lion (plus updates to 10.8.2) fresh. I used migration assistant to transfer only my old user, pared down applications, and network settings -- no preferences, application support stuff. The old user carried over the problem. But I immediately created a new user and have been working from it for the past two weeks, very gradually opening apps, adjusting settings, etc., and testing for the anomaly at each change. In some cases I did move preferences from a backup clone, but was always careful to test after each addition. All was well for a week, until one morning I noticed the data partition had appeared in sidebar Favorites. So I'm back to where I was. I had been documenting each change or introduction I made. The only things my notes said from the day before the sidebar anomaly appeared was launching and struggling to activate QuarkXPress 9.3, and copying over my old prefs and settings for TextWrangler. I completely removed every trace of QXP, but the problem remained. (I did not remove TextWrangler because I just can't believe it could be the culprit -- but could it?)
    I also noticed a similar (though maybe not identical) problem posted in another thread <https://discussions.apple.com/message/20591050#20591050>, but so far no answers there either.

  • Creating a new disk inage

    I am trying to make a new dvd from another one and in disc utilities when new image is clicked the error message tells me "permission is denied. " If I click, verify permissions, before clicking New Image it tells me"Not available because the selected disk is set to ignore ownership." The disk I am trying to make a copy of has an allowance of 100 copies from the author.
    How can I fix this??? Also my disk self ejects sometimes 20 seconds after I insert it.

    Duplicate a CD or DVD
    1. Insert the DVD/CD;
    2. Open Disk Utility, and select the DVD/CD from the left side list (select the DVD/CD icon on top);
    3. from the DU File menu select New | Disk Image from Disk 1;
    4. Choose to format the disk image as DVD/CD Master, name the disk image and click Save;
    5. When the .cdr file is finished select it with mouse and press COMMAND-I to open the Get Info and check the box to lock the file;
    6. Choose the .cdr file from the left side list, click Burn, and insert a new, blank DVD or CD.

  • Restore Files & App's From Damaged Start-Up Disk (10.4) to New Disk (10.5)

    I appreciate any help all of you can give me. This is kind of a weird one, so I'll try and be brief. I have a G5 that had problems with a malfunctioning start-up disk. I purchased a new hard drive and went to install 10.4 and found that it was an upgrade disk, not an original install disk. As the computer had a former owner, I originally purchased it and all of its software from him but evidently I only got the 10.4 Upgrade disk from him, not the full install. I have since purchased Leopard and installed it on the new start-up disk. Diskwarrior and Disk Utility will both allow me to open my old disk in a read-only manner, but I'm wondering now if there is an easy way to move all of my app's, files, email's, etc. over to the new disk.
    I did partition the disk so that I could make an image and copy over the old disk to the new partitioned volume, but since it would then have a copy of 10.4 on it will this cause issues with my start-up volume running 10.5? Will my app's run alright under Leopard? What about running the files from that disk? Also since I had directory issues, I'm worried that by making an image and copying to the new one I may create more issues (Diskwarrior would not replace the old directory due to a disk malfunction).
    I could reinstall most of the app's (include Final Cut Studio, Adobe After Affects, etc.) but I'm just not looking forward to going through each one individually. Also, is there an easy way to copy over my user files (doc's, email's, etc.) from that old drive?
    The biggest thing is I just don't want to screw up the new drive and install. Any advice would be greatly appreciated! Thank you in advance!

    Did you do the Super Duper clone before you tried to reinstall the OS? If so, the original install disc is likely earlier than 10.4.11, and that may be why you are getting the message.
    When trying to reinstall the OS, did you select the "Archive and Install" option? If not, you might try that. Here's a link that might help:
    http://docs.info.apple.com/article.html?path=Mac/10.4/en/mh1103.html
    Good luck!

  • Original iMac will not boot from new disk

    I am having considerable difficulty getting a new disk to boot in an original 'Bondi blue' iMac.
    I think I have researched this issue reasonably well and found a few references to it but no solution. I have more resources than most and have tried every trick I know. The story at the following link is not dissimilar to my experience:
    http://www.applefritter.com/node/20518
    Details:
    iMac - original 233 MHz revision A with 160 MB RAM
    New disk - 120 GB 7200 rpm Western Digital disk type WD1200SB
    Format - HFS+ with 7 GB first partition and 107 GB second partition
    Jumpers - both CD and disk set to master - normal for this iMac I believe
    The iMac will seldom boot from OS X 10.3 on first partition or OS 9.2.2 on second partition with or without the other OS totally removed. I have reformatted several times and played with several disk drivers. I have zapped PRAM a few times. I sometimes get a grey screen but more frequently get a flashing question mark.
    I can mount both volumes when booted from a CD and every test shows that they behave as expected. The disk boots properly in a G4.
    I am prepared to try anything but I would particularly appreciate advice from somebody who knows what the problem is.

    Eureka - it works - thanks very much.
    It now boots from OS 9.2.2 on both partitions every time. I have yet to replaced the OS X that I removed earlier but I am not expecting difficulties.
    My view is that http://docs.info.apple.com/article.html?artnum=25249 is badly written. I assume that item 4 should read 'OS X' and not "Mac OS". It may have been written on the assumption that users only want OS X and Classic on a single partition. My experience, particularly with early iMacs, is that it pays to have 2 bootable partitions and it is expedient to have OS X on one and OS 9.2.2 on the other with the OS 9.2.2 being used for Classic and for direct booting into OS 9.2.2.
    My error was in paying insufficient attention to
    http://wdc.custhelp.com/cgi-bin/wdc.cfg/php/enduser/stdadp.php?p_faqid=1277&pcreated=1095792241#jumper
    which clearly indicates jumper positions for single drives although a few words about it would underline the point. I had already discovered that these iMacs normally have both CD and disk set to master so should have realised that strictly they are 'single drives'. I had initially used the clear, but misleading, drive silk screen printing, ie CS, slave, master to set the jumper but should have changed it when checking the WD site later. Perhaps they could use this thread to update their FAQs - I will mention it to them.
    In answer to those, on this thread and elsewhere, who were not happy with my sloppy copying of OS 9.x, I discovered some years ago that as long as you 'blessed' the end result in situ with one of the free OS 9.x updaters it is surprising what you can get away with. - I am not advising anybody to do this unless it is within the terms of their Apple license!
    Now I wonder if I should stick with OS X 10.3 or if it is worth trying OS X 10.4 with
    http://eshop.macsales.com/OSXCenter/XPostFacto/Framework.cfm?page=XPostFacto.htm l
    Does anybody know how satisfactory it is and if it has serious memory or speed implications? My only slightly unusual software is Cisco VPN client.

  • New Disk Image - Says my iPhoto Library is locked?

    I am using OS X 10.9.1. I created a new disk image so that I can share an iPhoto library between two different users on the same Mac. When I try and open iPhoto having linked the new library it says that I cannot because either the library or the disk is locked or I do not have permissions. I have checked the sharing set up for both the new library and the drive but I can not find anything wrong. Any suggestions?

    directions are here - http://support.apple.com/kb/HT1198
    However it generally is much more successful to use the external hard drive with ownership ignored option than the disk image option
    LN

Maybe you are looking for

  • JavaBeans VS Enterprise JavaBeans

    Hi everyone, I hope someone can clarify this little problem for me. I am a starting developer with the J2EE technology. I am impressed what it is capable of and I want to continu my study in it. I have been using JavaBeans for a while now and I have

  • Settlement of WBS with Partially Released status

    Hi colleagues, We are encountering problems during our settlement to AUC. Although the settlement rule is maintained, the system does not allow us to post the settlement to a WBS with "PREL" (partially released) status. Is this really the standard of

  • Openldap client compile in Solaris 8/9

    Did anyone compile openldap client with ssl/TLS in solaris 8/9 platform and authenticate against SUN one iplanet directory server 5.1 sp2 successfully? I cannot get the openldap client talk to the IDS ? Thanks DMA

  • Why do I periodically have emails that cannot be deleted?

    I have a few emails that cannot be deleted and show up with an old date.  How can I get rid of them?

  • Oracle Utilities Network Management Systems

    Please let me know if there is a place to get the User Guide for Oracle Utilities Network Management System (Formerly SPL) Thanks,