#168 Clonezilla Ownership - Please Change

open
Steven Shiau
None
5
2014-08-15
2012-12-22
Xgates
No

Steve, it would be great that before you close a report, please at least allow a response back.

I understand that NTFS is not a Unix based file system, BUT that doesn't mean owership should be changing, that makes no sense.

Because someone saves to NTFS it's owned by the user and then if you save to EXT4 it's owned by root? Regardless of what's going on here and whichever file system someone is saving to, it should be owned by a user so it's easy to move around and copy, as an example as a user sitting on your desktop and you want to copy the image to a USB drive through your file manager, well as a users you're not going to be able to do this since it gets owned by root...

Maybe this isn't a bug, but I call it a flaw in design, not allowing a user to be able to copy and paste as a user in a file manager...

I hope you'll PLEASE fix this so saving to EXT is owned by users...

THANKS Steve & Happy Holidays!

Discussion

  • Steven Shiau
    Steven Shiau
    2012-12-24

    Actually when mounting the image repository, we use "root" privilege to mount that, no matter which file system.
    Some tests here also show that, no matter the file system is ext4 or ntfs, the ownership of image dir is is owned by root:
    1. ext4
    root@debian:~# mount | grep /home/partimag
    /dev/sda1 on /home/partimag type ext4 (rw,noatime,nodiratime,user_xattr,barrier=1,data=ordered)
    root@debian:~# ls -alFh /home/partimag/
    total 24K
    drwxr-xr-x 4 root root 4.0K Dec 24 00:58 ./
    drwxr-xr-x 4 root root 80 Dec 23 12:31 ../
    drwxr-xr-x 2 root root 4.0K Dec 24 00:58 2012-12-24-00-img/
    drwx------ 2 root root 16K Dec 24 00:53 lost+found/

    2. ntfs
    root@debian:~# mount | grep /home/partimag
    /dev/sdc1 on /home/partimag type fuseblk (rw,nosuid,nodev,noatime,user_id=0,group_id=0,allow_other,blksize=4096)

    root@debian:~# parted -s /dev/sdc1 print
    Model: Unknown (unknown)
    Disk /dev/sdc1: 2999MB
    Sector size (logical/physical): 512B/512B
    Partition Table: loop

    Number Start End Size File system Flags
    1 0.00B 2999MB 2999MB ntfs

    root@debian:~# ls -alFh /home/partimag/
    total 4.0K
    drwxrwxrwx 1 root root 4.0K Dec 24 01:06 ./
    drwxr-xr-x 4 root root 80 Dec 23 12:31 ../
    drwxrwxrwx 1 root root 496 Dec 24 01:06 2012-12-24-01-img/

    root@debian:~# ls -alFh /home/partimag/2012-12-24-01-img/
    total 7.6M
    drwxrwxrwx 1 root root 496 Dec 24 01:06 ./
    drwxrwxrwx 1 root root 4.0K Dec 24 01:06 ../
    -rwxrwxrwx 1 root root 69 Dec 24 01:06 clonezilla-img*
    -rwxrwxrwx 1 root root 4 Dec 24 01:06 disk*
    -rwxrwxrwx 1 root root 143K Dec 24 01:06 Info-dmi.txt*
    -rwxrwxrwx 1 root root 64K Dec 24 01:06 Info-lshw.txt*
    -rwxrwxrwx 1 root root 4.5K Dec 24 01:06 Info-lspci.txt*
    -rwxrwxrwx 1 root root 171 Dec 24 01:06 Info-packages.txt*
    -rwxrwxrwx 1 root root 80 Dec 24 01:06 Info-saved-by-cmd.txt*
    -rwxrwxrwx 1 root root 5 Dec 24 01:06 parts*
    -rwxrwxrwx 1 root root 7.3M Dec 24 01:06 sda1.ext4-ptcl-img.gz.aa*
    -rwxrwxrwx 1 root root 36 Dec 24 01:06 sda-chs.sf*
    -rwxrwxrwx 1 root root 17K Dec 24 01:06 sda-gpt-1st*
    -rwxrwxrwx 1 root root 16K Dec 24 01:06 sda-gpt-2nd*
    -rwxrwxrwx 1 root root 18K Dec 24 01:06 sda-gpt.gdisk*
    -rwxrwxrwx 1 root root 467 Dec 24 01:06 sda-gpt.sgdisk*
    -rwxrwxrwx 1 root root 512 Dec 24 01:06 sda-mbr*
    -rwxrwxrwx 1 root root 270 Dec 24 01:06 sda-pt.parted*
    -rwxrwxrwx 1 root root 257 Dec 24 01:06 sda-pt.parted.compact*
    -rwxrwxrwx 1 root root 249 Dec 24 01:06 sda-pt.sf*

    How did you save the image? Please tel us all the details, step by step so that we could reproduce the problem here.

    Steven.

     
  • Steven Shiau
    Steven Shiau
    2012-12-24

    • assigned_to: nobody --> steven_shiau
     
  • Xgates
    Xgates
    2012-12-24

    I just do everything as beginner settings and save "Parts" to a USB hard drive is all, so if I save to NTFS it gets owned by user if I save to EXT4 it gets owned by root.

    So now it seems there's a different problem since it's not getting saved as root to NTFS...

    BUT Steve, as I mentioned before, this would be better to be owned by a user, so a person can save to a USB drive, then move that image around in a file manager as a user...

    I'd imagine in some situations for security purposes people want this owned by root, but how often is that going to be the case? Who knows...

    So do you think in a future version of Clonezilla you can make it with an option to allow the images to be saved either as root or user, that way people have a choice?

    I personally have no need for root...

    THANKS

     
  • Steven Shiau
    Steven Shiau
    2012-12-24

    The user account on Clonezilla live is just a temporary account. After you reboot to some other OS, no "user" account normally.
    Therefore how can you find a better account for that? I still think "root" is the best choice...

    Steven.

     
  • Xgates
    Xgates
    2012-12-24

    Why does someone need root unless they need the security of it being owned by root...

    If you're just a end-user, and these are personal backups for your Home computer as an example I don't see the point of root ownership....

    When we run Linux how do we run it? --> As a User...

    So now as a user you are sitting on your desktop and you want to move your image around and make a copy of it onto another USB drive, you're not going to be able to do this as a user in a "File Manager" unless you run the File Manager as root and that's not exactly the proper way to do this.

    When you make copies you can only PLACE them in the TOP level of a directory, you can't backup or restore from a Sub Directory like this as example;

    /Clonezilla/Ubuntu/12.04

    You can only save and restore from /Clonezilla...

    So what if someone had different versions of a distro, or other distros and wanted a directory structure like this as an example;

    /Clonezilla/Ubuntu
    /Clonezlla/Fedora
    /Clonezilla/Arch

    This i just one example why something like this better off owned as a user so no matter what someone's needs are they are can more easily move images around as a user in a file manager. After all we are in the GUI age and the majority of people are running GUI based systems and X so I'm not sure why this thought is being left out, as if everyone is only doing backups and restores from the command line...

    This is why I'm asking for the images to be saved as User, especially when you make backups and restore an image for whatever reason, you then need the ability to move them around...

    In the past I was running 2 distros and making images and restoring from them when the directories like this;

    OS-Images/Clonezilla/Arch
    OS-Images/Clonezilla/Slackware/13.37
    OS-Images/Clonezilla/Slackware/14.0

    So now in this situation I can only save to or restore from OS-Images then when I'm done I move the images to the correct paths in a File Manager as a user to a USB drive...

    I hope I've made this more clear....

    THANKS

     
  • Steven Shiau
    Steven Shiau
    2012-12-24

    The problem I mentioned is, "user" account is useless, volatile, unless you use that in Clonezilla live.
    And in Clonezilla live, the user account can switch to root by command "sudo -i" without any password., as described on http://clonezilla.org/clonezilla-live.php#Accounts
    Clonezilla live is volatile, you just use it, and only the data will be persistent. The account info will be gone after rebooting.
    If we change the ownership of image dir to some other account (actually it's UID in Unix/Linux), how can we know the UID on other OS which will access the image directory?
    If you really want to change the ownership, I suggest you run "sudo chown -R ..." to change that after Clonezilla job is done. This is really specific to customized case.

    Steven.

     
  • Xgates
    Xgates
    2012-12-24

    Yes I'm using Clonezilla Live, sorry so now what are we saying with Clonezilla Live saving to any file system what is it going to save as root or user?

    I don't touch any setttings I just do everything as the "Beginner"...

    THANKS

     
  • Steven Shiau
    Steven Shiau
    2012-12-24

    Since using Clonezilla live, the image repository could be network file system (NFS or samba), too.
    If we save that image as "user", the security issue does exist. On network file system, you have no idea which user will access that.... Especially those "sd*img*" files...
    Therefore to make things consistent, we choose the root permission for the image dir. When running Clonezilla live, in this side, "user" account is the same as "root" since the switch is just a "sudo -i" command. However, on the image repository server site, it's different. The security is important on the server side.

    Steven.

     
  • Xgates
    Xgates
    2012-12-24

    Yes I understand all the permissions aspects for either user or root, but I'm simply talking about HOME users wanting backups, in that situation for a simple end-user there's no need for this, it makes the situation more complicated, espsecially when end-users are also not comfortable with permissions and the command line...

    So, if an Home end-user just sticks with the "Beginner" settings and makes a backup onto a USB hard drive, either NTFS or EXT4 what is the ownership going to be root or user?

    And in Clonezilla Live are you saying the end-user can change the ownership, have it either save as root or user?

    THANKS

     
  • Steven Shiau
    Steven Shiau
    2012-12-24

    "And in Clonezilla Live are you saying the end-user can change the
    ownership, have it either save as root or user?" -> Yes.
    1. Enter command line problem
    2. Run "sudo -i" to become root
    3. chown -R user.user /home/partimag/IMAGENAME

    (Although it's not really for beginner...)

    Steven.

     
  • Xgates
    Xgates
    2012-12-24

    Ok...

    BUT I'm asking when the end-user uses the "Beginner" settings and touches nothing what permissions is Clonezilla going to save to under any filesystem?

    THANKS

     
  • Steven Shiau
    Steven Shiau
    2012-12-24

    It's "root", as my first post.

    Steven.

     
  • Xgates
    Xgates
    2012-12-24

    Ok, sorry got confused when you then mentioned Clonezilla Live, like as if about something else...

    OK then this still goes back to my original post that this does not work, at least for me under NTFS, it's saving it as a user, which is really what I want...

    SO, is there a way to make Clonezilla Live save as a user with the "Beginner" section, so it's easy for someone to do? And if not, do you think in the future you can change this, so for the Beginner section there is an option you can just pick from the Ncurses menu to save as either root or user?

    THANKS

     
  • Steven Shiau
    Steven Shiau
    2012-12-24

    The answer is "not" now.
    Well, in the future, maybe we will think about adding that. I still think it's not for beginner mode. It's possible we can add that in the expert mode, though.

    Steven.

     
  • Xgates
    Xgates
    2012-12-24

    But I hope you see that the "Beginner" mode needs a simple way.

    I also hope you understand my examples about the Directory Structure, how you can only save and restore from the TOP LEVEL, this is really one of the best reasons for having it saved as a user that I mentioned before, so the images can be easily moved around as a user in a File Manager...

    I really hope you'll make this option in the beginner section... :)

    Also maybe in a future version you can make Clonezilla Live, so a person can pick within a directory any number of Sub Directories below the parent directory in which to save and restore from...

    Thank you very much for all your time today Steve and Happy Holidays!

     
  • Steven Shiau
    Steven Shiau
    2012-12-24

    Sure, the directory structure is a must we have to do. However, now the dialog lacks a good way to deal with that. We have to dig more to find a better way for that.
    Thanks.

    Steven.

     
  • Xgates
    Xgates
    2012-12-24

    THANKS again Steve and thank you for Clonezilla & Happy Holidays!

    CHEERS :)

     
  • Steven Shiau
    Steven Shiau
    2012-12-24

    Happy Holidays to you, too!

    Steven.