Re: Extracting Files and / or Copy files



On 30/05/07, Jan Sneep <jan@xxxxxxxxxxxxxxxx> wrote:
I can extract the file I need to my desktop, but it won't extract to the
/opt/open-xchange/lib folder because I don't have permission.

The program needs to be root
type in a terminal:
gksudo file-roller

then it should extract anywhere

I have looked in the help to find out how to change the permissions for that
folder, but going though the File Browser and selecting the Properties and
then the Permissions tab, it shows "root" as the owner, so I can't change
the permissions.

you can use 'sudo chmod' to change permissions the command line way
but it is a very bad idea to do this for places that should only be
accesable to root

Then I thought I would try and copy the file from my
desktop to the lib folder in the terminal window, but "copy" isn't a
recognised command.

No it isn't.
the command you want is probably 'cp'.

So how do I either ... login as "root"
DON'T

... or give Extract sudo permissions
as above

... or what is the equivalent to the old DOS copy command???
Didn't use old DOS but I assume cp (as above).

You could also use command line tar
sudo tar -xvzf /path/to/my/file.tar.gz -C /path/to/the/folder/to/extract/to/

x = extract
v = verbose (tells you the files it's extracting)
z = use gzip compression (or decompressoim)
f = File to extrtact should follow
C = use that directory for extracting into

Hope that helps

Andy

--
First they ignore you
then they laugh at you
then they fight you
then you win.
- Mohandas Gandhi

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: Missing pdh.dll XP Professional SP 2
    ... Also this command just extracts the SP2 files to a folder you specify. ... It doesn't reinstall the service pack. ... If you've got a copy of the full SP2 service pack, then you can extract the ...
    (microsoft.public.windowsxp.general)
  • Re: How to ... ?
    ... > I'm very comfortable with command lines so this was great. ... You may change the 'root' folder, it does not have to be the root of ... Then this cmd will search drive F: folder by folder and in each ... PARSE ARG nextdir ...
    (comp.os.os2.misc)
  • Re: Sysvol not replicating but no NTFRS errors
    ... NTFRSUTIL command returns the current root directory for the SYSVOL ... staging folder. ... Note The path that is reported by the LINKD command varies depending on ...
    (microsoft.public.windows.server.active_directory)
  • Re: Can I convert a MS downloaded SP2 exe to a CD?
    ... The files will be extracted to folder, to repair MDAC you should be able ... Should there be an extract command at the front even although ...
    (microsoft.public.windowsxp.basics)
  • Re: Distributed File System / File Replication Service
    ... When running the first command, the primary server reports: The system cannot find the file specified which I think is probably ok since I have already unshared that folder and everything. ... In the Distributed File System snap-in, right-click the root target you want to remove, and then click Remove Target. ...
    (microsoft.public.windows.server.active_directory)