Saturday, September 02, 2006

Nautilus chown script

Download nautilus-scripts archive

#!/bin/bash

# Change ownership to vishah.
suri=`echo $NAUTILUS_SCRIPT_CURRENT_URI|grep -oE '[/][^//].+'`
foo=`gksudo -u root -k -m "Enter root pass" /bin/echo "you got root?"`
`sudo chown -R vishah:vishah $suri `

Select files and change ownership with a click

No comments: