I am the only user on my laptop. I want to do some changes on readonly .conf file for netbeans and after hit ESC and try to save I get this error E45 'Readonly' option is set. Even though I opened the file using sudo and provided my password. What am I missing?
120690
I find that with vim, if I try and edit a file which as a normal user I do not have write access with, even if I use sudo, I am unable to write to it, although if I use nano to edit the same file it works.  So for instance if I do:  sudo vim /var/path/to/file.conf   I will get this in the file and not be able to edit that file:  "/var/path/to/file.conf" [readonly]   But if I instead do:  sudo nano /var/path/to/file.conf   It will be able to write to the file, why is this, why does sudo not give vim write access like it does with nano? Is this some sort of bug? Or is this just something which is meant to be? Because it is very annoying.    OS Information:  Description:    Ubuntu 15.04 Release:    15.04   Package Information:  vim:   Installed: 2:7.4.488-3ubuntu2   Candidate: 2:7.4.488-3ubuntu2   Version table:  *** 2:7.4.488-3ubuntu2 0         500 http://gb.archive.ubuntu.com/ubuntu/ vivid/main amd64 Packages         100 /var/lib/dpkg/status
111311
I disabled all services in services using msconfig and restarted.  Now - my login details no longer work. I have no network access and the forgot my password option doesn't do anything.  I have restarted using shift+restart to try get into safe mode but this just brings me to the same logon page.  Does anybody know what caused this or how I can resolve the issue?
2593
For the apple.stackexchange question  a 2nd answer was given, which relates to the question, but IMHO does not answer a majority portion of the question. Here some details:   The question is about, how to set the PATH variable in a unified manner. The  details how to change the file /etc/launch.conf. It is to note, that changing this file is needed for the overall answer. The author of the answer does make the valid point that, when he searched for, how to change /etc/launch.conf, the question came up. The  does not detail the change of /etc/launch.conf enough.   So, the general problem is: What to do when an additional answer explains only a small (but unique portion) of the question, while an earlier answer explains more (but not what the additional question explains).  Finally, I think I should note that I am the initial asker and poster of the 1st answer.
67258
I have a text file that I can change using other applications (for example openoffice).  But when I try to change and save it using gedit, I am getting error from gedit:  Could not save the file /media/sf_Ubuntu/BuildNotes.txt. Unexpected error: Error renaming temporary file: Text file busy   the permission of BuildNotes.txt is as follow:  -rwxrwx--- 1 root vboxsf  839 2012-10-26 12:08 BuildNotes.txt   and user id is:  m@m-Linux:/media/sf_Ubuntu$ id uid=1000(m) gid=1000(m) groups=4(adm),20(dialout),24(cdrom),46(plugdev),105(lpadmin),119(admin),122(sambashare),1000(m),1001(vboxsf)   What is the problem and how I can fix it?
14208
I get the following error from VMware Player. A solution would be to run the commands mentioned in the thread below. Is there some other way to do this however? I do not wan't to mess around to much since I wan't to be able to restore all settings to their previous values later.
106173
I recently made changes to my fstab file and, upon reboot, noticed I had an error in it. I get the typical mount error on boot. I went to try and modify it by entering the read-only mode but then, since it's read only, I can't access it. Is there a way around this or some way to delete the file so I can use the backup (which I'm pretty sure works)?
59475
I am getting this error:  sudo: parse error in /etc/sudoers near line 23 sudo: no valid sudoers sources found, quitting sudo: unable to initialize policy plugin   I was trying to disable password authentication so I don't have to type password every time I want to install something, but I probably changed it in a not very good way. I am a newbie to Ubuntu, I got sick of Windows :)  So far I've found some people suggesting booting in single user mode, but I'm afraid of messing things up more.  How can I fix this error?
93297
I wanted to set environment variables JAVA_HOME and PATH. So I wanted to open ~/.pam_environment since it is the best place to set environment variables relevant to a particular user according to the link . The link states:  Session-wide environment variables Environment variable settings that should affect just a particular user (rather then the &gt;system as a whole) should be set into: ~/.pam_environment - This file is specifically meant for setting a user's  environment. It is not a script file, but rather consists of assignment expressions, one per line.  The problem I have is that I am not able to open the file ~/.pam_environment by using the command gedit ~/.pam_environment. I do not know whether this is the right way to open this file, please point me in the right direction.
104633
I'm trying to edit the hosts file (C:\Windows\System32\drivers\etc\hosts), because I want to setup a local redirect for my website (like I've always done in XP). However, I can't save the changes!  I have taken ownership, I have allowed my account full access and have tweaked every other setting I can think of. Every time I edit and save it, "Access is denied" pops up.  How do I get past this?
119469
Is it true that it is IMPOSSIBLE to create a readonly backup user in PostgreSQL?  I've been advised on an IRC channel that you simply can't have a backup only user with no ownership privileges.  I find it very strange so I want to make sure I'm not missing something.  Below is what I tried but it doesn't give me the results I'm looking for.  When I do pg_dump on a given table I'm getting Permission denied for relation...:  GRANT SELECT ON ALL TABLES IN SCHEMA public TO backup;  ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO backup;  GRANT SELECT, USAGE ON ALL SEQUENCES IN SCHEMA public TO backup; ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT, USAGE ON SEQUENCES TO backup;   Any help would be greatly appreciated!
7493
I don't care if I mess up the system (which is likely if I do things like this), or the potential security issues that this could imply. Note, that I don't just want to "", but run my GUI from bottom-up as root. I don't want to type my password for anything but just for login and have total control over it.  Of course, I want any application running as root, like Firefox, LibreOffice, etc. without having to mess up with the terminal. So, how do I do this?     This question tries to address users that do not like the current permission system with root being separated from normal users. I do not endorse such behaviors, but if a user wants to, for whatever reason, this question should fit their corncerns.   Not advisable for new users
31361
Is there a way to configure a password for a stored session in ?  I know there is the capability to specify an "auto-login username" (under Connection/Data), but is there a way to do the same with the password?
27667
This is how I do it at the moment. I try to open the file with the FileShare set to none. So I want exclusive accesss to the file. If I can't get that then its a good bet somebody else has the file locked.  There's got to be a better and faster way. Any ideas?              try             {                 using (FileStream fs = File.Open(GetLockFilename(), FileMode.Open, FileAccess.ReadWrite, FileShare.None))                 {                     fs.Close();                 }                 // The file is not locked             }             catch (Exception)             {                 // The file is locked             }
4151
It's tedious to type my password every time I start my Windows 10 VM, especially since you can't paste a password into the box. I want to set up automatic login.  Following the instructions  I tried to disable the "Users must enter a user name and password" option in netplwiz. But the option isn't there! It should be above the "users for this computer" list. Is there a setting I need to change to allow me to change the setting?
109055
This problem has been around for quite some time and I have never found a solution. I even had to format once to get rid of it. And I'm not the only one with this: ,  and here.  Basically, all of a sudden all folders in my Windows XP setup become (grayed) read only    For many programs this really isn't a big deal. But I found that Eclipse doesn't work anymore!     Tried re-installing applications, didn't solve the problem  doesn't solve the problem  doesn't solve the problem Changing Read-Only properties to sub-files/folders doesn't solve the problem Disabled my antivirus (Comodo Internet Security), didn't solve the problem   There have been  but none of them worked. This could end up as another Works for Me thing and never be solved.
72614
First and first, I had Netbeans installed on my laptop when it was on 12.04 but after I upgraded it to 13.04 and could not find it on my dash so thought it was removed on upgrade.  I tried to reinstall it using the .sh file from they're official website and then I found out that it was already installed so I uninstalled it from my laptop and tried to again to install it(so it would be a fresh install),but when the installer came out it told me that "All components are installed".  After that I tried cleaning my system with ubuntu tweak's janitor and tried again but yet the problem persisted, and after this I manual deleted any directories/files related to netbeans(searched the directories/files with nautilus) and yet the problem is still there.  When the installer start(without errors), it simply says:"All components are installed" and the "Next" button is deactivated.  I installed Netbeans 7.0.1 from software center but I would want to install the latest version.   Any clues/tips/help?
52338
I'm tuning the nofile value in /etc/security/limits.conf for my oracle user and I have a question about its behavior: does nofile limit the total number of files the user can have open for all of its processes or does it limit the total number of files the user can have open for each of its processes?  Specifically, for the following usage:  oracle                  hard    nofile                  65536