Search Results

Search: Posts Made By: kjd
3,660
Posted By kjd
Expect
The passwd utility reads directly from a tty, so writing to it's stdin will have no effect. The Expect language has been designed with this type of interface in mind, and is commonly used to...
4,494
Posted By kjd
If you need to log in as a user other than the...
If you need to log in as a user other than the current username on the local side (e.g. you're logged in as penguin, and want to log in to the remote machine as tux, not penguin), specify the...
4,507
Posted By kjd
perl -pi -e
The -i option in Perl will edit the specified file "in place", so you don't have to mess with moving files around.

% echo "eat food" >> test.txt
% echo "eat more food" >> test2.txt
% perl -pi -e...
5,142
Posted By kjd
Comparison or storage for later use?
If you're storing for comparison (authentication) purposes (e.g. user enters a password, you save it, then later ask for the password again for verification), then you can store an MD5 hash of the...
48,887
Posted By kjd
GNU sleep / perl
GNU sleep 2.0a and up support floating-point numbers (i.e. sleep 0.25).

If your script is in Perl, you can use select() to time out in fractions of seconds:

select(undef,undef,undef,0.25); #...
4,494
Posted By kjd
Additional Info
Recent versions of OpenSSH include a feature called Privilege Separation. This allows as much of sshd as possible to run as a non-privileged user (sshd), rather than as root.

In previous...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 06:06 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy