Hello,
Here is the issue I have for which I would like to understand as something is not working the way i was imagining. I have an external hard drive (ntfs by router's choice) on which i created multiple directories which are own by my user id:
drwxrwxr-x 1 root root 0 Nov 18 16:40 Movies
I created a directory under my home directory where i want to mount it:
drwxr-xr-x 2 dan users 4096 Oct 22 22:50 new_zealand
I disconnec the drive properly and I attach the drive to the router(to be accessible by multiple users) and mount it as a root
mount -t cifs -o username=dan,password=***** //192.168.1.1/australia /home/dan/new_zealand/
and as soon as I do that this becomes
drwxrwxrwx 1 root root 0 Nov 20 21:38 new_zealand
that's fine but I cannot change the ownership to my user:
chown: changing ownership of 'new_zealand/': Permission denied
why? I don't know. I'm the root and trying to change permissions and cannot? I can see the files but cannot modify them. What do I do wrong? I encountered some other weird issues but after I solve this I'll get into that.
thank you
No comments:
Post a Comment