Jump to content

[SOLVED] rsync permissions problems on linux (user id's do not match)


nweiler

Recommended Posts

My problem:

rsync on linux fails with permissions errors unless I specify "-o username=nweiler,uid=1001,gid1001" when mounting the share.

 

Errors:

Cannot create directories

Cannot delete files

 

The command I use to mount the share:

sudo mount -t cifs //192.168.17.170/miscdata /home/nathan/datafarm -o username=<username>

 

Mounting a share on the command line and then running "ls -lh" shows that all files and directories are owned by the user named "root".


If I don't specify "-o username", I get asked for the root users password.

 

One thing I noticed while investigating the problem was that on the Unraid server, user "nweiler" has a user id of 1000 but on my main computer user "nweiler" has a user id of 1001.

 

Is there anything I can do so I don't have to specify "-o username=nweiler,uid=1001,gid1001" when mounting the share?

Edited by nweiler
Problem solved
Link to comment
  • nweiler changed the title to [SOLVED] rsync permissions problems on linux (user id's do not match)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...