ESPOiG
January 7th, 2007, 12:20 PM
this is just an example but i was wonderin how i could do something
#!/bin/bash
echo "this requires root access"
sudo cp /usr/share/pixmaps/vlc.png /home/$USER/Desktop/vlc.png
sudo chmod a+rws /home/$USER/Desktop/vlc.png
ok now this does all i want it to do but 1 thing, which is allow the current user (me) to right click it in nautilus and change the permissions, because they are all set to root, how can i change the ownership of the file to me, i thought the 's' did that but i dunno im not really sure
thanks
#!/bin/bash
echo "this requires root access"
sudo cp /usr/share/pixmaps/vlc.png /home/$USER/Desktop/vlc.png
sudo chmod a+rws /home/$USER/Desktop/vlc.png
ok now this does all i want it to do but 1 thing, which is allow the current user (me) to right click it in nautilus and change the permissions, because they are all set to root, how can i change the ownership of the file to me, i thought the 's' did that but i dunno im not really sure
thanks