Results 1 to 6 of 6

Thread: How would I do this?

  1. #1
    Join Date
    Jan 2012
    Beans
    13

    How would I do this?

    so I have a script or something that makes files in /opt/ however I have insufficient permissions. How could I fake it to think /opt/ is in my home like /home/user/opt/ ?

  2. #2
    Join Date
    Jan 2013
    Beans
    525

    Re: How would I do this?

    Please tell us your Ubuntu version and what you are trying to do exactly. That can help alot, thanks!

  3. #3
    Join Date
    Jul 2012
    Beans
    317
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How would I do this?

    Hello,

    If all you are trying to do is gain permissions in Ubuntu 12.04 (you need to give us more details), open the Terminal and type;

    gksudo nautilus (which I suggest using)

    Gaining root permission would allow you to create, delete, move, and copy files.

  4. #4
    Join Date
    Oct 2006
    Beans
    Hidden!

    Re: How would I do this?

    One way to allow write access to /opt is to run the script with sudo. But before doing so, let us know what the script is supposed to do. If it's for an app, chances are there's another way to install it.

    If you want, you can post the script here.

  5. #5
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    4,220
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How would I do this?

    Quote Originally Posted by dmallion View Post
    so I have a script or something that makes files in /opt/ however I have insufficient permissions. How could I fake it to think /opt/ is in my home like /home/user/opt/ ?
    Rewrite the script.
    A script is only going to do what is was written to do.
    If it's written to install files into /opt then that's what it'll do.
    The only way to 'fake it' is going to be to re-write it.
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  6. #6
    Join Date
    Jan 2012
    Beans
    13

    Re: How would I do this?

    Sorry I was away for a bit. Thanks for all the help guys however I figured out that I could use chroot. Problem solved

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
  •