PDA

View Full Version : [ubuntu] Permission denied to move file in Terminal



smileyguy
October 14th, 2009, 01:28 PM
I tried to move a file using:

mv filename.flv /home/.system (hidden folder i created through terminal) but got a "permission denied" error

It let me do it (cut & paste) through Nautilis immediately afterwards.

Any ideas why?

vipulkelkar
October 14th, 2009, 01:41 PM
It should not give any problem..I tried it..it allowed me to do it..
Try it with 'sudo'

macabrem
October 14th, 2009, 02:13 PM
I tried to move a file using:

mv filename.flv /home/.system (hidden folder i created through terminal) but got a "permission denied" error

It let me do it (cut & paste) through Nautilis immediately afterwards.

Any ideas why?


I don't move files with the terminal very much, but do you need another slash "/.system/"?

smileyguy
October 14th, 2009, 02:29 PM
Sorry guys - wrong syntax or file path.

I was allowed to create in /home/ but forgot to ad my user name when moving.

This meant I had a file needing deleting in /home/ when it should have been /home/username

I assume I have write only permissions on /home

Deleted it using sudo thanks vipelkulkar