I am trying to change the ownership of a file on a remote filesystem, but chown responds with
chown: changing ownership of ‘foo’: No such file or directory
However, as you can see, foo is there and I can do other operations on
it. For example, sudo chmod a+x foo
works just fine. E.g.,
prompt> ls -l foo
-rw-rw-r-- 1 debug debug 0 Dec 4 09:45 foo
prompt> sudo chmod a+w foo
prompt> ls -l foo
-rw-rw-rw- 1 debug debug 0 Dec 4 09:45 foo
prompt> sudo chown seth foo
chown: changing ownership of ‘foo’: No such file or directory
prompt> ls -l foo
-rw-rw-rw- 1 debug debug 0 Dec 4 09:45 foo
The directory lives on a remote drive mounted as follows:
sudo mount //10.71.165.126/seth /mnt/centraldrive -o user=name,pass=password
The remote filesystem is a seagate central. I am running Ubuntu 14.04.1 LTS.
Any help would be appreciated.
[A side note, I created foo with sudo touch foo
. However, for some
reason the ownership is given the the debug
user. Is that related?]
mount
command rather than you local machine credentials? Makes a difference.chown
on the seagate.ssh
into it and change them there. You're creating a mount point for the Seagate locally in/mnt/centraldrive
and file permissions won't "stick" there unless you create a directory in/mnt
and specifically mount the Seagate with anfstab
entry that contains the user/group assigned to the mount point.