Re: [SLUG] Tar backup of links

2010-03-16 Thread Jeff Waugh


> how does tar handle links?
> 
> I have several nested layers of folders and some of them are linked back
> to other folders.
> 
> If I use tar to make a backup of the root folder and subfolders, does tar
> backup the link files or does it backup the REAL files?
> 
> Such that if I do a restore, I want the link files there... not replaced
> with copies of the real files. Still googling for answers... is there a
> command switch?

By default, tar will do what you've described (at both ends).

If you pass --dereference or -h, it will follow the symlinks, thus archiving
whatever they point to (directories or files, it'll follow them all).

- Jeff

-- 
The Great Australian Internet Blackout   http://www.internetblackout.com.au/
 
  "To do: Start up a a magazine dedicated to picky grammar. Call it 'Whom
  Weekly'." - WzDD
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] Tar backup of links

2010-03-16 Thread Ben Donohue

Hi all,

how does tar handle links?

I have several nested layers of folders and some of them are linked back 
to other folders.


If I use tar to make a backup of the root folder and subfolders, does 
tar backup the link files or does it backup the REAL files?


Such that if I do a restore, I want the link files there... not replaced 
with copies of the real files. Still googling for answers... is there a 
command switch?



Hope this is clear.
Ben


--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Another good reason to stick with NON-DRM'd stuff

2010-03-16 Thread Mark Walkom
Wow, not even a months notice!

*Customer Notification - 5th March 2010*
http://bigpondmusic.com/WMA_support/?cid=30070-wma

On 17 March 2010 10:56, elliott-brennan  wrote:

> Saw this e-mail from Bigpond today (they're not my
> ISP).
>
> **
> *Dear BigPond^® Music Member,*
>
> BigPond Music won't be supporting the Windows
> Media Audio ('WMA') file format after 1 April
> 2010. That means you won't be able to download new
> DRM (Digital
> Rights Management) 'unlock' keys for the WMA files
> you've bought from us already
> - so you should back up your music now.
>
> Any MP3 files you've bought from us won't be
> affected. Read further if you want to know more
> about WMA files.
>
> *Here's why you should back up your music.*
>
> As long as you keep using the same computer and
> operating system, you shouldn't have any trouble
> playing your WMA music files. But if you try to
> move them onto a new computer or operating system,
> they won't work if you don't transfer their DRM
> keys as well.
>
> Besides, backing up your collection is a good idea
> - for your MP3 files too.
>
> *So here's what to do.*
>
> You can back up your music collection now, by either:
>
> 1. Burning it to audio CD (Click here
> <
> http://www.microsoft.com/windows/windowsmedia/knowledgecenter/howto/burn_how_to.aspx
> >
>
> to find out how.)
>
> 2. Backing up your WMA files and licences
> separately (See how to do it here
> .)
>
> *Additional information on WMA's & DRM.*
>
> All our music was in the secure WMA file format
> when BigPond Music started. Whenever you
> downloaded a WMA file you downloaded it's
> encrypted Digital Rights
> Management ('DRM') code at the same time.
>
> DRM is a kind of lock and key system. The key
> unlocks the music so that it'll only play on your
> software. The downside of this security is that
> WMA downloads
> don't work on popular systems like Apple's iPod
> and iTunes software. It's also hard to move WMA
> files without downloading a new licence key.
>
> We started selling MP3 files without any DRM or
> licence key restrictions in August 2008. MP3's are
> a much more universal format that works on most
> digital music players and software. We stopped
> selling WMA files in March 2009, and only offer
> MP3 music now.
>
> *
> The BigPond Music Team*
>
> **
>
> Feel sorry for those who were suckered in.
>
> Regards,
>
> Patrick
>
> --
> Linux - you use it everyday
>
> --
> SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
> Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
>
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] Another good reason to stick with NON-DRM'd stuff

2010-03-16 Thread elliott-brennan
Saw this e-mail from Bigpond today (they're not my
ISP).

**
*Dear BigPond^® Music Member,*

BigPond Music won't be supporting the Windows
Media Audio ('WMA') file format after 1 April
2010. That means you won't be able to download new
DRM (Digital
Rights Management) 'unlock' keys for the WMA files
you've bought from us already
- so you should back up your music now.

Any MP3 files you've bought from us won't be
affected. Read further if you want to know more
about WMA files.

*Here's why you should back up your music.*

As long as you keep using the same computer and
operating system, you shouldn't have any trouble
playing your WMA music files. But if you try to
move them onto a new computer or operating system,
they won't work if you don't transfer their DRM
keys as well.

Besides, backing up your collection is a good idea
- for your MP3 files too.

*So here's what to do.*

You can back up your music collection now, by either:

1. Burning it to audio CD (Click here


to find out how.)

2. Backing up your WMA files and licences
separately (See how to do it here
.)

*Additional information on WMA's & DRM.*

All our music was in the secure WMA file format
when BigPond Music started. Whenever you
downloaded a WMA file you downloaded it's
encrypted Digital Rights
Management ('DRM') code at the same time.

DRM is a kind of lock and key system. The key
unlocks the music so that it'll only play on your
software. The downside of this security is that
WMA downloads
don't work on popular systems like Apple's iPod
and iTunes software. It's also hard to move WMA
files without downloading a new licence key.

We started selling MP3 files without any DRM or
licence key restrictions in August 2008. MP3's are
a much more universal format that works on most
digital music players and software. We stopped
selling WMA files in March 2009, and only offer
MP3 music now.

*
The BigPond Music Team*

**

Feel sorry for those who were suckered in.

Regards,

Patrick

-- 
Linux - you use it everyday

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] A little script help

2010-03-16 Thread Peter Chubb
I find password generated like that to be too hard to remember.

This is one that I used to use.  Repeat until you have a set of three
words you can remember.  It doesn't match your criteria, but it does
produce something that's reasonably unguessable, and relatively easy
to remember.

---
#!/bin/sh
DICT=/usr/share/dict/words

# Pick three words
w1=`shuf -n 1 $DICT`
w2=`shuf -n 1 $DICT`
w3=`shuf -n 1 $DICT`
echo $w1 $w2 $w3
---
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] A little script help

2010-03-16 Thread Daniel Pittman
Amos Shapira  writes:
> On 16 March 2010 18:18, Josh Smith  wrote:

[...]

>> I plan to use this for work for the (DRN) I have run out of things to
>> put as my password and I am not aloud to have the same password twice
>
> I use pwgen to generate my passwords and a password vault to keep them
> as a backup.

I advise 'apg', which is packaged for most distributions.  While it has some
theoretical weaknesses[1], it is sufficiently strong that it should beat any
non-targeted attack.

The advantage of it, though, is that it generates passwords that follow the
same basic rules of structure that English words do, so they are remarkably
easy to memorise and use in practice.[2]

[...]

> 2. Split the loop to three - one which picks a first letter from the
>uppercase-only string, one which picks 5 characters from LORD and one
>which picks 2 characters from the digits-only string.

Ideally, you would want to rewrite this as a function which takes a candidate
set of characters, picks a random character from it, then returns that.  Then
you could make it easy to template your passwords to whatever length and
complexity you need.

Regards,
Daniel

Footnotes: 
[1]  It uses a generation model that doesn't produce perfectly random results,
 by selecting from the pool of valid results.  This introduces imbalances
 in the generated parts-of-speech in the passwords, allowing you to
 substantially reduce the search space over a fully random password
 generator.

 If you are concerned, and care more about probably-theoretical security
 then there is a Perl implementation of the same idea which uses a
 fully-random password generator, and then tests the generated password
 for compliance to the parts-of-speech model.

 That removes the bias, and is as theoretically secure as a fully random
 password when the same number of bits of entropy are included.
 Obviously, the use of filtering means less bits-per-character. :)

[2]  Every time I tell someone this, they don't believe me, because it doesn't
 look easy to memorise.  In practice, they never fail to be amazed how
 well they did committing it to memory after the fact. 

-- 
✣ Daniel Pittman✉ dan...@rimspace.net☎ +61 401 155 707
   ♽ made with 100 percent post-consumer electrons
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] A little script help

2010-03-16 Thread Amos Shapira
On 16 March 2010 18:18, Josh Smith  wrote:
>
>
> Hey everybody.
>
>
> I am using this script at the moment. It a little password generator
> script I was wondering if anyone could help me out.
>
> I would like the First letter to be a Capital and the last two to be any
> digits?
>
> The one that I have puts capitals all over the place and sometimes it
> does not have any number's at all.
>
> I plan to use this for work for the (DRN) I have run out of things to
> put as my password and I am not aloud to have the same password twice

I use pwgen to generate my passwords and a password vault to keep them
as a backup. Most of my important passwords are used well enough that
by now I remember them (and they are strong enough that I don't have
to change them very often).

If you insist on implementing it yourself as a scripting exercise then:
1. Add an uppercase-only string and a digits-only string on top of the
LORD one you already have
2. Split the loop to three - one which picks a first letter from the
uppercase-only string, one which picks 5 characters from LORD and one
which picks 2 characters from the digits-only string.

The way you have it now there is no way to guarantee that the first
character will be an upper-case letter or that the last two will be
digits.

--Amos
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] A little script help

2010-03-16 Thread Josh Smith


Hey everybody.


I am using this script at the moment. It a little password generator
script I was wondering if anyone could help me out.

I would like the First letter to be a Capital and the last two to be any
digits?  

The one that I have puts capitals all over the place and sometimes it
does not have any number's at all.

I plan to use this for work for the (DRN) I have run out of things to
put as my password and I am not aloud to have the same password twice


Thanks in advance Josh. 


passwoard_gen
Description: application/shellscript
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html