Switching to root privileges using xffm

edscott wilson garcia edscott at imp.mx
Thu Mar 4 02:58:13 CET 2004


El mié, 03-03-2004 a las 02:32, John Shane escribió:
> Hi all, Is there a quick way to switch to root privileges from a normal
> user when using xffm?  I find myself needing this when I want to rename
> a file on an smbmount.  I scan documents on a network scanner that are
> dropped into a directory on a Samba server.  I can quickly launch xffm
> with a right click of the mouse and see the scanned files but it's only
> at a
> user level.  To rename files I have to start a terminal,
> switch to root and then start xffm.  I'm hoping there's a quicker way
> but I haven't found it yet.  Any suggestions or have I missed the answer
> in the manuals?

The current xffm in CVS testing for 4.2 release might have what you
need. It works as follows:
try file modification as normal user, if this fails test for the "sudo"
program, if "sudo" is installed, then try the file modification with
sudo. If sudo is configured to ask for a password, xffm will figure that
out and prompt for the password. 
At the present time such behaviour works for changing file
owner/group/permisions. Not yet for renaming (not until someone requests
such feature).

OTH, if you have sudo installed you might add an entry to your desktop
menu with the instruction "sudo xffm" and lose no time at all (sudo
configured without password).

Edscott   

> 
> TIA, John
> _______________________________________________
> Xfce mailing list
> Xfce at xfce.org
> http://lunar-linux.org/mailman/listinfo/xfce
> http://www.xfce.org
> 




More information about the Xfce mailing list