super user mode filemanager

Roberto H. Alsina ralsina at kde.org
Thu Mar 6 11:57:53 GMT 2003


On Thu, Mar 06 2003 at 12:41:19pm +0100, Simon Hausmann wrote:
> On Thu, Mar 06, 2003 at 10:10:31AM +0100, Alexander Kellett wrote:
> > hiya all,
> > 
> > just noticed in the kmenu that you can 
> > open a root started filemanager. not
> > only is this slow due to the need to 
> > start up a thousand and one things as 
> > root, but also, its imo a really ugly 
> > way of doing it.
> > 
> > so, 
> > how about a fish:/root at localhost instead?
> 
> I like the idea, although I see one disadvantage: It requires a
> running sshd...

#!/bin/sh

if ps aux | grep ssh | grep -v grep
then
	kfmclient fish:/root at localhost
else
	kdesu kfmclient /
fi

Ok, not exectly that, but you get the idea ;-)


 ("\''/").__..-''"`-. .         Roberto Alsina
 `9_ 9  )   `-. (    ).`-._.`)  ralsina at kde.org
 (_Y_.)' ._   ) `._`.  " -.-'   Former KDE Developer (MFCH)
  _..`-'_..-_/ /-'_.'           
(l)-'' ((i).' ((!.'             Buenos Aires - Argentina
"It was like being crushed by an airplane 
full of leeches" (H. S. Thompson)




More information about the kde-core-devel mailing list