Directory 'jetpack': Permission Denied.

15 risposte [Ultimo contenuto]
ssdclickofdeath
Offline
Iscritto: 05/18/2013

There is a directory called 'jetpack' (~/.mozilla/abrowser/vi6er5do.default/jetpack) in my home directory that is not owned by my user, so it makes it hard to do backups, as some backup programs that I use (7-Zip running in WINE) stop the backup instead of ignoring it. Would it mess something up if I changed the permissions?

The permissions are 'd-wxrwx--t 3'.

GustavoCM

I am a member!

Offline
Iscritto: 11/20/2012

Here, they are not those, but "drwxr-sr-x".

If you are not the owner, it would not be productive to "chmod u+r"; you could do a "chmod o+r".

Why are you using 7-zip in Wine? It's much smarter to use a native GUI archive manager (in GNOME, the default is file-roller) or even the CLI (packages: p7zip{,-full}).

P.S.: does 7-zip keeps metadata like "last alteration" and access permissions? IIRC, it doesn't, so it is not very recommendable for backing up stuff.

ssdclickofdeath
Offline
Iscritto: 05/18/2013

It would be better to use a native program, but File Roller doesn't seem to have as many compression options available for the 7-zip format, and I am not used to the command line p7zip, but I will try using it.

I typed 'sudo chmod o+r jetpack' in the appropriate directory, but it didn't do anything; the permissions stayed the same. Could that be because 'jetpack' is a directory?

GustavoCM

I am a member!

Offline
Iscritto: 11/20/2012

Perhaps "ark" (from KDE) would fit your needs. Though I haven't found any difference between the sizes of the resulting .7z files from file-roller and 7z with ultra settings.

You need to pass the "--recursive" (or "-R") parameter to chmod in order to change file permissions under the directory passed as an argument.

Also, check if the problem is not with REMOVING the files under that directory; that last piece of the permissions 't', is the "sticky bit:" non-owners can't remove the files under that directory, even being able to read it.

Magic Banana

I am a member!

I am a translator!

Offline
Iscritto: 07/24/2010

If you want a good compression rate, XZ is the best solution (but you might prefer the inferior but more widespread BZ2 format if you are to send the file to non-tech people). If you want to rapidly compress very large files, ZIP still remains the answer. All those formats are natively handled through FileRoller.

If you want to uncompress files coming from other people, FileRoller probably can do it since it supports more than 20 formats. The only popular format it does not natively support (at least in the version shipped with Trisquel 6.0) is RARv3. However, you will find, in Trisquel's repository, a package named 'unar' that handles even more formats, including RARv3, from the command line.

ssdclickofdeath
Offline
Iscritto: 05/18/2013

What do you think would be the best archive format for backing up my system to a local hard drive?

Magic Banana

I am a member!

I am a translator!

Offline
Iscritto: 07/24/2010

Your system? You only need to backup its configuration, i.e., /etc, which is small (hence XZ), and the list of installed software, which is very small as well (hence XZ) returned by the following command:
$ dpkg --get-selections

From the list of installed software (let say you redirected the previous command in a file named "packages"), you can easily (re)install them:
$ dpkg --set-selections < packages
$ dselect

ssdclickofdeath
Offline
Iscritto: 05/18/2013

When I said 'system', I meant my home directory, but I can back up what you showed me, too.

Magic Banana

I am a member!

I am a translator!

Offline
Iscritto: 07/24/2010

Your home directory is huge. XZ would last days to compress a tar of it. Go GZ, i.e., GNU Zip.

ssdclickofdeath
Offline
Iscritto: 05/18/2013

The command 'sudo chmod o+r -R jetpack' changed it to "d-wxrwxr-t 3" (note the added 'r' near the end), but I still don't have access permissions.

lembas
Offline
Iscritto: 05/13/2010

To access a directory, you need the execute permission.

so o+x

GustavoCM

I am a member!

Offline
Iscritto: 11/20/2012

Damn, I forgot it.

ssdclickofdeath
Offline
Iscritto: 05/18/2013

What would the command be, lembas?

lembas
Offline
Iscritto: 05/13/2010

sudo chmod o+x /path/to/

sudo because you don't own the file
chmod to change permissions
o to change permissions for non-owner, non-group
+x to change execute bit

ssdclickofdeath
Offline
Iscritto: 05/18/2013

I tried that and it still didn't work.

aloniv

I am a translator!

Offline
Iscritto: 01/11/2011

I just tested a RAR file and File Roller handled it fine in Trisquel (I also installed unar and unrar-free). The same file didn't work in Squeeze (although I could view the contents of the archive) so I'm guessing it is version 3.