Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

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

  • Community Expert

Just use the Unassigned Devices plugin instead of messing with this at the command line.

  • 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.

  • 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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.