[solved] how to easy encrypt HOME\USER folder?

Hi Amigos!
Can somone give me easy step by step guide how to easy encrypt home directory in Linux Arch please?
I spent all day to try encrypt home directory (how I did it before in Debian) I used encyptfs-migrate-home -u [myusername] but after all encyption finished I'm unable to login to KDE to complete encyptfs-unwrap-passphrase script. I got error when KDE runing from xserver: call to lnusertemp failed (temporary directories full?)
Realy approciate your help.
Sławek
Last edited by infoslaw (2013-08-09 20:17:44)

mellowmaroon wrote:
Here are some links to Arch Linux's great documentation:
dm-crypt with LUKS
Disk Encryption
I found those two to be immensely helpful in learning about encryption on Arch Linux.
Although it looks like you might actually want this (ECryptfs ArchWiki).  I use the dm-crypt/LUKS method, but the ArchWiki for ECryptfs looks like it has a good amount of info.
Just as a heads up, be sure to search the ArchWiki thoroughly and look up what you're trying to do in general (encryption) first when you're trying to solve a problem.  The ArchWiki is very detailed and helpful.
Thank you! Can I encrypt by use dm-crypt/LUKS method whole particion in few steps? Do you know does posible to clone hdd after full encryption?
Regards,
Sławek

Similar Messages

  • How to Have a separate Users Folder on a separate partition

    I've successfully installed Mac OS X 10.5 on the 20g partition of my 200gb HD (the other "blank" partition is 180gb). Great, so installation went smoothly.
    The 20gb partition is named "sys".
    The 180gb partition is named "root".
    My dilemma, however, is that I want to have my folder (/users/username) on the 180gb parition (root) and keep ALL of apple's core system software and even all apple applications on the "sys" partition (where it is already installed).
    Without the use of aliases, how can I have my user folder entirely on the "root" partition and all other mac software on the "sys" partition?
    Thanks I sincerely appreciate any help in this matter as it would organize my file hierarchy immensely. Thanks

    dstempfley wrote:
    Speaking from a strong unix background and some admittedly limited Mac OS admin experience. I found another discussion:
    http://discussions.apple.com/thread.jspa?messageID=5820852&tstart=0
    The last two messages in the thread seem to be where the meat is. According to this you edit the fstab using vifs and add a mountpoint for /Users.
    The thread suggests that you can put a random UUID, I'm not sure if I'd try that. I found the UUID for the partition using disk utility, Ctrl-Click the partition and open up the Information menu. The UUID is in the list.
    Also you need to copy over the users from the existing /Users directory structure. The following thread discusses using rsync (the preferred method).
    http://julipedia.blogspot.com/2007/01/install-mac-os-x-over-multiple-volumes.htm l
    The thread also gives more information about the problem your trying to solve. I don't think it gets the fstab entries right for Max OS X. But you can try both methods and see which works best.
    Hope it helps,
    /Dion
    dstempfley,
    After perusing
    http://discussions.apple.com/thread.jspa?messageID=5820852&tstart=0
    a bit, it appears as though I'll have to directly change the /etc/fstab file and insert references to the disk partitions without the use of labels.
    Seeing as I want to solve this partition /users folder problem as well as further my knowledge of unix commands, anyone know any good references for deciphering what all the unix commands mean and what the acronyms stand for so I can understand, as well as apply, the commands? "man" is the only thing that comes to mind, and that is actually pretty extensive so I'll stick with that.
    As for solving this..
    "df -h" revealed
    /dev/disk0s2 20Gi 11Gi 9.2Gi 54% /
    /dev/disk0s3 166Gi 108Mi 166Gi 1% /Volumes/root
    I'm aware line 1 = "sys" and line 2 = "root", but how and where do I apply the "/dev/disk0s2" versus "/" or "/dev/disk0s3" or "/Volumes/root"?
    I think I'm going to want to mount the physical partition of /dev/disk0s3 to "/users/username" if that's possible.
    I tried changing the home dir to
    /volumes/root
    /dev/disk0s3
    and even
    /volumes/root/users/username
    but it still doesn't recognize anything other than the /users/username folder on "sys" as "home folder".
    Also, I can access /etc/fstab.hd using cd and ls -al commands but I forget how to open and edit the file.
    http://www.linuxfocus.org/English/September2004/article349.shtml
    seems to answer some core unix structure questions I'm engaging.
    From
    http://episteme.arstechnica.com/eve/forums/a/tpc/f/8300945231/m/972007530931/inc /-1
    it appears that symbolic links arent' the way to go either.
    http://macosx.com/forums/unix-x11/19249-changing-mount-point-volume.html
    shows someone trying to mount an external drive in the home directory.
    Also where is fstab (not fstab.hd)?? only fstab.hd shows up in /etc with the "ls -al" command.
    A very advanced discussion on creating a customized mountpoint system is detailed here
    http://www.macosxhints.com/article.php?story=20021011053443661.
    This article on creating a dynamic fstab file with user ids could be useful, too:
    http://www.macosxhints.com/article.php?story=20030227194830916
    This article targets creating a home folder on a seperate partition:
    http://forums.macrumors.com/showthread.php?t=116491&highlight=moveuserpartition.
    Where wrldwzrd89's post details the process, but users a symbolic link.
    Jeez, with all the long convoluted forum postings on people trying to accomplish the same objective as I'm doing, you'd think apple would make this easier to do; loading your home folder on a seperate partition isn't "that" advanced of a preference! lol.
    This is as of yet still unresolved.

  • Time machine back-ups do not show or contain home / user folder

    I back up my i-mac and macbook the same way using time machine and a hard-wired external hard drive. They both run snow leopard 10.6.5. I recently checked the contents of the back ups. The i-mac back ups contain my home user folder with all the documents in it, but the macbook back ups do not. The only difference I can think of is the file vault I have in the macbook. Do I have to turn it off to do a back up? I there a way around it?

    See #25 in [Time Machine - Frequently Asked Questions|http://web.me.com/pondini/Time_Machine/FAQ.html] (or use the link in *User Tips* at the top of this forum).

  • How do I move the /Users folder to another disk

    I have a shiny new MacPro, dual proc, with four, one TB hard drives in it, running OS X Server on Mountain Lion.  The first disk is the startup drive, the other three are simply empty, partitioned drives.
    I am to be the sysadmin for this machine (and a half dozen Macbook Pros) for my organization.  I don't want user data to exist on the startup disk on this machine.  Right now, the only user that exists is my sysadmin account.  I want the three non-startup hard disks to hold the user data.  I think that what I want to do is map the /Users folder to one (or all) of the other three hard disks, and get that data off of the startup disk.
    How do I change the location of the /Users folder?
    Assuming this is possible, or desirable, the next question would be about RAID.  I have not created any RAID arrays using disk manager yet (this Mac Pro does not have a RAID card).
    Should I first create a concatenated RAID set from the three additional disks?  I see no advantage to striped or mirrored sets, I will have a HUGE external drive for TimeMachine, and disk access speed is just fine.  But, I think I'd want drives 2, 3, and 4 to act as one big drive.  I think the concatenated RAID set is the answer to that.
    Thank you,
    Jess

    How to relocate system and user data to another drive:
    http://support.apple.com/kb/HT4337
    http://chris.pirillo.com/how-to-move-the-home-folder-in-os-x-and-why/
    I would only use TimeMachine as an add'l, not primary, or only method for backups.
    How to clone your system:
    http://macperformanceguide.com/Mac-HowToClone-backup.html
    http://macperformanceguide.com/Mac-HowToClone.html
    http://www.macupdate.com/app/mac/7032/carbon-copy-cloner
    http://www.macperformanceguide.com/blog/2012/20120711_2-MacPro-internal-clone-ba ckup.html
    With drives of 2, 3 or 4TB now why use three and the one time I used Apple's concatenate, no I didn't like the way it made use of drives. So I would either stripe or mirror, and maybe not even  using  Apple Disk Utility.

  • My user data ( music, movies, et. al.) take up too much space to fit on my SSD. How do I use the user folder I've copied to my new iMac's hard drive?

    As above. I can use Migration Assistant to move my account from my old machine, but the data are far too extensive to fit on the solid state drive. I copied my user folder over to the new hard drive, but how do I access its contents? More accurately, how do I set the folder on the hard drive as my default storage space?

    Hello, very good info here...
    http://macs.about.com/od/diyguidesprojects/qt/Move-Your-Home-Folder-To-A-New-Loc ation.htm

  • How can I access my user folder on a second boot partition?

    Hi there. Thank you for reading this. I am at a bit of a loss although I have searched several forums to find someone having the same problem:
    I use my Macbook Pro in the office and at home. To keep things strictly apart and have to separate Time Machine backup procedures, I have divided my harddrive into two boot partitions ('office' and 'private') and installed Mountain Lion on both of them. Now occasionally when I am at the office I would like to access my  user folder on 'private' to retrieve a file from the documents folder there (e.g. a paper I gave in my free time but would like to send to a colleague). Now although I see the 'private' volume, and the other user folder and the Documents folder in it with a red 'No Access' badge, even when I  set read/write permissions via Command-I > Permissions for my current account, I do not see any files in it apart from Microsoft User Data. I have tried enabling the root user but with the sam result.
    Do I really have to shut down the computer and boot with the 'private' boot volume in order to access the files on 'private'>user?
    Looking forward to your suggestions! Thank you in advance!
    Christian

    To solve this issue permanently, is to first disconnect both TimeMachine drives.
    Boot into one partition and consider it history, make a note of everything, apps, export bookmarks, serial keys and files to a regular external drive. (non TimeMachine)
    If on a hard drive, consider the first partition for performance, the second one is going to be slower. (SSD no need)
    Next what you do is boot into the first partition and use Disk Utility to erase (with zero option if a hard drive) the other partition. Then use Carbon Copy Cloner to clone the first partition to the second. (should be about equal sizes or tweak before cloning.)
    Repair permissions on both partitions in Disk Utility.
    Next boot into the second partition and install/uninstall apps and files. etc and set it backup up the way you had it.
    Once your sure, then update TimeMachine for each one.
    Now you will be able to easily access the other bootable partition as long as your logged into the same account name on the first partition., in other words you can access the same named account on both partitions and trade files without rebooting.
    Because it's a clone, you have the same access privileges to the files on the other partition.
    If your a power user, your going to find bootable clones are a much superior option than TimeMachine
    Most commonly used backup methods

  • How to recover the home user

    my grandson deleted home user & hard drive icon on my desktop on MBP early 2009. i tried to reinstall the ios and backup from timemachine (remote USB 3 TB). but nothing works on my mac. how can i recover the home user?

    Hello dcbrower, You may be able to use the program Universal Extractor to extract the files in the .wim file.
    This is a Free program that can be found at this  Link. .
    Just extract the files in the wim file to a location you would like.
    Please click the White Kudos star on the left, to say thanks.
    Please mark Accept As Solution if it solves your problem.

  • How do I remove "other users" folder in mail and on my iPhone

    On one account only I have "other users" folder that lists all of the folders of every user on the server. On my iphone I have to scroll past pages of other user folders to get to any folder named with anything after "O"
    Does anyone know how to get the server to stop showing "other users" in both mail and iphone mail?

    Unfortunately that is really the only work around since
    Comcast uses POP3 and not IMAP like Gmail or
    iCloud.
    I had received an email quite some time ago that they
    were beta testing IMAP with select customers but I doubt
    if it has gone much further than that.

  • Migrating server home user folder to new SAS

    We are currently housing our "Home" users folders on our XRaid which is hosted on an Xserve G5, but are in the process of wanting to migrate them to a new Vtrak SAS array. Would this be a simple matter of copying that partition to an new partition on the Vtrak, or is there something more I need to consider. like re-pointing the users to a new drive via workgroup manager.
    TIA
    Spec's G5 XServer running OSX Tiger, with 7 channel XRaid Level 5

    Okay - in case this helps anyone else.  This totally worked.  On initial set-up it migrated everything, however it does not ask you to create a new User Name, but it migrated all my stuff including the accounts.
    I did not want my account name used, just the same mail, calendar, etc.  So....
    While there seems to be a lot of postings saying you cannot change the name of your User Account, I don't know why, because you can indeed.
    You have 2 choices:
    You must be logged in as an Admin on another Login (I already had 2)
    Choice 1
    You go to System Preferences>Users
    Unlock the lock,
    Highlight the User you want to change
    In the area called "Full Name" just change the name!
    This however will not change the name of the home folder which is also what I wanted.  That is a little more involved but this absolutely worked:
    Choice 2
    https://discussions.apple.com/docs/DOC-3872
    I am running Mountain Lion on a new iMac (Oct 2013) - I have no idea if this works on anything older.
    Good luck and thanks!

  • How to set as default Users folder the one on the second Hard Disk?

    I recently upgrade my macbook pro with a second hard drive, an SSD, so I placed the old one were the super drive used to be.
    Yesterday I upgraded to Mac OS X 10.8 Mountain Lion via clean install on the SSD.
    So now I want to keep system files and apps on SSD and everything else  like songs, movies etc from the iTunes on the old hard drive, plus documents of mine.
    On the old hard drive I deleted everything but the Users folder.
    I tried to change the Home Directory from the Users and Groups in System Preferences but then it wouldn't let me log in in the cloud or in the MacApp Store and every time I tryed to open "Mail, contact & calendars" or "iCloud" from system preferences it crashes..
    Any Solutions? Thank you very much for your time.

    - Create variables for variants: use transaction STVARV. You should create one variable for fiscal year with type 'parameter', one for period with type 'parameter', one for fiscal year 'select option' and one for period 'select option'.
    - when saving your variants for the different programs, fill the checkbox 'Selection variables' in the attributes for fiscal year and period; use the button 'selection variables' for choosing the variables created in STVARV.
    - When closing the period, you should use STVARV for changing the variables. All the variant using the variant variables will then automaticaly use the new value.

  • Where is the Time Machine backup of my home/user folder?

    I just realized that Time Machine hasn't created any backups of my "home directory"/"user folder" ... i.e. I can't find any of my documents or pictures (e.g. the iPhoto library) on the external hard drive.
    I checked whether I somehow had listed my user folder on the "exclusion list", but the only thing listed there was the external hard drive (which makes sense).
    Does anyone know what I can do about this? I really need Time Machine to backup my photos!!!
    (I am using Mac OS X 10.6.4)

    See Pondini's TM FAQs for starters.

  • How do I move my user folder back to my main drive

    A while back, I bought a 265 GB SSD. It was too small to accommodate both the system and my user folder so I moved the user folder to another drive.
    Now that SSD prices have come down, I have purchased a larger SSD. I want to add this drive, install Mavericks and then pull my user folder back to it.
    What I am thinking I can do, but would like input, is the following:
    First, this is a Mac Pro so the old SSD, the new SSD, and HD containing my User Folder are all inside.
    1. Install Mavericks on the new SSD and create an account with the same name as the existing one. (This should create a new, relatively empty user folder on the new SSD).
    2. Use Advance User settings to point to the current user folder on the HD and reboot.
    3. Drag contents of the User folder from the HD into the New user folder on the new SSD.
    4. Use Advance User settings to point to the new User folder on the New SSD and reboot.
    Does anyone see any problems with this? Any assistance is appreciated.

    If you create another user on your new drive, then drag your old user to the Users folder, then create amother user with the same name, then it should ask if you want to use the current folder.

  • How I can access the user folder in Windows 7?

    Hi all.
    I have the following problem: I am using Windows 7 with Acrobat X and want to include a trusted function in my user folder, but when running on the console app.getPath ("user", "javascript"), I returned the following error :
    GeneralError: The operation failed.
    App.getPath: 1: Console undefined: Exec
    2
    I would appreciate any help and thank you very much in advance.
    Sorry for my English is not my native language.

    Adobe has moved the user level Acrobat/Reader settings to the roaming profiles section.
    Vista and Windows 7:Users\(username)\AppData\Roaming\Adobe\Acrobat\10.0\JavaScripts
    With the update of Acrobat 10.1.1 the priviliged functions have been moved to a special folder for the application and user, User JavaScript Changes for 10.1.1 (Acrobat | Reader).
    New user JS location: The user JavaScript folder is moved from 
    Vista and Windows 7:Users\(username)\AppData\Roaming\Adobe\Acrobat\10.0\JavaScripts to Users\(username)\AppData\Roaming\Adobe\Acrobat\Privileged\10.0\JavaScripts. For example, the new path might be C:\Users\JoeUser\AppData\Roaming\Adobe\Acrobat\Privileged\10.0\JavaScripts 
    XP: Documents and Settings\(username)\Application Data\Adobe\Acrobat\10.0\JavaScripts to Documents and Settings\(username)\Application Data\Adobe\Acrobat\Privileged\10.0\JavaScripts. For example, the new path might be: C:\Documents and Settings\JoeUser\Application Data\Adobe\Acrobat\Privileged\10.0\JavaScripts
    For user JavaScript issues (Windows only)
    Copy all user-created JavaScript files from %APPDATA%\Adobe\Acrobat\10.0\JavaScripts to %APPDATA%\Adobe\Acrobat\Privileged\10.0\JavaScripts.

  • [Solved] How to restore lost home folder permissions

    I recently moved a shared folder with a few hundred home folders in it to fill up drive space. After I moved it i made sure that it was reshared exactly the same way only to discover that each users full rights, originally granted by active directory, were
    missing. I searched the internet for hours looking for a solution and never found one, so when I created my own i decided to share my method.
    We use a simple structure. Use AD to create the home folders (\\servername\share\%username%) which gives the user full control of their folder, then enable access based enumeration so they can only see their
    own folder. What i did was move the already created folders to a temporary location, then select all users in AD and recreate the home folders using the method above. Now I have all of the correct folder/permissions, they're just empty. Next I copy the old
    folders back, and merge them with the new folders. What I end up with is essentially all of the original files in newly created folders with the correct permissions.
    Hope this can save someone the hours I wasted in research.

    Thanks JaMere! That was helpful. I was about to restore permissions from backup, but instead tried your method out of curiosity. Worked like a champ!

  • [SOLVED] Cannot migrate to encrypted home partition

    So I installed Arch to play around and familiarise myself with, and I'd now like to use it full time. My company require that either home dir or full disk encryption is used, so I need to migrate my home directory using ecryptfs. Followed the wiki (created a test user to break first though), but it fails as lsof seems to see its own process checking for open files as an open file: cue much
    INFO: Checking disk space, this may take a few moments. Please be patient.
    INFO: Checking for open files in /home/shw
    INFO: The following files are in use:
    COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
    systemd 1 root 19r FIFO 0,8 0t0 8339 pipe
    lsof 428 root 1w FIFO 0,8 0t0 10969 pipe
    lsof 428 root 4w FIFO 0,8 0t0 9076 pipe
    lsof 428 root 5r FIFO 0,8 0t0 9077 pipe
    sed 429 root 0r FIFO 0,8 0t0 10969 pipe
    lsof 430 root 3r FIFO 0,8 0t0 9076 pipe
    lsof 430 root 6w FIFO 0,8 0t0 9077 pipe
    ERROR: Cannot proceed.
    Any suggestions?
    Last edited by analbeard (2014-11-20 08:24:39)

    I will give it try tomorrow and inform you about the outcome. I will use the guide  by anarxc http://sysphere.org/~anrxc/j/articles/e … index.html
    Just to complete the information. When I logged in as root, (right after the boot) I got this
    [root@notebook ~]$ ecryptfs-migrate-home -u user
    INFO: Checking disk space, this may take a few moments. Please be patient.
    INFO: Checking for open files in /home/shw
    INFO: The following files are in use:
    COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
    systemd 1 root 22r FIFO 0,8 0t0 1196 pipe
    systemd 1 root 23u FIFO 0,15 0t0 1198 /run/dmeventd-server
    systemd 1 root 24u FIFO 0,15 0t0 1199 /run/dmeventd-client
    systemd 1 root 26u FIFO 0,15 0t0 1203 /run/systemd/initctl/fifo
    NetworkMa 258 root 20w FIFO 0,15 0t0 10093 /run/systemd/inhibit/1.ref
    systemd-l 260 root 19r FIFO 0,15 0t0 10093 /run/systemd/inhibit/1.ref
    systemd-l 260 root 26r FIFO 0,15 0t0 14800 /run/systemd/sessions/c2.ref
    login 527 root 6w FIFO 0,15 0t0 14800 /run/systemd/sessions/c2.ref
    ecryptfs- 669 root 1w FIFO 0,8 0t0 16695 pipe
    tee 670 root 0r FIFO 0,8 0t0 16695 pipe
    lsof 692 root 1w FIFO 0,8 0t0 16798 pipe
    lsof 692 root 4w FIFO 0,8 0t0 15619 pipe
    lsof 692 root 5r FIFO 0,8 0t0 15620 pipe
    sed 693 root 0r FIFO 0,8 0t0 16798 pipe
    sed 693 root 1w FIFO 0,8 0t0 16695 pipe
    lsof 694 root 3r FIFO 0,8 0t0 15619 pipe
    lsof 694 root 6w FIFO 0,8 0t0 15620 pipe
    ERROR: cannot proceed
    Last edited by macaco (2014-11-17 23:43:45)

Maybe you are looking for

  • ITunes 10.4 and third party apps

    I recently upgraded to iTunes and since then three different application that access the iTunes Libarry or iTunes Library.xml file have stopped working properly. In two of them I was able to restore proper functioning by re-establishing the link to t

  • Tricky query

    I have a table TAB1 with values FLD1 FLD2 3838 LOC 3737 POI 7337 NSM 4646 LOC 3838 POI In an sql statement, if I input 2 parameters 3838 and 4646 (FLD1 values), then since LOC has both these variables, it should output LOC (and not POI since 4646 doe

  • Stack Java with Adobe document Service

    Good Mornig, sorry for my English, but I have one question: which file '.rar' should I use to install (and I Can download) Stack Java and Adobe Document Service ? Thank you 1000!!! Francesco.

  • Servlet mapping exception ?

    Hy, Is there anybody who can explain me how to fix this error ? 500   Internal Server Error com.sap.engine.frame.core.load.SAPNoClassDefFoundError: javax/management/MBeanRegistration Thank you for your help. yl

  • CRM 2013 with USD development

    Hi All, I am trying to develope the Custom search functionality in USD which has available contact search it's not fit for my business requirement. I plan to develop using WPF custom search functionality and then integrate into USD . is it write way