Results 1 to 10 of 10

Thread: copying a file ???

  1. #1
    Join Date
    Nov 2008
    Beans
    166

    copying a file ???

    I have a network drive I can get to with the file browser. I have some files on my home directory that I want to move to the network drive. I cant get to the network directory from a terminal. When I drag and drop it says I dont have permission. If I cant get there from a terminal how do I get those files copyed across???

    Thanks

  2. #2
    Join Date
    Jun 2012
    Beans
    32

    Re: copying a file ???

    You can type this into a terminal, and it will open a folder with root privileges. So you'll be able to copy/paste your files as if it was a normal folder browser. Be careful with it though!

    Code:
    sudo nautilus

  3. #3
    Join Date
    Nov 2008
    Beans
    166

    Re: copying a file ???

    Thanks Harry. Thats exactly what I needed.

  4. #4
    Join Date
    Apr 2008
    Location
    LOCATION=/dev/random
    Beans
    5,767
    Distro
    Ubuntu Development Release

    Re: copying a file ???

    Quote Originally Posted by HarryTorry View Post
    You can type this into a terminal, and it will open a folder with root privileges. So you'll be able to copy/paste your files as if it was a normal folder browser. Be careful with it though!

    Code:
    sudo nautilus
    Don't do this. You should always use gksudo for graphical qpplications:
    Code:
    gksudo nautilus
    Cheesemill

  5. #5
    Join Date
    Apr 2008
    Location
    Arizona
    Beans
    397
    Distro
    Ubuntu

    Re: copying a file ???

    Quote Originally Posted by Cheesemill View Post
    Don't do this. You should always use gksudo for graphical qpplications:
    Code:
    gksudo nautilus
    I find sudo works better than gksudo

    Example
    Code:
    sudo gedit
    vs
    Code:
    gksudo gedit
    the only difference is
    Code:
    gksudo gedit
    will open the file you're trying to open so let's say
    Code:
    gksudo gedit /etc/fstab
    BUT it will open gedit with two tabs. One for the fstab file that you requested and one empty one. I find this very annoying because when I ctrl+s to save my changes and than alt+4 the close gedit that annoying pop up pops up asking if I want to discard/save changes to gedit. It's referring to the blank open tab

    Code:
    sudo gedit /etc/fstab
    won't do this

  6. #6
    Join Date
    Jun 2007
    Location
    Porirua, New Zealand
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: copying a file ???

    Some people swear by sudo, others by gksudo, it largely depends on what you're doing. Some useful information can be found here: https://help.ubuntu.com/community/RootSudo
    Forum DOs and DON'Ts
    Never assume that information you find using a search engine is up-to-date.
    Please use CODE tags.
    A low-volume blog

  7. #7
    Join Date
    Apr 2008
    Location
    LOCATION=/dev/random
    Beans
    5,767
    Distro
    Ubuntu Development Release

    Re: copying a file ???

    But using sudo with graphical applications has other problems associated with it. It can cause files in a users home folder to become owned by root with unexpected side effects.

    http://psychocats.net/ubuntu/graphicalsudo
    Cheesemill

  8. #8
    Join Date
    Jun 2012
    Beans
    12

    Re: copying a file ???

    Quote Originally Posted by squrl View Post
    I have a network drive I can get to with the file browser. I have some files on my home directory that I want to move to the network drive. I cant get to the network directory from a terminal. When I drag and drop it says I dont have permission. If I cant get there from a terminal how do I get those files copyed across???

    Thanks
    Have you tried mounting your network drive with gigolo? Its in Miscellaneous - Graphical (universe)

  9. #9
    Join Date
    May 2007
    Location
    Denmark
    Beans
    663
    Distro
    Ubuntu Development Release

    Re: copying a file ???

    Well, I might be a bit different 'cause I always use:

    Code:
    gksu nautikus
    When ever I need to work graphically as root. Haven't had any problems with this way so far (since Ubuntu 7.04).
    Ubuntu testing release

    Ubuntu User # 15479
    Linux User # 448500

  10. #10
    Join Date
    Apr 2008
    Location
    LOCATION=/dev/random
    Beans
    5,767
    Distro
    Ubuntu Development Release

    Re: copying a file ???

    gksu and gksudo are exactly the same thing:
    Code:
    rob@quantal:~$ ls -l /usr/bin/gksudo
    lrwxrwxrwx 1 root root 4 May 18 21:23 /usr/bin/gksudo -> gksu
    Cheesemill

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •