Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2002 08:14 AM
07-01-2002 08:14 AM
I want to create some file which i do not want others to read so vi -x filename with the key. Question would be how do i execute it?
Thanks
Joe.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2002 08:22 AM
07-01-2002 08:22 AM
Re: vi -x?
If I understand your question correctly, simply take a look at the man pages for 'crypt'. There is an example there.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2002 08:26 AM
07-01-2002 08:26 AM
SolutionIf someone now tries to vi or cat the file, it is gibberish.
To edit/view the file, you again invoke vi -x; when prompted for the key, enter the same key that you originally used.
-----------------------------------------
Now, if your question is: "I created a shell script using vi -x. How can I then execute it?". The answer is that you can't. Your options are 1) write in in a programming language like C or C++. 2) Get a copy of ShellLock from these guys: http://www.cactus.com/. 3) Use Perl with the Filter module, in that case everything after the use Filter; statement is encrypted.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2002 08:38 AM
07-01-2002 08:38 AM
Re: vi -x?
vi -x < file name>
enter Key : enter a ascill string like abc ( say a passwd )
modify the file
save it, and exit.
now if you cat the filenaem it will show the dump non ascii characters to view the same file back you can vi -x filename again and then enter the asccii string which you entered before.
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2002 08:38 AM
07-01-2002 08:38 AM
Re: vi -x?
Joe.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2002 09:42 AM
07-01-2002 09:42 AM
Re: vi -x?
`crypt key < encrypted.file`
...jcd...