On December 2, 2005 17:37, Ron Hunter-Duvar wrote: > On December 2, 2005 16:53, Terry Liittschwager wrote: > > Let's say I'm using Kwrite to look at a configuration file from a > > non-root login, and I decide I want to change it. When I go to save the > > change, I'm informed that I don't have permission. At that point, what > > is the most efficient means to become root for the one act of saving the > > file? > > > > Thanks in advance, > > > > Terry Liittschwager > > Probably the best thing to do is use "Save As" to save it in your home > directory or somewhere else where you have write access. Then you can > become root and move/copy the file from that directory to where it needs to > be. For good measure, you might want to first move your current config file > to a backup file.
Oh, and check the permissions on the config file after the move/copy. If you kept the old one as a backup, compare the two. If you've copied, it should at least be owned by root, but you still may need a chmod. If you moved it, you'll need a chown root.root too. -- Ron ronhd at users dot sourceforge dot net Opinions expressed here are all mine.
____________________________________________________ Want to buy your Pack or Services from Mandriva? Go to http://store.mandriva.com Join the Club : http://www.mandrivaclub.com ____________________________________________________
