Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 10 of 10
  1. #1
    Member rs-freddo's Avatar
    Join Date
    May 2003
    Location
    Australia
    Posts
    819
    cPanel/Enkompass Access Level

    Root Administrator

    Default correct permissions of .rnd

    it's located in /home/username/

    I have no idea what it's for. Anyone know the correct permissions for it?
    Michael

  2. #2
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,170
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    I checked several accounts here and perms on them are 600. (not sure if that's correct, just what these are here.)

    This may shed some light I think.


    Random Seed File
    All cryptographically sound key generation schemes must have means to randomize the entropy seed used to initialize the internal pseudo-random number generator used by the OpenSSL library routines. If a site supports ssh, it is very likely that means to do this are already available. The entropy seed used by the OpenSSL library is contained in a file, usually called .rnd, which must be available when starting the ntp-keygen program or ntpd daemon.

    The OpenSSL library looks for the file using the path specified by the RANDFILE environment variable in the user home directory, whether root or some other user. If the RANDFILE environment variable is not present, the library looks for the .rnd file in the user home directory. Since both the ntp-keygen program and ntpd daemon must run as root, the logical place to put this file is in /.rnd or /root/.rnd. If the file is not available or cannot be written, the program exits with a message to the system log.
    http://www.ece.udel.edu/~mills/ntp/html/keygen.html

  3. #3
    Member rs-freddo's Avatar
    Join Date
    May 2003
    Location
    Australia
    Posts
    819
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    I've got permissions of 600. Also .rnd is owned by root.wheel is that correct?
    Michael

  4. #4
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,170
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    user:user here.

  5. #5
    Member rs-freddo's Avatar
    Join Date
    May 2003
    Location
    Australia
    Posts
    819
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    thank you much appreciated.
    Michael

  6. #6
    Member
    Join Date
    Jan 2008
    Location
    Buenos Aires, Argentina
    Posts
    833
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Hi, Recently (about 3 weeks ago) I'm receiving backup errors messages concerning this file for only one domain that has been created in March 2008.
    I can confirm that this .rnd file has permission of 600 and is owned by root:wheel. I've searched for the .rnd files in some other domains and found that they have the same permissions/owners and they are not generating reports. Also, there are domains (user folders, let's say) not containing this .rnd file.....

    All these reports begun to arrive after upgrading to cPanel 11.24.4-S33345. The singularity is that that upgrade were done on Feb 1st., and actually I last upgraded to cPanel 11.24.4-S35075 on Apr 10th and the error messages still are coming.

    May this be a bug in pkgacct?
    Content is the king. Usability is my God.

  7. #7
    Member rs-freddo's Avatar
    Join Date
    May 2003
    Location
    Australia
    Posts
    819
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Backup only sends one error email. Check the logs for other errors. Changing ownership to user:user worked for me.
    Michael

  8. #8
    Member
    Join Date
    Jan 2008
    Location
    Buenos Aires, Argentina
    Posts
    833
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by rs-freddo View Post
    Backup only sends one error email. Check the logs for other errors. Changing ownership to user:user worked for me.
    All the allocated accounts have the .rnd file with ownership root:wheel.
    if changing it to user:user will not cause any damage, how can I batch convert all the .rnd files?
    Content is the king. Usability is my God.

  9. #9
    Member
    Join Date
    Mar 2004
    Posts
    815

    Default

    Sorry, I know this is an older post, but I just found a .rnd file in the /tmp directory. It was a small binary. Because it was on none of our servers in the /tmp it looked suspicious so I deleted it.

    What the heck is this .rnd file? What does it do?

  10. #10
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,170
    cPanel/Enkompass Access Level

    Root Administrator

    Question

    Did you read the rest of the thread?

Similar Threads & Tags
Similar threads

  1. Correct Permissions for /etc/localdomains ?
    By mikelegg in forum cPanel and WHM Discussions
    Replies: 11
    Last Post: 02-03-2011, 08:22 PM
  2. Replies: 0
    Last Post: 10-11-2008, 12:33 PM
  3. RHEL3 + Exim: correct permissions for /mail directoy?
    By benlancaster in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 11-06-2005, 11:46 AM
  4. making sure php has correct permissions
    By EMS in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-30-2003, 02:50 PM
  5. Domain Parking does not correct permissions
    By bert in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 04-23-2002, 05:56 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube