LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   own the directory but the object in there are not own by me (https://www.linuxquestions.org/questions/linux-newbie-8/own-the-directory-but-the-object-in-there-are-not-own-by-me-915173/)

launeric 11-23-2011 02:44 PM

own the directory but the object in there are not own by me
 
$ ls -al
total 1864880
drwxrwxrwx 3 nlau gdev 11264 Nov 23 12:26 .
drwxrwxrwx 36 dev gdev 3072 Nov 3 14:51 ..
-rw-r----- 1 oracle dba 954220544 Nov 23 12:27 custdat.dmp

I own the directory but the file custdat.dmp is own by somebody else
so how I can move or copy the file?

Is there anyway??

kbp 11-23-2011 03:58 PM

If you own the directory and have write access to it, you can delete or move the file

neonsignal 11-23-2011 03:59 PM

There is nothing stopping you from moving the file (or deleting it for that matter), so long as you have write access to the directory you are moving from and to:
Code:

mv custdat.dmp ..
You can't copy the file, because it is not readable by you.

Incidentally, why is your directory writable by all?


All times are GMT -5. The time now is 09:39 AM.