Fedora Linux Support Community & Resources Center
  #1  
Old 2nd June 2006, 11:26 AM
sp00ky Offline
Registered User
 
Join Date: Aug 2004
Posts: 23
[HELP] gedit changes owner after editing

Hi everybody! If I edit a file with gedit on our server, gedit changes the owner and group to me. How can I setup gedit that it will keep the owner and group, because other users also have to change this files. The only way I know to prevent this is to ask root after editing to change back the original owner and group.

Nedit keeps the owner and group, but I will use gedit.

Thanks in advance...
Reply With Quote
  #2  
Old 2nd June 2006, 12:42 PM
bob Online
Administrator (yeah, back again)
 
Join Date: Jul 2004
Location: Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
Age: 69
Posts: 22,111
Wow, never heard of that one before! Well, instead of signing in as 'su', what happens when you sign in as 'su -' (with the space and minus sign). That puts you into full root at root's /home rather than giving the user root permissions. It still doesn't explain the unusual action of your particular gedit and I'd certainly consider reinstalling it or having someone poke into the coding to see what's causing that. Perhaps even entering a bugzilla as described here: http://www.gnome.org/projects/gedit/developers.html and/or using the redhat/fedora bugzilla.
__________________
Linux & Beer - That TOTALLY Computes!
Registered Linux User #362651


Don't use any of my solutions on working computers or near small children.
Reply With Quote
  #3  
Old 2nd June 2006, 03:52 PM
sp00ky Offline
Registered User
 
Join Date: Aug 2004
Posts: 23
@bob: "su -" puts me into /root/

Situation: Files on the webserver with owner "apache", group "project1" and rights "770". If I (username "xyz", standard group "users" and member of "project1", "project2", "project3") edit these files with gedit and then save them, I become the owner of these files "xyz.users". Nedit will keep the owner and group! Anyone an idea instead of bugzilla?
Reply With Quote
  #4  
Old 2nd June 2006, 03:57 PM
SHtRO Offline
Registered User
 
Join Date: Jul 2005
Posts: 178
It sounds like gedit is replacing files. I'd just disable gedit and use a different error until this bug is fixed. "vim" certainly does not have this problem, and it should not happen. If you have write permission for a file and edit it, it should not change uid/gid unless it is actually being replaced.

Any other solutions I can think of (besides patching gedit) seem to cause other issues.
__________________
Imagination is more important than knowledge.
--Albert Einstein
Reply With Quote
Reply

Tags
editing, gedit, owner

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot change owner fedora1968 Using Fedora 8 4th February 2007 07:58 AM
Gedit gives error when no write access - ImportError: No module named gedit wpyung Using Fedora 0 15th June 2006 09:54 AM
Who is the right owner for hardware? ezzetabi Using Fedora 1 18th April 2006 06:28 PM


Current GMT-time: 11:48 (Friday, 22-08-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat