Saturday, 17 August 2013

Change all permissions for a file

Change all permissions for a file

I have a symlink with these permissions:
lrwxrwxrwx 1 myuser myuser 38 Aug 18 00:36 npm ->
../lib/node_modules/npm/bin/npm-cli.js*
The symlink is located in a .tar.gz archive. Now when I unpack the tar.gz
archive using maven the symlink is no longer valid. I am therefore trying
to reconstruct the symlink. First I create the symlink using ln but how do
I set the same permissions as the orginal symlink?

No comments:

Post a Comment