Moving the special folders

Windows Vista lets you easily relocate the shell folder paths for Documents, Music and Pictures folder using the Property sheet. Note that in Windows XP, selectively moving the My Pictures or the My Music folders required a registry edit. This is no longer the case in Vista.
Method 1

To move a special folder to a different drive or path, follow these steps:

    * Create the destination folder first
    * Click the Start button
    * Right-click the special folder (Documents, Music, or Pictures) and choose Properties
    * Select the Location tab
    * Click Move and select the target folder
    * Click Apply
    * Click Yes when you're prompted to move the files to new location
    * Click OK


How to find which libraries a program requires?

To find out which shared libraries a program requires, type

    ldd `which _program_`

    (make sure you use the back single quote `, not the apostrophe, ')

    The which command just gives the full path for a given _program_
    ldd lists library dependencies.

Shutdown for non-root users

Allowing non-root users to shutdown a Linux box.

    1. As root create a group shutdown.
       #addgroup shutdown

    2. Put /sbin/shutdown into the group shutdown.
       #chown root.shutdown /sbin/shutdown

    3. Change accessrights to make /sbin/shutdown setuid and disallow
       other users from executing shutdown.
       #chmod 4754 /sbin/shutdown

    4. Make a link from /bin/shutdown to /sbin/shutdown
    #ln -s /sbin/shutdown  /bin/shutdown

    Now anyone belonging to the group shutdown can execute shutdown but I just will
    allow the person in control of the keyboard to be able to issue the shutdown
    command. You might prefer something else.

    For the following to work you need to have "shadow password" installed but I
    believe most have it.

    5. Edit the file login.defs. Near the end of this file locate the line
    #CONSOLE_GROUPS       floppy:audio:cdrom
    Remove the hashsign and add the group shutdown to this line and you get:
    CONSOLE_GROUPS        floppy:audio:cdrom:shutdown

    Thats it. Everyone logged in via the console will belong to these groups so
    you need not add anyone to them. I believe this is better than to just add
    users to the group shutdown.

How to disable identd checks in sendmail?

> also for sendmail users, note that by default sendmail is set up
    > to do an identd check on incoming connections. this really slows
    > things down when its always waiting for timeouts on sites which
    > dont run an identd server.

    Don't they get a simple `connection refused' ?
    I'd only expect a timeout on machines that are down.

    > there is a config option (forget exactly what at the moment) to
    > disable this silly overhead.

    % grep -i ident /etc/sendmail/config.m4
    define(`confTO_IDENT', 0s)

Nameserver settings for ppp

 > I was a little worried that it didn't ask for my nameservers but I
    > decieded to leave my setings in /etc/resolv.config and it seems to be
    > working.

    pppconfig checks /etc/resolv.conf.  If it exists and has nameservers it
    doesn't ask for new ones.

How to restrict diald only to work one hour per day?

 > is it possible to restrict diald only to work at e.g. one hour per day?
    >
    > and how? (config file, cron-job, etc.)

    >From the diald man page:

           restrict <start> <end> <weekdays> <monthdays> <months>

           or-restrict <start> <end> <weekdays> <monthdays> <months>
                  Normally filter  rules  apply  at  all  times.  The
                  restrict statement makes all filter rules following
                  the restrict statement, up  to  the  next  restrict
                  statement, apply only at the times indicated by the
                  restrict statement.

How to restrict diald only to work one hour per day?

 > is it possible to restrict diald only to work at e.g. one hour per day?

    Yes.

    > and how?

    Turn on the command fifo and then send commands such as 'block' and
    'unblock' from cron jobs.  man diald and man diald-control.