LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 03-19-2015, 08:39 PM   #1
JohnDrake.Inc
LQ Newbie
 
Registered: Mar 2015
Posts: 2

Rep: Reputation: Disabled
gedit won't save; advanced level?


Hello - I admit to being new to Linux. I'm not sure if this problem should be re-routed to a more advanced level, though.

I downloaded Oracle Linux ver. 7 on my server with Server settings (and a Gnome GUI). After running through the terminal basics, I tried opening gedit to test out its capabilities. It wouldn't let me save to folder; it just grayed out and I had to quit the application.

I modified gedit to -rwxrwxrwx (chmod) and took ownership of the file (chown) under my user profile and group. When that didn't work, I re-logged in as root and modified gedit back to root ownership and group, and it still won't save changes to any file location.

One more thing: gksudo didn't work, either...

Any suggestions?

Last edited by JohnDrake.Inc; 03-19-2015 at 08:56 PM.
 
Old 03-19-2015, 09:58 PM   #2
JohnDrake.Inc
LQ Newbie
 
Registered: Mar 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
Ok, I sorted out the issue, kind of.
I have to create a new .txt file in the directory first using the command line and then open with gedit, as in
# gedit newfile1.txt
in order to modify and save. I can't simply open gedit and create a new document. This seems rather glitchy compared to more streamlined text editors available in Windows.
Is this how it should normally work, or does gedit need some debugging in Oracle Linux 7?

Thanks!
 
Old 03-20-2015, 02:33 PM   #3
JeremyBoden
Member
 
Registered: Nov 2011
Posts: 939

Rep: Reputation: 174Reputation: 174
It's not necessary.
Code:
gedit some-file
will create some-file in your home directory.
You can edit the contents & then press save.

This will work with any directory where you have write access.
 
Old 03-20-2015, 09:21 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,383

Rep: Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199
Should not have needed all that. Some files may have to have a higher level user run so gksudo is the common way to run a graphical app in gnome for a sudoer.
 
Old 03-20-2015, 09:40 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mint, OpenBSD
Posts: 11,346
Blog Entries: 12

Rep: Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731
Quote:
I have to create a new .txt file in the directory first using the command line and then open with gedit, as in
# gedit newfile1.txt
in order to modify and save
I can certainly attest that what you are describing is atypical behavior. Normally, you can open an editor, create the text file, then use the "Save" dialog to save the file to any location for which your user has "write" permissions.

This does sound like some sort of permissions issue. Your question isn't clear about to what directory you wished to save the file, so I'm not going to theorize in the dark, but here's a pretty good article on Linux permissions.

http://www.linux.com/learn/tutorials...le-permissions
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] gedit advanced find & replace timl Linux - Software 6 01-15-2013 08:53 PM
LXer: gEdit, an easy to use text editor with many advanced features LXer Syndicated Linux News 0 11-06-2011 10:40 PM
gedit save dialog defaults to 'Recently Used' radiodee1 Debian 5 10-27-2011 10:06 AM
LXer: Gedit won't save to SSHFS mount, cured LXer Syndicated Linux News 0 05-20-2009 01:12 AM
gedit wont save files!! pman Fedora 3 02-22-2005 03:09 AM


All times are GMT -5. The time now is 08:45 AM.

Main Menu
Advertisement
My LQ
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
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration