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.

Files copied to user share have root owner

Featured Replies

I'm a relatively new UnRaid user and have run 4.5.6 for about a month or so.  A week ago I upgraded to 5.0 beta to experiment with the new security feature.  Things are working well but I'm seeing one small issue.  Sometimes when I copy a file to an UnRaid user share from a Windows XP box the owner is set to root.  For example: I have a user share named "Movies" (with security set to Public) and I copy files to it from a Windows XP box.  If I then telnet into UnRaid and look at /mnt/user/Movies.  Sometimes the files are there with an owner of nobody but sometimes they have an owner of root.  I can run newparams and it will set the owner correctly but I thought all new files should be created with nobody automatically?  I did a search and haven't seen anyone else with this issue so I assume I'm just missing something.  Anyone have any ideas?

 

Thanks,

Greg

  • Author

OK, I think I see what's happening.  My share 'Movies' has public security.  I also have another share 'test' that has private security and is shared as 'hidden'.  I can reproduce my problem like this:

 

1. In Windows XP I open Network Places and browse to my UnRaid server and then to Movies share.  Copy a file into 'Movies'.  telnet to tower and ls -la shows files copied over to 'Movies' share have an owner of Nobody (which I believe is correct). 

 

2. I close the 'Movies' window and enter \\tower\test in a file explorer window and enter my user name and password when prompted.  I can successfully see the contents of 'test' share. 

 

3. Follow step 1 again.  The file copied to 'Movies' this time has owner of root.

 

4. I close both windows and run 'net use \\tower\test /delete' on a command line in Windows XP.

 

5. Follow step 1 again.  The file copied to 'Movies' this time has owner of nobody.

 

So I guess I have a simple workaround.  I just have to make sure I run step #4 before I copy anything into a share with public security.

 

Greg

OK, I think I see what's happening.  My share 'Movies' has public security.  I also have another share 'test' that has private security and is shared as 'hidden'.  I can reproduce my problem like this:

 

1. In Windows XP I open Network Places and browse to my UnRaid server and then to Movies share.  Copy a file into 'Movies'.  telnet to tower and ls -la shows files copied over to 'Movies' share have an owner of Nobody (which I believe is correct). 

 

2. I close the 'Movies' window and enter \\tower\test in a file explorer window and enter my user name and password when prompted.  I can successfully see the contents of 'test' share. 

 

3. Follow step 1 again.  The file copied to 'Movies' this time has owner of root.

 

4. I close both windows and run 'net use \\tower\test /delete' on a command line in Windows XP.

 

5. Follow step 1 again.  The file copied to 'Movies' this time has owner of nobody.

 

So I guess I have a simple workaround.  I just have to make sure I run step #4 before I copy anything into a share with public security.

 

Greg

 

If I understood that correctly this is not so much an unRAID problem.  Windows holds onto that login for \\Tower\test when you navigate back to the Movies Share hence the reason the owner ends up being root.  Now, with that said Tom may be able to do some checking  and setting of the permissions based on the security settings for the specific share.

  • Author

The funny thing is everything in the 'test' share (with Private security) has nobody as owner as a result of running the  newparms script. From Windows everything in the 'test' share is visible and accessible even though it has owner of nobody. 

 

Greg

Archived

This topic is now archived and is closed to further replies.

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.