Posted September 19, 20213 yr 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 September 24, 20213 yr by nweiler Problem solved
September 19, 20213 yr Community Expert Just use the Unassigned Devices plugin instead of messing with this at the command line.
September 24, 20213 yr Author After some research and testing of ideas, I got my main computer to automatically mount the shares when I log in. This eliminates the need for me to remember to add the -o option to the mount command. My computer runs Ubuntu so I ended up using libpam-mount so I don't have to manually mount the shares everytime I log in.
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.