Tag Archives: tips and tricks

How to Use wget for Recursive get Without Traversing the Parent Directory

When grabbing files with wget, it is useful to sometimes not traverse parent directories. For example, say I want to download everything under http://www.example.com/my/home recursively, but not traverse upwards into parent directories. You can add the –no-parent option for this.


 

How to Change the UID of a Running Process

Recent versions of Solaris come with a suite of tools known as the “/proc” tools, which list and/or modify process information in the kernel-maintained /proc filesystem. One of these tools, pcred, can be used to change (among other things) the UID of a running process, e.g.:


If you run a man proc, you’ll receive the manual page for the /proc tools - highly useful.

How to View LDOM Configuration as a Non-Privileged User

If you try to view LDOM configuration information as a non-privileged user, you’ll probably be greeted with this:


You can assign the “LDoms Review” profile to grant this privilege, i.e.:


Now, you can view the LDOM Configuration as the non-privileged user to which the privilege was assigned: