Re: GMC and Root Access [suggestion]



"Jesse D. Sightler" <jsight@pair.com> writes:

> James Green wrote:
> > 
> > In the last two days I have had the need to use GMC. Firstly, a bug
> > report:
> > 
> > I have a series of files stored on a DOS partition written to by NT4. As
> > NT4 uses long filenames, all is well with GMC and the cmd line 'rm'
> > commands until either comes across a file beginning '- ' (dash space blah)
> > at which point GMC reports a permissions error occured (run as root) while
> > 'rm' says no arguement allowed or something. NOTE that MC correctly
> > manages to delete the file, GMC and 'rm' don't.
> 
> Hehe, yet another reason to never run GMC as root.  I'd hate to see what
> would happen if trying to delete a file starting with "-Rf /".  :)

And where exactly is the problem ?

	rm -f -- '-Rf /'

is your friend.

> 
> > OK, now the suggestion. In the above instance, and in the current instance
> > (I need to install an RPM from the RH disk) gmc needs to be run as root.
> > Rather than me having to open an rxvt, su root <password> and run gmc
> > (which gives the following error btw:
> 
> Yeah, there ought to be a way to temporarily switch to root mode.  I
> would certainly consider it useful.
> 
> -- 
> ---------------
> Jesse D. Sightler
> http://www3.pair.com/jsight/
> 
> "Do not use a hatchet to remove a fly from your friend's forehead." 
>       - Chinese Proverb
> 
> 
> -- 
>         FAQ: Frequently-Asked Questions at http://www.gnome.org/gnomefaq
>          To unsubscribe: mail gnome-list-request@gnome.org with 
>                        "unsubscribe" as the Subject.
> 
> 

-- 
Martin Baulig - martin@home-of-linux.org - http://www.home-of-linux.org



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]