Menu

mount - mask credentials

2014-06-13
2014-06-24
  • Achilles K.

    Achilles K. - 2014-06-13

    Hi everyone

    I'm successfully created some bootable Clonezilla live usb sticks to create and get images from a samba share.
    However, the user and pass (for the samba share) are visible which is pretty much a no go.
    Is there a way to mask these or some workaround?

    BTW, thanx for the asesome Work!!

    AchillesK.

     
  • Bret

    Bret - 2014-06-18

    Could you share the coding you used?

     
  • Steven Shiau

    Steven Shiau - 2014-06-21

    "the user and pass (for the samba share) are visible which is pretty much a no go." -> I would like to know that if it could be done with mount command.
    Thanks.

    Steven.

     
  • Achilles K.

    Achilles K. - 2014-06-23

    Hi again

    append initrd=/live/initrd.img boot=live config noswap nolocales edd=on nomodeset noprompt ocs_prerun1="dhclient -v eth0" ocs_prerun2="sleep 2" ocs_prerun3="mount -t cifs -o user=xyz,password=xyz //192.168.178.200/images/mul /home/partimag" ocs_live_run="ocs-sr -batch -g auto -e1 auto -e2 -r -j2 -p reboot restoredisk live_image sda" ocs_live_batch="no" keyboard-layouts="de" locales="de_DE.UTF-8" vga=788 toram=filesystem.squashfs nosplash

    These are the settings I'm using atm. But is there a way to somehow mask the credentials or use another way to login into the share?
    I really dont want the username and password to be read by anyone.

     
  • Bret

    Bret - 2014-06-23

    Thanks Achilles K. That fixed my issue!

     
  • Bret

    Bret - 2014-06-24

    Do you have one for savedisk?

     
  • Achilles K.

    Achilles K. - 2014-06-24

    Hi Bret

    append initrd=/live/initrd.img boot=live config noswap nolocales edd=on nomodeset noprompt ocs_prerun1="dhclient -v eth0" ocs_prerun2="sleep 2" ocs_prerun3="mount -t cifs -o user=xyz,password=xyz //192.168.178.200/archive /home/partimag" ocs_live_run="ocs-sr -q2 -batch -j2 -rm-win-swap-hib -z1p -p true savedisk ask_user sda" ocs_live_batch="no" keyboard-layouts="de" locales="de_DE.UTF-8" vga=788 toram=filesystem.squashfs nosplash

    This one saves sda, removes swap from windows, ask for the image name and reboots if successful.

    I hope this is the one you wanted

    Achilles

     
  • Bret

    Bret - 2014-06-24

    Awesome Thanks again!

     

Log in to post a comment.

MongoDB Logo MongoDB