Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: You do not have the permissions necessary to save the file.

  1. #1
    Join Date
    Jan 2009
    Location
    Oakland, CA
    Beans
    0

    You do not have the permissions necessary to save the file.

    I am soooooooooo tired of making changes to some file in gedit, pressing the save button, and having the thing refuse to save it because I don't have permission. How difficult is to ask for my password instead of just downright denying me. It's like, "Sorry you made those changes without doing a full investigation of who can do what, when, where, why and how, before opening that file you need to modify. Now you get to jump through five hoops to get back to even."

  2. #2
    Join Date
    Nov 2009
    Location
    Chennai, India
    Beans
    503
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: You do not have the permissions necessary to save the file.

    try "man chmod" in the terminal, see what permissions u want to give ur file and then do so by the terminal

    chmod (whatever permission ) location of the file


    but highly advisable to not edit the system files if you dont know what u are doing 100%

    hope that was useful, cheers!
    I like to keep it respectful with OpenRespect
    I write at The Void Ghost and 2buntu

  3. #3
    Join Date
    Jul 2008
    Location
    /home/konqueror7
    Beans
    Hidden!

    Re: You do not have the permissions necessary to save the file.

    what file is that your editing?

    use 'sudo' to open the editor,
    Code:
    sudo gedit myfile.txt
    There is nothing either good or bad, but thinking makes it so. - W. Shakespeare

    Linux User #484611 | Ubuntu User #26153 | Blog

  4. #4
    Join Date
    Jan 2009
    Location
    Oakland, CA
    Beans
    0

    Re: You do not have the permissions necessary to save the file.

    Quote Originally Posted by nitstorm View Post
    try "man chmod" in the terminal, see what permissions u want to give ur file and then do so by the terminal
    Yeah, I'm thinking about maybe, "chmod -R 777 /"

  5. #5
    Join Date
    Oct 2006
    Beans
    4,627
    Distro
    Kubuntu 17.04 Zesty Zapus

    Re: You do not have the permissions necessary to save the file.

    Quote Originally Posted by konqueror7 View Post
    what file is that your editing?

    use 'sudo' to open the editor,
    Code:
    sudo gedit myfile.txt
    It's better to use "gksudo" for graphical applications http://www.psychocats.net/ubuntu/graphicalsudo

    I would advise against changing permissions of system files. If you need to edit a system file use gksudo for a GUI editor or sudo if you're using a command line editor. Changing the permissions can break things and leave your system vulnerable.
    Last edited by FuturePilot; January 15th, 2010 at 08:25 AM.
    Blog | Ubuntu User #15350 | Zsh FTW | Ubuntu Security | Nothing to hide?
    AMD Phenom II X6 1075T @ 3GHz, Nvidia GTX 650, 8GB DDR3 RAM, 1 X 1TB, 2 X 3TB HDD
    Please don't request support via PM


  6. #6
    Join Date
    Jan 2009
    Location
    Oakland, CA
    Beans
    0

    Re: You do not have the permissions necessary to save the file.

    Quote Originally Posted by FuturePilot View Post
    If you need to edit a system file use gksudo for a GUI editor or sudo if you're using a command line editor.
    sudo and gksudo have a major flaw: You need to know, ahead of time, that you're going to need sudo or gksudo before you do whatever it is that you're going to do.

  7. #7
    Join Date
    Oct 2006
    Beans
    4,627
    Distro
    Kubuntu 17.04 Zesty Zapus

    Re: You do not have the permissions necessary to save the file.

    Quote Originally Posted by expozen View Post
    sudo and gksudo have a major flaw: You need to know, ahead of time, that you're going to need sudo or gksudo before you do whatever it is that you're going to do.
    Just about any time you edit a file that is not in /home/$USER you're going to need to use gksudo/sudo.
    Blog | Ubuntu User #15350 | Zsh FTW | Ubuntu Security | Nothing to hide?
    AMD Phenom II X6 1075T @ 3GHz, Nvidia GTX 650, 8GB DDR3 RAM, 1 X 1TB, 2 X 3TB HDD
    Please don't request support via PM


  8. #8
    Join Date
    Jan 2009
    Location
    Oakland, CA
    Beans
    0

    Re: You do not have the permissions necessary to save the file.

    Quote Originally Posted by FuturePilot View Post
    Just about any time you edit a file that is not in /home/$USER you're going to need to use gksudo/sudo.
    I shouldn't have to worry about things like that. If gedit knows I don't have the permissions to save the file, why can't gedit ask me for my password, then supply the given password to sudo to save the file itself. Why do I have to hold the things hand to make sure it doesn't trip over it's own feet?

  9. #9
    Join Date
    Oct 2006
    Beans
    4,627
    Distro
    Kubuntu 17.04 Zesty Zapus

    Re: You do not have the permissions necessary to save the file.

    Quote Originally Posted by expozen View Post
    I shouldn't have to worry about things like that. If gedit knows I don't have the permissions to save the file, why can't gedit ask me for my password, then supply the given password to sudo to save the file itself. Why do I have to hold the things hand to make sure it doesn't trip over it's own feet?
    Ah, now I see. That would be a nice feature. I would imagine it could be implemented with PolicyKit. No one has do so though
    Blog | Ubuntu User #15350 | Zsh FTW | Ubuntu Security | Nothing to hide?
    AMD Phenom II X6 1075T @ 3GHz, Nvidia GTX 650, 8GB DDR3 RAM, 1 X 1TB, 2 X 3TB HDD
    Please don't request support via PM


  10. #10
    Join Date
    Jun 2008
    Location
    Colombia
    Beans
    443

    Re: You do not have the permissions necessary to save the file.

    I'm guessing this hasn't been done because allowing an program to escalate privileges would introduce a lot of vulnerabilities. However gedit allows for plugins, so maybe there's one for that task or if not you could write your own.

Page 1 of 3 123 LastLast

Tags for this Thread

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
  •