Home | Forums | Reviews | Tutorials | Articles | Register | Search | | | LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie | [SOLVED] E212 cant open file for writing. I have root access | | | Linux - Newbie This Linux forum is for members that are new to Linux. Just starting out and have a question? If it is not in the man pages or the how-to's this is the place! Notices | Welcome to LinuxQuestions.org, a friendly and active Linux Community. You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today! Note that registered members see fewer ads, and ContentLink is completely disabled once you log in. Are you new to LinuxQuestions.org? Visit the following links: Site Howto | Site FAQ | Sitemap | Register Now If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here. Having a problem logging in? Please visit this page to clear all LQ-related cookies. Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use. Exclusive for LQ members, get up to 45% off per month. Click here for more info. | 10-09-2012, 03:19 AM | #1 | Member Registered: Oct 2012 Posts: 96 Rep: | E212 cant open file for writing. I have root access Hi guys, i was editing network interfaces i have the root access Code: [root@xxx]# uid=0(root) gid=0(root) groups=0(root) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 Code: /etc/network/interfaces" E212: Can't open file for writing Press ENTER or type command to continue i cant save changes after i modified the file. any help? thanks! update, i was able to modify vi /etc/sysconfig/network-scripts/ifcfg-eth0 Last edited by slowerogue; 10-09-2012 at 03:32 AM. Reason: update | | | 10-09-2012, 09:29 AM | #2 | Senior Member Registered: Jun 2002 Location: Eastern PA, USA Distribution: K/Ubuntu 18.04-14.04, Scientific Linux 6.3-6.4, Android-x86, Pretty much all distros at one point... Posts: 1,802 Rep: | Note: Just because you're root, doesn't mean you can do things that can't be done. For instance, if you have a file's permissions set for read only, you can't normally edit it without changing permissions to read/write. Also, lock-files may block access to a service, etc. Think of root as "super-user," with pervasive authority to change things in the system,... not a "God mode," omnipotent and able to change the rules of the system. | | | 10-09-2012, 09:48 PM | #3 | Member Registered: Oct 2012 Posts: 96 Original Poster Rep: | i see tqtq so how do i change it to read/write permission? thx | | | 10-09-2012, 10:25 PM | #4 | Member Registered: Jul 2012 Location: M�nchen Distribution: Debian, CentOS/RHEL Posts: 587 Rep: | would display the permission. from the above scenario, we could expect something like -r--r--r-- (no w). You could add permissions by issuing the following command Code: sudo chmod u+w filename | | | 10-10-2012, 02:30 AM | #5 | Member Registered: Oct 2012 Posts: 96 Original Poster Rep: | thank you veli much! bb | | | Posting Rules | You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | Similar Threads | Thread | Thread Starter | Forum | Replies | Last Post | Trying to edit a .spec file in vim (E212: Can't open files for writing) | subharaj | Linux - Software | 1 | 02-14-2012 04:14 AM | perl - writing to file - keep open or only during write? | eherron.lanline | Programming | 2 | 05-27-2011 08:28 PM | Deny root access to a given file | phru | Linux - Security | 6 | 12-08-2010 12:06 PM | software to access file system.. how to allow access for non root users? | stdcinout | Linux - Newbie | 8 | 03-09-2010 01:55 PM | how to open a port for remote access as root | craftereric | Linux - Newbie | 2 | 08-11-2008 12:38 PM | LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie All times are GMT -5. The time now is 06:00 PM. | Main Menu | - Linux Forum
- Search
- LQ Tags
- Linux Tutorials
- LQ Job Marketplace
- LQ Deals
- Linux Wiki
- Distro Reviews
- Book Reviews
- Download Linux
- Social Groups
- LQ Blogs
| Write for LQ | LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know. | Main Menu | - LQ Calendar
- LQ Rules
- LQ Sitemap
- Site FAQ
- View New Posts
- View Latest Posts
- Zero Reply Threads
- LQ Wiki Most Wanted
- Jeremy's Blog
- Report LQ Bug
| Syndicate | Latest Threads LQ News | |
E212: Can't Open File For Writing
Source: https://www.linuxquestions.org/questions/linux-newbie-8/e212-cant-open-file-for-writing-i-have-root-access-4175431271/
Posted by: hansoneachich.blogspot.com
0 Response to "E212: Can't Open File For Writing"
Post a Comment