General :: Command - Encrypt A File Or Directory?
Feb 23, 2011What 's the most popular command to do such things in terminal in linux?
View 4 RepliesWhat 's the most popular command to do such things in terminal in linux?
View 4 RepliesI Have shell script like this
Code:
#!/usr/bin/expect
set password "XXXXXXXX"
[code]...
I am total new to linux as I worked mostly on RTOS (symbian). My problem is, I need to find the file IOSTREAM.H and I am following commands below:
1) cd /
2) find . iostream.h ( finds the file / directory from the current path)
It shows No such File or Directory
I'd like to copy a file, say widgets/water.txt, to all subfolders in the folder widgets using a single command. So if the folder widgets has 10 subfolders like widgets/blue, widgets/green, etc. I'd like to copy water.txt to all of them with one command.
I tried the commands
Code:
cp water.txt ./*/water.txt
cp water.txt ./*/
However these don't seem to work. The latter gives 'cp: omitting directory' errors.
-the command to copy the file Practice.txt to a new name of Myfile.txt while in the home directory-found
-command to create a directory in the home directory-found
-say i just created a new directory called "test". whats the command to delete the test directory.-found
-command to create a blank, text file without using an editor.
-the exact syntax in Linux you would need to rename the file to a new name-found
I need to temporarily store a file containing sensitive data in a public server, in a secure way. I think that encrypting the whole file would be much more secure than creating a passworded .zip encrypted file, because they could be subject of brute force attacks. Attacking a whole file of unknow format is harder, I think. I thought of something like the command:
Code:
$ programidontknow --encrypt mysensitive.file --output-file mumblerumble.file
then the program asks interactively for a password)
$ ls
mysensitive.file mumblerumble.file
So I get one file that may look like junk. I tried to search how to do it with GnuPG. But it seems that GnuPG needs much configuration I dont want to do. I simply want to type the password one time to get the file. It doesnt need to retain any configuration for what I want to do. In similar scenario, I would want to do this on a machine/account that is not mine.
I want to encrypt Full partition instead of creating a file and encrypting it, and also want to move this disk to another server. do i need some files also (that hold keys) with my self on new server. i am using FC11.
View 2 Replies View Relatedif these are set to be encrypted on installation how would I go about changing that?
View 2 Replies View RelatedI want to have a "Private" folder on my flash drive. How would I encrypt it so that it asks for a password when you try to open it?
View 1 Replies View Relatedhave the home directory encrypted after the initial installation? I know on a clean installation you can set this up.However, is there an easy way to do so after? Ubuntu Karmic x64
View 1 Replies View RelatedI recently installed Ubuntu Linux and did not encrypt the home directory during the install. Now I want to encrypt my home directory, or even better the whole hard drive.
View 2 Replies View RelatedI am a student studying computer science course.
Well, I am facing problem when doing lab questions.
I must use DLXLinux bundled in Bochs (bochs.sourceforge.net).
I am required to use the /usr/local directory.
In /usr directory, there is no directory named 'local' but there is one thing called 'local@'. So, when I try to use mkdir command to create 'local' directory in /usr , there are error "cannot make directory.....".
Look at my screenshot at [url].
I am an extremely inexperienced user of command line computing (I am working with Terminal.app on Mac OS X Snow Leopard) who is trying to compile Fortran code with the G95 compiler. I have created a folder within the G95 directory that I would like to use for storing all of my code files, but when I try to cd from the G95 directory to the new one that I created, I get the above error. I can cd to other folders within the G95 directory, and have tried all combination's of capitalization.
View 14 Replies View RelatedI'm quite new to linux but I have configured a simple ftp server and it's working great. I have a FTP-Shared folder with upload and download subfolders. Under upload's and download's I have identical category subfolders like mp3's, movies, software etc. in both. As the guy's upload, I would like to create a line crontab where I can move all the content under /FTP-Shared/upload/mp3/* older than 14 day's to FTP-Shared/downloads/mp3/ recursively (Like in cp command), but the timestamp must be searched on the first directory and not sub files example: /mp3/Club Dance/CD1/Hallo world.mp3This is how far I got:[root@clients ~]# /usr/bin/find /FTP_Shared/upload/Mp3s/ -depth -mindepth 1 -mtime +14 -type d -exec mv -f {} /FTP_Shared/download/Mp3s/ ;This command moves the directory and files, but it is not recursively
View 4 Replies View RelatedRecently did a clean install (instead of upgrade) of 11.04 from 10.10 and this error bugged me for the first time.
ubuntu@ubuntu:~$ sudo apt-get install grub-pc
Reading package lists... Done
Building dependency tree
[code]....
followed this one too to the letter: ubuntu@ubuntu:~$ sudo chroot /mnt/clean/sda1 apt-get install -y grub-pc chroot: failed to run command `apt-get': No such file or directory tried this one too:
ubuntu@ubuntu:~$ sudo grub-install /dev/sda1/usr/sbin/grub-probe: error: cannot stat `aufs'.and this too which got me a bash something:
ubuntu@ubuntu:~$ sudo mount /dev/sda1 /mnt
ubuntu@ubuntu:~$ sudo mount -o bind /sys /mnt/sys
ubuntu@ubuntu:~$ sudo mount -o bind /sys /mnt/sys
[code]...
I have booted up into Ubuntu 10.04 LTS disc live.
When I type 'chroot /media/(UUID)', I get:
chroot: cannot run command '/bin/bash': no such file or directory.
'/bin/bash' does exist.
Why is this error occurring?
I'm trying to change the root directory to /tmp/somedir using chroot, but even using sudo or su-ing to root I get the message:
Code:
cannot run command `/bin/bash': No such file or directory
I tried copying /bin/bash to /tmp/somedir/, but the same error occurs. What's wrong with my chroot?
I am trying to add a command to my backup script to delete the oldest file in the destination folder before adding a new .tar.gz file.I found this information at .html which I thought would work fine and added the following line to my backup script:ls -t -r -l /backups/Scalix_Backup* | head --lines 1 | xargs rmHowever when I tried this I get an error:rm: invalid option -- wTry `rm --help' for more information
View 7 Replies View RelatedA colleague gave me a shell script ("dti_motion") which needs to be run from the directory containing all the files it works on. I want to run the same script for several different directories. But I don't want to have to cd into each directory, run the script, wait for it to finish, and then cd to the next directory (there are 52 to do altogether).
So I wanted to write a very simple script that will cd to each directory and perform the script there, before going on to the next one. My colleague's script ("dti_motion") is stored in my home/bin/ and is executable. My home/bin/ is in my path, as verified by echo $path. When run from a directory containing the necessary information, the dti_motion script works perfectly well. I wrote an extremely inelegant script called "dti_motion_do_all" which is also stored in my home/bin/ and executable:
#!/bin/sh
#Get motion information for each subject, using Mark's script, called dti_motion
cd /imaging/cr01/PD_DTI/C_10/12x5
[code]....
I know there will be more elegant ways to write this script with loops, rather than simply using cd, but for the moment, I just want this to run, until I have learnt to use loops properly. how to correct either of those "command not found" or "no such file or directory" errors, given that both the original dti_motion and my dti_motion_do_all script are in my /home/bin/ (which is on my path) and both scripts are executable?
I want to copy file from the Server cd drive and USB drive to the server root directory, but I haven't find any command of listing the cd drive or usb drive.
View 4 Replies View RelatedI need user to input a password through command line in Windows cmd prompt. Is there a way to encrypt the input (such as put it into ......) when user is typing ?
View 2 Replies View RelatedI use this line to line to archive and password protect my files (with zero compression):7z a -p -t7z -mx0 ~/Documents.7z ~/Documents In the attached picture, I notice there is a check box to 'Encrypt the file list too' via the GUI 7z method. How could I add this option to the above 7z line?
Also I think rar allows you to 'Encrypt the file list too'. Could someone also give me a rar line similar to 7z a -p -t7z -mx0 ~/Documents.7z ~/Documents but that has the 'Encrypt the file list too' feature added?
How do I go about encrypting a file in Ubuntu 10.04?
View 9 Replies View RelatedI would like to encrypt and decrypt zip file using OpenSSL keys. I have generated the keys and can encrypt normal text files but if I try to encrypt the zip file, I get error: "Error reading input Data" Following is what I have done.
generate keys:
Code:
openssl genrsa 4096 > private-key.pem
openssl rsa -pubout < private-key.pem
openssl rsa -pubout < private-key.pem > public-key.pem
encrypt the file:
Code:
openssl rsautl -encrypt -pubin -inkey public-key.pem -in test.zip test.zip.encrypted
I must use public/ private key pair (without any password) and I must use OpenSSL. But I can use any algorithm other than RSA (not sure which one to use and how).
I am looking for something like Ubuntu does (or claims to do :-) ): encrypt the home folder so that, once done, you can even forget that it ever was encrypted.
I have had a quick look to encfs, and to the KDE "right click menu"; but, when dealing with folders, it seems that they pack them into a single file and then encrypts it (if I have correctly understood).
So, what is the way of encrypting the home folder (and subfolders) as Ubuntu does? (and so that you can completely forget afterwards)
I want encrypt my fedora file system.
How to i can encrypt ext3 or ext4 file system.
I recently installed Fedora 11 64bit and I am curious about encrypting my entire file system for security purposes. I've been on Google for a while now and I keep finding info on how to encrypt a specific folder or home directories but nothing on the entire file system (or I'm missing something big here). It's hard for me to imagine that it isn't. If so, do I need to encrypt the partition my file system is on before installing it? What software should I use? There seems to be so many, it's difficult to keep them all straight.
View 5 Replies View RelatedI want to be able to encrypt files on my netbook with Ubuntu 9.04 UNR and on my MacBook (Mac OS 10.6.2) and be able to exchange them and decrypt them on the other platform.The Ubuntu command Edit>Encrypt is so easy to use but works only on the netbook. I haven't, thus far, found a program to open them on the Mac or to create an encrypted file on the Mac that I can open on the netbook.
View 3 Replies View RelatedI am using openSUSE 10.3.When I install software from tarball then to record time required I send output of date to beg.txt(when installation begins) and end.txt (when installation finishes).How can I append output of date to a file so I don't need two files?
View 4 Replies View RelatedCan't log into my XFCE desktop like I normaly do. all the sudden I get notified that my xsession lasted less then 10 secondsLooking at the error I can see this:
Unable to access file /home/username/.iceauthority: No such file or directory
Using failsafe I can start a terminal. From terminal I tried to start X
Code: sudo startx Result: Running on desplay:0
So I tried to run this;
Code: sudo startxfce4 And I get up a graphical desktop.
So this is not a critical situation as I easily can use this method to log on, but as there has been something causing this I would like to be able to resolve this nonetheless. Btw it is not the old chmod trick in play here, cause my .iceauthority file is gone alltogheter.