- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- password .. tricky question
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
Discussions
Discussions
Forums
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
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-06-2006 04:41 AM
тАО07-06-2006 04:41 AM
password .. tricky question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-06-2006 04:55 AM
тАО07-06-2006 04:55 AM
Re: password .. tricky question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-06-2006 05:08 AM
тАО07-06-2006 05:08 AM
Re: password .. tricky question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-06-2006 06:35 AM
тАО07-06-2006 06:35 AM
Re: password .. tricky question
http://www.comeaucomputing.com/faqs/ccshfaq.html
If you will try that, just ensure that the resulting binary command won't show the user and password when you run the "strings" command over the file.
Of course, you always can remove the read permissions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-06-2006 12:53 PM
тАО07-06-2006 12:53 PM
Re: password .. tricky question
There are possibly several ways to do what you're after, securely. It all depends on exactly what you're trying to do.
You mention that the script needs to authenticate against something. Is this something usual like telnet/ftp/http?
Also, who would normally run the script? If it is only ever run by the user whos details it contains, simply set the permissions so that only the user can access the script (chmod 400 <script> then other users cannot access it)..
If the script is for general use, then it all depends on how secure you want it to be...
Tell us more detail and we might be able to help.
Regards,
Andy Bruce
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-06-2006 11:01 PM
тАО07-06-2006 11:01 PM
Re: password .. tricky question
Thanks for the contibution ..
Regards ..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2006 01:27 AM
тАО07-07-2006 01:27 AM
Re: password .. tricky question
http://www.die.net/doc/linux/man/man5/netrc.5.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2006 03:50 AM
тАО07-07-2006 03:50 AM
Re: password .. tricky question
scp and use authorized keys. No login required
if you have the correct keys.
You can password protect the key and and use a
key agent, or leave the key unpassword protected and trust the security of the
system. The unpassword protected variant is more secure than your script would be as
the key must be appropriately secured to
work.
Access by keys can be restricted in various
ways if required. This would further enhance
security over using a script.
In addition to not having to hide the password
in the file, you also won't be passing it
over the network in clear text. Another
gain in security.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2006 11:34 PM
тАО07-13-2006 11:34 PM
Re: password .. tricky question
The reason is simple as far as telnet and ftp aren't using any sort of encryption, the password is sended as plain text.
Which means in the moment you are logging you write those informations in socket as plain text. So anyone can tcpdump or anothert network analyzator and see it in packet.
Or even if you will encrypt it in script and script it self will decrypt this befor sending, anyone who can copy or modify your script is able to add one line with print loggin password just befor writen this information to the socket.
So anybody who is able to listen on network or modify your script will be able to get the password.
Sure you can make some sort of encrypted password and decrypt it just befor sending as I said but it will hide password just for BFUs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2006 10:04 PM
тАО07-30-2006 10:04 PM
Re: password .. tricky question
Do a man ascii, and use echo -e to print the numerical value of each letter in the passwd.
eg: Pass=hello
PASSWD=`echo -e "\150\145\154\154\157"`
etc...
It's not good or safe at all, but it may deter the casual on looker... You can create your own key file and mix up the number in an array, although it's pretty pointless as it's so easy to reverse.
-=ChaZ=-