Results 1 to 7 of 7

Thread: Transer from virtual box to shared folder (permissions?)

  1. #1
    Join Date
    Mar 2014
    Beans
    37

    Transer from virtual box to shared folder (permissions?)

    I feel kinda guilty to keep posting on ubuntu forums for help without anything to offer.. but google and documentation just doesnt do it all for me. My problem now is that I am downloading a game on windows 7 virtual box then moving it to a shared folder on ubuntu. Now I dont have permissions to those files. My question is how do I set file permissions for myself?

  2. #2
    Join Date
    Sep 2005
    Beans
    1,607
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Transer from virtual box to shared folder (permissions?)

    First, don't worry about helping others, if you need help, ask, we will try to help you. If you learn enough to where you want to try and help or offer your suggestions go for it. What your asking may be helping someone who has the same question. Even if its a duplicate post, oh well, it happens (probably get pointed to dupe thread then close original thread).

    Now to fix your issue, you'll need to open a terminal, if you don't know how to navigate terminal, here's a few things to help get you started:

    cd = change directory so let's say your file is in Downloads starting from your home folder
    cd Downloads

    Now it is case sensitive. If you want to return to your home type: cd
    with nothing after it. If you don't know the file name, but have an idea, you can type in: ls
    ls = list
    It's like the dir command in dos.

    If you're in the current folder where your file is you can put your command and
    command ./filename.ext

    To change permissions try this:

    pkexec chown your_user_name:your_user_name /path/to/file/you/need/permissions/on

    That's the simplest way. So for example I'd do this:

    Code:
    pkexec chown shawn:shawn /home/shawn/Downloads/Oct17_Pictures.zip
    Where's [slooksterpsv] been? - I had Catastrophic partition alignment failure. I lost 90%+ of my data, and just now got it back fixed and working.

  3. #3
    Join Date
    Mar 2014
    Beans
    37

    Re: Transer from virtual box to shared folder (permissions?)

    hey thanks a lot. Big help man.

  4. #4
    Join Date
    Mar 2014
    Beans
    37

    Re: Transer from virtual box to shared folder (permissions?)

    Actually I need to change file permissions to several files with in a few folders. I tried to figure it out myself as shown here https://help.ubuntu.com/community/FilePermissions

    user@host:/home/user$ sudo chmod 777 -R /path/to/someDirectory

    Whats with the /home/user$ ? Whats the -R? I always get a no directory found

  5. #5
    Join Date
    Sep 2005
    Beans
    1,607
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Transer from virtual box to shared folder (permissions?)

    The /home/user (which stands for ~ (tilde)) just means you're in your home folder for your user.
    The -R option on chown means recursive so it goes through each folder and changes those permissions for all files and folders within that folder and subfolders and subfolders and subfolders and etc... haha
    Where's [slooksterpsv] been? - I had Catastrophic partition alignment failure. I lost 90%+ of my data, and just now got it back fixed and working.

  6. #6
    Join Date
    Sep 2007
    Location
    Oklahoma, USA
    Beans
    2,271
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Transer from virtual box to shared folder (permissions?)

    Quote Originally Posted by Chuck_Finley View Post
    Actually I need to change file permissions to several files with in a few folders. I tried to figure it out myself as shown here https://help.ubuntu.com/community/FilePermissions

    user@host:/home/user$ sudo chmod 777 -R /path/to/someDirectory

    Whats with the /home/user$ ? Whats the -R? I always get a no directory found
    I've emphasized the entire command-line prompt for you. Where other operating systems use ">" or soimetimes ":" to end the prompt, most Linux districutions use "$" when you operate as a normal user, and "#" when operating as the super user.

    It's possible to change this to anything you want, by editing a specific text file, but until you do, consider everything to the left of "$" on the command line as being your prompt.

    The "-R" makes the command operate recursively, meaning that the change will be applied to the specified directory plus every file in that directory, plus every file in every subdirectory there, all the way down. It's a very dangerous option, and when such a command is given for the wrong directory, the system can become unusable -- with reinstallation from scratch being the only practical way to recover! It's like walking a tightrope without any safety net, so be very careful in its use.
    --
    Jim Kyle in Oklahoma, USA
    Linux Counter #259718
    Howto mark thread: https://wiki.ubuntu.com/UnansweredPo.../SolvedThreads

  7. #7
    Join Date
    Mar 2014
    Beans
    37

    Re: Transer from virtual box to shared folder (permissions?)

    Thank you.

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
  •