Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: Accessing User Sites folder via Webserver #376581
    Dean_Shavit
    Participant

    [QUOTE][u]Quote by: scorpioserve[/u][p]Sorry one last thing I forgot to mention is that, and correct me if I am wrong but I thik that the ~ tilda symbol on os X is like an alias pointing to a specific folder, so I would rater use absolute paths for this lot, just incase. 😉 [/p][/QUOTE]

    the tilde (not Tilda like the famous actress) is actually a shortcut to the current user’s home directory.

    in reply to: DNS Server replacement #376580
    Dean_Shavit
    Participant

    [QUOTE][u]Quote by: scorpioserve[/u][p]Thanks for the info, I will have to give it a try.[/p][/QUOTE]

    Once you go Webmin, you’ll never go back.

    in reply to: ARD kickstart, uid lower than 500? #372487
    Dean_Shavit
    Participant

    [QUOTE][u]Quote by: patgmac[/u][p]Hiding a user in loginwindow will also hide it from the Accounts System Prefs and ARD config in the GUI. You can still add access for that user using kickstart or by created a client installer. This should be preferred. A big reason to hid an admin user to to prevent end-users (who are also admins) from making any changes to the support admin user, this would include ARD access. [/p][/QUOTE]

    How about creating a custom installer with Directory-Based administration and putting that into the build train. Then there’s no need to have any local accounts so long as the you (or any other admin) is in the group “ard_admin” on the od master or ad domain controller. Of course, hidden admin accounts are cool for other reasons, but if it’s just ARD access, this will work as well as anything.

    Dean_Shavit
    Participant

    [QUOTE][u]Quote by: Phil+Welbourn[/u][p]I have an RsyncX script between two Xserves (one Intel, one original PowerPC model). The script works fine when logged in as Admin and run from the Terminal. However when run as a cron job, the data is synchronized as expected but the rsync process doesn’t seem to quit. On both Xserves Activity Monitors, multiple instances of the process build up over time, hogging the processors.

    Manually running the script nicely launches, does its job then quits.

    I’m using an SSH tunnel between the two.

    Anybody got any ideas?

    Many thanks.[/p][/QUOTE]

    This is a fairly basic suggestion, but when you reference rsync in your script and/or cron job, do you use the full path to the rsync binary in /usr/local? Or do you leave it up the the system to determine which of the two rsync binaries to use?

    in reply to: Using slapconfig -backupdb in a backup script #369477
    Dean_Shavit
    Participant

    [QUOTE][u]Quote by: kainewynd2[/u][p]First item to note: I am competent with bash scripting, but not “good.” If I was good I wouldn’t be asking this question. 🙂

    So, I have a client who was only able to purchase one OD Xserve to use in a AD-OD integration project. Everything is running great (finally), but I would like to be able to pull nightly database backups since we don’t have a replica scenario in place.

    So far I have the following:

    [code]
    ############################################
    # VARIABLES
    ############################################
    DATE=`date “+%Y-%m-%d”`
    BPATH=”/Volumes/Data/Backup/ODBackup”
    FILENAME=”$BPATH/$DATE-backup”
    PASSWORD=”blargh”

    ############################################
    # WORK
    ############################################
    /usr/sbin/slapconfig -backupdb $FILENAME

    /usr/sbin/chmod 700 $FILENAME
    [/code]

    As you can see I am missing one major portion of the code which is where I pass the archive password variable. I know this sort of thing is possible in bash scripting, but I’m not entirely sure what it’s called so I haven’t had any luck looking it up.

    Additionally, I am aware of the security implications of having the archive password in a clear text document and will have permissions set accordingly.

    Thanks in advance.

    –Mike[/p][/QUOTE]

    That would be the “expect” command which works interactively with the current tty. Have a look at Andrina’s article on changing local admin passwords (it’s a few years old, but a good illustration on how to use expect).

Viewing 5 posts - 1 through 5 (of 5 total)