'useradd' takes care of all that. It will also add the default directory and files in the new home directory and add the appropriate entries into /etc/passwd and /etc/shadow. No need for a counter. See previous comments for more information.
If you have to use a counter, these constructs will work also.
But, then you'll have to find the highest UID and GID values in /etc/passwd for regular users. That will involve reading /etc/login.defs to get UID_MIN, UID_MAX, GID_MIN, GID_MAX and reading all of /etc/passwd for maximum valid UID and GID values. It's just not worth it. 'useradd' is much easier. To create password run 'passwd $user' after 'useradd'. So that's...
Hi, Im newbie,
I wanna to create file in each user directory, how to make that script, maybe someone can give me example, im confusing coz i have to change form one user directory to other
Thank U. (8 Replies)
Please help. I am the beginner. Don't understand about archive file. How to create a directory for the files from each archive with name of directory which equivalent to the base name of the archive. eg I have file abc.txt. How can I create a directory name abc. Thank you (1 Reply)
hello.
i hav accepted name of directory from user through a form.now i need to create a directory under cgi-bin of that name.I am not able to do so.n help is required (12 Replies)
Hi All,
I have directory under /opt/test.
The ownership of the test directory is root:root.
I have login to the server as test user.
I need to have some script to create a directory inside /opt/test.
This script will be called as test user.
When I try to execute... (4 Replies)
Hello,
I am new in AIX please tell how can i create user and add group in this user for example, i want to create user umair and want to add this user primanry group DBA and secondary group ORACLE,how can i do this please tell in detail
Thanks,
Umair (1 Reply)
Hi All,
I am trying to uninstall jdk 1.5 from my Solaris 10 64 bit but some how was not successful.so tried to delete the folder of jdk from /usr but its throughing error as:
Unable to remove directory jdk: Read-only file system
Even I tried to create a dir in /usr but its not allowing me... (4 Replies)
Hello All,
I have to write a shell script and use it in informatica. The script has to perform below actions:
The script gets executed from edw user.
Through the script, a DT folder has to be created under edw_sca user.
Is this scenario possible through a SHELL script or not.
... (2 Replies)
I have a script, which is checking if file exists and move it to another directory
if
then
mkdir -p ${LOCL_FILES_DIR}/cool_${Today}/monthly
mv report_manual_alloc_rpt_A_I_ASSIGNMENT.${Today}*.csv ${LOCL_FILES_DIR}/cool_${Today}/monthly
... (9 Replies)
Discussion started by: digioleg54
9 Replies
LEARN ABOUT DEBIAN
yhsm-linux-add-entropy
yhsm-linux-add-entropy(1) General Commands Manual yhsm-linux-add-entropy(1)NAME
yhsm-linux-add-entropy - Seed the Linux entropy pool with data from YubiHSM TRNG
SYNOPSIS
yhsm-linux-add-entropy [options]
DESCRIPTION
The YubiHSM uses "Avalanche Noise" TRNG together with USB SOF jitter sampling to feed a DRBG_CTR algorithm (NIST publication SP800-90). The
result has been verified as being random data of good quality by at least one third party cryptographer. <http://sartryck.idg.se/Art/
Yubihsm_1_TW072011.html>
Use this program to add random data from the YubiHSM to the entropy pool of your Linux operating system. This is useful whenever lots of
random data is needed, such as when generating chryptographic keys (GPG-keys), on a server terminating SSL sessions etc.
You may run this script from cron, or in a while-loop. Make sure it does not run at the same time as something else accessing the YubiHSM
though, or the two tasks may interrupt each other - probably making both fail.
OPTIONS -D, --device
device file name (default: /dev/ttyACM0).
-v, --verbose
enable verbose operation.
-c, --count
number of iterations to run (default: 100).
-r, --ratio
bits per byte read to use. 8 is probably fine, but as a conservative default 2 is used.
--debug
enable debug printout, including all data sent to/from YubiHSM.
EXIT STATUS
0 Entropy added successfully
1 Failure
BUGS
Report python-pyhsm/yhsm-linux-add-entropy bugs in the issue tracker <https://github.com/Yubico/python-pyhsm/issues/>
SEE ALSO
The python-pyhsm home page <https://github.com/Yubico/python-pyhsm/>
YubiHSMs can be obtained from Yubico <http://www.yubico.com/>.
python-pyhsm December 2011 yhsm-linux-add-entropy(1)