Why I cannot change the owner of files in a mounted directory?

vn flag

I used the following command to mount a remote directory on an Ubuntu 20.04 machine:

sudo mount -t cifs -o username=tidy   //  /media/tidy/f_folder/

When I use the command ls -l, the owner of the files are shown as root:root.

I use the following command to change the owner of the files:

sudo chown -R digital:digital  /media/tidy/f_folder/

But still the owner of the files are root:root, as is shown by ls -l command.

waltinator avatar
it flag
Because the server at suppresses `root` access. Check the server's ligs
vn flag

I resolved the issue by using:

sudo mount -t cifs -o username=tidy,rw,uid=1000,gid=1000  //  /media/tidy/f_folder/

In above, I obtained the value of uid and gid``` by using the command id.

This post was helpful.

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.