How can i encrypt a zfs partition

I have the need to encrypt a zfs file system in solaris 11.
and solaris 11 disk. any ideas?
Solaris 11 is installed in a laptop.

Yes, just enable the encryption property on the home directory datasets and not any others.
Since what you want to protect is a users home directory you probably also want to use the pam_zfs_key module so that when you login it will automatically mount up the encrypted dataset using the same (or different) passphrase as your login password.
See the examples in the pam_zfs_key(5) man page for how to configure it.
Edited by: rukbat on Dec 6, 2012 7:18 AM
Moderator Action:
I edited the URL to the man page link, for better readability.
(If you wish yo see how it's done, go "edit" your own reply and examine the text. Then exit the edit session to leave it be.)

Similar Messages

  • How can I create a new partition to install Windows 7 by not using Bootcamp

    How can I create a new partition to install Windows 7 by not using Bootcamp?

    If you want to dualboot you have to use boot camp i think. I think you have already a full disc and cannot make another partition I'm I right?
    Your question seems a bit blurry so I'm giving you a general tip here.
    If you want to just try the beta you can always use Sun's "Virtualbox".

  • How can I remove the BootCamp partition? as the size i created ws too small to install MS Office on 64Bit Windows 8.1 on MacBook Pro (Aug'13)

    How can I remove the BootCamp partition drive for Windows 8.1, as the size which I created was too small for me to install Microsoft Office onto Windows 8.1 64-BIt. The machine which I have is the MacBook Pro 13' inch purchased in August 2013.

    Either use Paragon's CampTuneX to resize it or use Boot Camp Assistant to remove the partition and restore the drive to one partition. Then create a new, larger Boot Camp partition. This will remove/delete/erase your Windows system.

  • How can I encrypt my data links between switch uplink ports ? I'm unable to use "cts Manual" command in C3560X switch.suggest me

    How can I encrypt my data uplinks between switch trunk ports ? I'm unable to use "cts Manual" command in C3560X switch.suggest me as I want to encrypt my switch-to-switch link with Cisco TrustSec.

    Hi 
    Login to switch & go to interface..
    There you can give tags.. (ISL & DONT1Q)
    Command switch-port mode trunk
    Switch-port trunk encapsulation ssl or dot1Q

  • How can i encrypt "String" which present a Password

    i have a String which present password, how can i encrypt the password while i save it to an XML file and how i decipher the password when i load it from the XML file.
    Thanks

    You don't generally encrypt passwords. You simply hash them. There should rarely, if ever, be a reason to decrypt a password.
    http://java.sun.com/j2se/1.4.2/docs/guide/security/CryptoSpec.html
    http://java.sun.com/j2se/1.4.2/docs/guide/security/jce/JCERefGuide.html

  • How can i create a zfs slice on the finish scritp of a jumpstart?

    Hi All,
    i need advice for a particular task.
    i have a jumpstart wich create a certain number of usf slice (/, /var, etc...).
    it's working good, but i have a final goal : with the rest of the half of the free space, i want to create a zfs pool, with the help of the finish script.
    i think the best way is to use "format" or "fdisk" command with a script like "fdisk /dev/dsk/c0d0 < script.sh"
    and after that a simple "zpool create ...." command for creating the zfs.
    so i have 2 questions:
    do you think it's the best way?
    how can i write the "script.sh" for telling him to use only the half of the free space?
    thx

    Why not make another slice for ZFS to use? Then just setup the zfs pool in your finish script. I use JET here as a friendly front end to jumpstart. You could just have your jumpstart setup create the slice (base_config_profile_s?_size) with no mountpoint (base_config_profile_s?_mtpt) then use that slice when you make the zfs pool later in the finish script.
    I do not believe you will be able to easily get ZFS to use just part of a device without some sort of partitioning. Do some reading on zpool (man zpool) under the vdev section.

  • How can I get my Windows Partition to be a startup disk?

    I have Tiger 10.4.11, I had boot camp, Running Vista, Just fine for months.
    I recently had a problem, within vista which caused a problem with the hard drive/master boot record which wouldn't allow Vista to boot anymore and actually reported "missing operating system".
    Previously if I did nothing, after powering on my MacBook, it would default to the Windows partition and start it up (Vista).
    Of course I could change this from the "startup disk" applet from within Tiger or I could use boot camp from within Vista.
    I have since been able to fix my Vista related startup issue, however at present the MacBook is booting into Tiger by default.
    I can HOLD the OPTION key and select either OS.
    From the "startup disk" applet within Tiger, it no longer shows "Windows" as a startup option which seems to be an indicator of a problem with Tiger of how it sees the hard drive and/or partition.
    I ran disk utility, no change.
    How can I make Windows appear as an option in the "startup disk" applet within Tiger?
    I can use Boot Camp within Vista, to select the "Windows" disk to restart from, and that works, but I would like to restore full functionality to Tiger.
    Thank you and please advise,
    Joe

    Hello and Welcome to Apple Discussions ...
    You will receive better exposure to your query in the BootCamp forum:
    http://discussions.apple.com/category.jspa?categoryID=237
    Carolyn

  • How can I delete a failed partition space?

    I tried to partition my disk for the first time, but unfortunately, it failed. Now there's a white space left for the supposed partition space. How can I retrieve it back? Help please.

    Would you post a screen shot so people can see what you are seeing? Make sure you cover any personal information using Preview. Post the screen shot in a Reply using the camera icon. Copy and paste doesn't work.
    Screen shots
    Open Disk Utility/Partition and select the drive?
    Do you have Boot Camp installed?

  • How can I create a recovery partition to use Find my Mac?

    I want to activate Find my Mac on my MBP.  The iCloud system preference says I don't have a recovery partition that's required for it.  It apparently didn't install when I upgraded to Mountain Lion.
    How can I retroactively create a recovery partition?  There are no other partitions on the drive (other than the Macintosh HD, of course).
    Thanks.
    Rob

    FIRST, assuming you do not have another Mac of the same model with a working restore, I would suggest using your Lion, mountaint lion or Maverick install to create a bootable system on a flash drive.  You will need a DMG image created with Disk Utility from that stick to recreate the restore partition on your mac.
    Once you create the bootable USB stick, Use it to log in and follow the below process to back up the restore partition.  Then, save the DMG back up anywhere and finish the walk through on your normal operating partition.
    Close Disk Utility if it is open.
    Open Terminal
    Enter the command below
    defaults write com.apple.DiskUtility DUDebugMenuEnabled -bool true
    Now open Disk Utility and pull down the Debug menu
    Click Show Every Partition
    Now, select the Recovery Partition and create a new image.
    NOTE: The Recovery Partition will need to be made in Read Only format if you wish to restore the image normally with disk utility or by software such as Deploy Studio.  If you take an image with Deploy Studio and want it to restore the Recovery Drive normally, you will need to adjust the Work Flow for Image Capture to use the Read Only format.  It will slow things down.  If you dont use the read only format, the .dmg will not scan properly. This is most likely because the recovery drive already hosts compressed files. That said, this guide WILL restore from even a compressed .dmg image.  HERE IS THE WALK THROUGH FOR RESTORING A SCANNED READ ONLY FORMATTED .DMG.
    Copy the Recover HD.DMG image to a flash drive
    The following must be on an Administrator account
    Next, Log on to the admin account of the computer you wish to restore the MLTI Recovery Partition.
    Copy the Recovery HD.DMG from your Flash drive to the HD
    Enter the following command in terminal
    diskutil list
    If there is no partition for the restore drive listed, then use Disk Utility to create a GUID Partition keeping in mind the size of the original restore partition. (19 gigs for the MLTI Version of the restore drive)
    Open Terminal and enter the following command
    sudo asr -noverify -source (PATH FOR DMG IMAGE HERE) -target (PATH FOR RECOVERY HD PARTITION HERE) -erase -noprompt
    NOTES: You must replace the () and everything in between with the respective path. You can simple drag and drop the source (your .dmg) and your target (the drive to be restored) while you are typing in terminal.
    Enter admin password
    In terminal Type the following command
    diskutil list
    note which disk and slice is the restore partition. It should be /dev/disk0s3, but it could vary a bit.
    Now, run the following in terminal
    sudo asr adjust --target /dev/disk0s3 --settype "Apple_Boot"
    REMEMBER: you may need to replace /dev/disk0s3 with your new restore partition's designation.
    Enter Admin Password when prompted
    Restart.
    Don't forget to enter the following terminal command into the machine you took the Recovery HD image from.
    defaults write com.apple.DiskUtility DUDebugMenuEnabled -bool false

  • How can I encrypted my SWF file

    Hi
    I will create  some SWFs and will want it to be played on WINCE device platform, but i need the SWF be encrypted and only played on my device. How can we do?

    All rather vague so I'll just guess:
    1. Restore from your back up
    or
    2. Use a file recovery application like File Salvage - you can download a free trial and it will scan the disk for you and tell you with might be recoverable. Actual recovery will require that you purchase the app. There may be many files with the same or similar names. Always recover the largest file size.
    There are other such apps. Search on Macupdate or the App Store

  • Using Recovery Disk (Windows 8) - How can I use it without partitioning?

    Whenever I install windows I add new partitions with lots of data added to them. But when I need to fresh install Lenovo Windows 8 OEM, it deletes all partitions because they are resized and formats everything and reverts to its designed partition structure. I do not want that. In normal (non-OEM) Windows I can install it to the system partition and it does not touch other partitions sizes or data inside it. Is there any way to do this with Windows 8 Lenovo OEM? I downloaded Windows 8 (non-OEM) from Microsoft - but it did not let my Lenovo OEM serial - it says it is for OEM version, not retail. How can I accomplish what I am trying to do?

    Hi Dweata,
    Welcome to Lenovo Community Forums!
    I’m sorry to inform you that re-installing the Windows 8 OS (Operating System) using the created Recovery Media will take back the computer to factory settings and which same with the partitions. Hence a separate OS drive cannot be created as Non-OEM OS, to perform this a new Windows 8 should be purchased as the recovery media when created will be in encoded format and changes cannot be made.
    Do post us back for further queries.
    Best Regards
    Shiva Kumar
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • How can I encrypt/decrypt data in Forms using a specified Package?

    Hi All,
    I have searched in the Internet for ecnrypting/decrypting data in Forms.
    That is when I want to query the data outside the Form Application it will be encypted, otherwise if I want to query it in the form application it will be dycrypted
    I found this package:
    CREATE OR REPLACE PACKAGE Encrypt_pkg AS
    FUNCTION encrypt (p_text IN VARCHAR2) RETURN RAW;
    FUNCTION decrypt (p_raw IN RAW) RETURN VARCHAR2;
    END Encrypt_pkg;
    CREATE OR REPLACE PACKAGE BODY Encrypt_pkg AS
    -- All VARCHAR2 inputs are padded to multiples of 8 charaters,
    -- with the encryption key also being a multiple of 8 charaters.
    -- The encryption key and padding characters can be altered to suit.
    g_key RAW(32767) := UTL_RAW.cast_to_raw('12345678');
    g_pad_chr VARCHAR2(1) := '';
    PROCEDURE padstring (p_text IN OUT VARCHAR2);
    FUNCTION encrypt (p_text IN VARCHAR2) RETURN RAW IS
    l_text VARCHAR2(32767) := p_text;
    l_encrypted RAW(32767);
    BEGIN
    padstring(l_text);
    DBMS_OBFUSCATION_TOOLKIT.desencrypt(input => UTL_RAW.cast_to_raw(l_text),
    key => g_key,
    encrypted_data => l_encrypted);
    RETURN l_encrypted;
    END;
    FUNCTION decrypt (p_raw IN RAW) RETURN VARCHAR2 IS
    l_decrypted VARCHAR2(32767);
    BEGIN
    DBMS_OBFUSCATION_TOOLKIT.desdecrypt(input => p_raw,
    key => g_key,
    decrypted_data => l_decrypted);
    RETURN RTrim(UTL_RAW.cast_to_varchar2(l_decrypted), g_pad_chr);
    END;
    PROCEDURE padstring (p_text IN OUT VARCHAR2) IS
    l_units NUMBER;
    BEGIN
    IF LENGTH(p_text) MOD 8 > 0 THEN
    l_units := TRUNC(LENGTH(p_text)/8) + 1;
    p_text := RPAD(p_text, l_units * 8, g_pad_chr);
    END IF;
    END;
    END Encrypt_pkg;
    ** Now How can I use this package to encrypt/decrypt data in the form as I said Plz???

    <p>Read this article and go to chapter 2.3.2.</p>Inserts, Update and Delete orders are managed by a stored procedure. In the sample dialog, the Select is handled by the emp_pkg.emp_query() stored function:
      PROCEDURE emp_query(emp_data IN OUT emptab) IS
        ii NUMBER;
        CURSOR empselect IS
          SELECT empno, ename, job, sal, comm FROM emp
           ORDER BY ename ;
      BEGIN
        OPEN empselect;
        ii := 1;
        LOOP
          FETCH empselect INTO
            emp_data( ii ).empno,
            emp_data( ii ).ename,
            emp_data( ii ).job,
            emp_data( ii ).sal,
            emp_data( ii ).comm;
          EXIT WHEN empselect%NOTFOUND;
          ii := ii + 1;
        END LOOP;
      END emp_query;In your case, all you have to do is th use your decrypt() function in the cursor definition:
        CURSOR empselect IS
          SELECT decrypt(empno), decrypt(ename), decrypt(job), decrypt(sal), comm FROM emp
           ORDER BY ename ;
    ...For Insert and Update events, use the crypt() function in the related stored procedures.
      PROCEDURE emp_insert2(t IN emptab) IS
      BEGIN
        FOR i IN t.first..t.last LOOP
         INSERT INTO emp (empno, ename, job, sal, comm)
         VALUES(crypt(t(i).empno), crypt(t(i).ename), crypt(t(i).job), crypt(t(i).sal, t(i).comm));
         END LOOP ;
      END emp_insert2;Idem for the Update procedure.
    Francois

  • How can we use the table partitions feature and.........

    Hai friends when i tried to use the bitmap indexes and table partitions feature ,
    I got a message like this
    'table partiotion feature not enabled'
    so please tell me how can i enable those features so that i will be able to use those features..........

    Partitioning and Bitmap Indexes are features of Oracle Enterprise addition. In fact, I think that Partitioning is an extra option that needs to purchased with Oracle Enterprise - it is not a default feature.
    These features do not exist on Oracle Standard Edition (and likely Express Edition too).

  • How can I encrypt(using PKI credential) a package/portfolio using Assembler Service

    Hi All,
    I have found a way to encrypt (using password credential) a package/
    portfolio using a DDX and calling invokeDDX service of Assembler
    Service. see the DDX snippet below
    How  can I do the PKI based encryption on the package. I couldn't find
    any DDX element for this.
    snippet:
    <?xml version="1.0" encoding="UTF-8"?>
      <DDX xmlns="http://ns.adobe.com/DDX/1.0/">
         <PDF result="GeneratedDocument.pdf" encryption="userProtect" >
            <PDF source="cover"/>
               <PackageFiles>
               <PDF source="attachments"/>
            </PackageFiles>
           </PDF>
          <PasswordEncryptionProfile name="userProtect">
                     <OpenPassword>abcd1234</OpenPassword>
         </PasswordEncryptionProfile>
      </DDX>
    Thanks
    greenday

    The documentation lists all the encyrption types:
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_crypto.htm#ARPLS664

  • How can make a 2 windows partition ?

    Hi mac users ,
    I have a 20" imac intel based and I want to install win xp in imac and i need a 2 partition for windows the first 40GB for installing windows and second 100GB(NTFS) for windows data .
    Please help me how can I do this ?
    iMac 20"   Mac OS X (10.4.8)  

    Hi everybody ,
    when I buy my iMac 24" I need to install win XP and OS X together and third partition for saving my stuff and work , after installing bootcamp I install xp and trying to resize one of my partition ( XP and OSX ) with different software such as iPartition and volumeworks and partiotion magic , ... but no one work for me .
    after that I trying to install xp without Bootcamp .
    I boot from my instalation DVD and make my hard drive to 3 partition and set my third partition to MS-DOS Format .
    after Boot From XP cd and install Windows Xp in third partition and just installing Bootcamp Driver ( I make it befor ) after installing xp I install OSX too in my first partition and in this position I have a second partiotion to save my stuff and work .
    Have a Good Day Every Mac Users .
    Enjoy Using Apple Computer .
    iMac 24" and macmini 1.66   Mac OS X (10.4.8)  

Maybe you are looking for

  • How can I remove my credit card or cancel my account?

    How can I remove my credit card or cancel my account?

  • Transfer PE7 project from one computer to another?

    Hi all, As long as I have started a project in one folder and put all the assets/captures in the same folder folder, can I simply move that folder to another computer that has PE7 installed and expect that the project will open in all its glory? Than

  • How to add ineligible tracks to my iPhone?

    So I have some spoken word tracks that I would like to add to my iphone but they are ineligible for iCloud for either the 64 kbs encode rate or the the file size being 30 + MB.   I really would prefer not to have to re-encode the files. With Itunes M

  • Listener Core Dumping..

    There seems to be a problem with tnslsnr. A couple of seconds after I execute "lsnrctrl start listener" tnslsnr disappears and there is suddenly a core file in my directory. I can't seem to figure out why it is doing this suddenly. We have had the or

  • IFS Drive does not mount as well as Item Name error

    I'm having two problems: 1. The IFS drive does not mount. (Log info is appended at the end) 2. In IFS Manager, when I click on any of the users, I get the error: IFS-12200: Invalid item name specified (AnonymousCredentials) Fri Aug 04 11:44:26 CDT 20