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] Permissions Issue Win7

Featured Replies

So a few months ago I upgraded from Unraid 4.7 to 5.04.  I followed all upgrade instructions including running the new permissions script. 

 

I have a nagging issue with permissions, a couple of times while saving a document to my documents folder in unraid I get an error indicating that I do not have permissions to modify the file.  Here is a link to the screenshot:

 

https://www.dropbox.com/s/39438haa1avvvh3/Screenshot%202014-02-04%2020.57.35.png

 

Here is the stange thing if I acknowledge the message above and try to save it again it creates a file with a "~" in front of the actual filename and it saves to the unraid share.  These files are valid and I am able to open them in the appropriate application.  A few weeks ago I was using freefilesync to copy files from a backup harddrive (mounted in windows 7) to an unraid share.  Several files were created with an extension that made it appear like it was a temporary file (I assume the software after it copies the file renames the temp file with the appropriate extension)...the software threw an error also saying it did not have permissions to rename the file (sorry no screenshot).  I manually copied these files, however I am unable to delete these now duplicate temp files via windows explorer.

 

Does anyone have any suggestions on how to diagnose this issue?

 

Other info:

Samba for all the shares is set to public

I am running windows 7 x64bit. 

 

Thanks,

 

Dan

Hi goin-

 

What user accounts do you have on your unraid?  DId you create a new account?  I believe root no longer has write access to the shares, etc. so you have to create a new account.

 

If you did this, can you try disconnecting all connections to your unraid and mapping a drive using that new account?  I had something similar when i first upgraded.  I had a persistent drive mapping that I had used the old root account to map and i had to delete that mapping and remap with the new account i created.

  • Author

In unraid I have two users: root and seaverd.

 

In my instance described in the OP I was not using a drive mappings to get to my file location.  In windows 7 explorer I have a favorites shortcut to \\tower and then I navigate to the desired folder. 

 

I am going to try what you have suggested.  See attached screenshot is there some other way to disconnect all mappings.  I am getting an error that says it is still connected even though in windows explorer there are no mappings showing under computer.

 

unraidsmb.jpg.a45ac467774c9b01bdfd67336aa890aa.jpg

If you have mapped drives, you will want to delete them.  If not, I found the below info on removing old connections:

 

Follow the steps below to remove old Network Connections on your Windows 7 computer.

 

1) Use your mouse to click the Start menu and select the Control Panel.

 

2) Click the "Network and Internet" button once the Control Panel loads and select the Network and Sharing Center.

 

3) Click the "Manage network connections" tab.

 

4) Look for the old network connections you wish to remove in the scroll box. Depending on how many connections you currently have in Windows Vista it is possible you'll need to scroll a bit to find the one you wish to remove.

 

5) Click on the old connection you wish to remove.

 

6) Click the "Remove" button.

 

7) Confirm your selection by pressing "Yes" when asked whether you are sure you wish to remove the connection. You may also elect to press "Cancel" or "No" to return you to the previous screen and prevent the connection's removal.

 

8) Note that you can also change network connections through the network wizard. Simply click Start, then "Connect To" and "Show all connections."

 

9) Select the network connection you wish to change by right-clicking on it and selecting the option you wish. You can choose to "Disable" the connection, which would have roughly the same effect as completely removing it, rendering it inactive.

 

10)Press the "Delete" key after clicking on a network connection in the Network Connection window. This will completely delete the connection in the same way that removing it from the Control Panel would.

  • Author

Not sure what to do, I have no extra mappings.  I used the net use command and none were listed.

 

I telneted into unraid and went to the tax files listed in my original post and the owner of the files was listed as seaverd, when I try to delete these files from windows it says that I need permissions to perform this action....require permissions from \\Tower\seaverd to make changes to this file.  Oddly enough, I am running SageTV and recording an over the air TV show and when I telnet to that location and check the file owner it says nobody and I am able to delete it etc.  Why would these two program establish different owners of these files.

 

Again any help would be appreciated.

 

P.S. ...with the user seaverd, should I be able to login to the stock unraid webadmin?  The reason I ask is that when I try to login as seaverd the username and password screen just returns.

 

Dan

So you are still not able to map a drive?  it keeps saying you have connections already?

  • Author

althoralthor,

 

Thanks for staying with me on this issue!  We are so close.  I think I see the problem and it only occurs in one of my many user shares.  See the attached screenshot (ls -l for the one share that has the issue), look at the permissions for the folders (and a couple of the files)...the permissions aren't correct.  This explains why I was only seeing this with some programs, as the other programs are writing to other shares.  I thought the new permissions script changed these permissions along with the owner of the file.  So I assume at this point I need to CHMOD the folders and files to get the permissions correct.  Do you agree?

 

Thanks again,

 

Dan

 

unraid_permissions.jpg.241dc868dd8fad5f1542e9dc74bb599e.jpg

  • Author

dgaschk,

 

I did run new permissions...that is the weird part.  I made sure the window stayed open and I got the completed message at the bottom of the window.  After searching the forums telnet into the tower and ran newperms /mnt/user/Doc_Backup.  This did not change the permissions either, which is why I was thinking of chmod.

 

Dan

Last time I had permissions problems on a windows machine I ran permissions then rebooted my windows machine and all was good.

  • Author

In diagnosing this over the past couple of days I have reboot both Win7 and Tower several times to no avail.  When this first started I didn't know the permissions issue was related to just one share.    Based on my screenshot the issue is definitely with the permissions on the unraid side.  I am just confused as to why the new permissions script did not change for the folders and files within this share??

 

Dan

How did the files with the permission issues get created? Did you just copy them from your PC over the network or was there some application involved?

  • Author

Honestly, I don't remember.  They probably were copied from a PC.  Many of these files have been there for years.  I did not have any permissions issues until I upgraded to 5.0 about a month ago.

 

Dan

Hmmm...Have you tried rerunning the new permissions script again?

 

Once we start getting into the linux aspect, I'm like  :o

 

But I would agree it certainly seems like an issue with the permissions on that share.  I think another option would be to run midnight commander as I believe you can pretty easily change permissions with that.

  • Author

Yes,

 

I have run the new permissions script multiple times.  I even ran the command line version for just the share that has the incorrect permissions.  See the attached screenshot....its me running the command line newperms for the share, it finishing and me doing ls -l to show the ownership and permissions.  Please note that the actual share has the correct permissions, so I can save files directly in the share (as can be seen by one of the first files in the share in the screenshot)...its the subfolders that have the incorrect permissions, as well as some files in the share.

 

Dan

Does "newperms /mnt/user/Doc_Backup/XPSP3.iso" change anything?

  • Author

Dgaschk,

 

I just tried it an no...the permissions do not change...still only r permission for file group and user.

 

Dan

Try "chmod 777 /mnt/user/Doc_Backup/XPSP3.iso"

  • Author

Dgaschk - That did change the permissions to rwx for the file group and user.

 

In my googling, I was planning on running the following...I was holding off to see if anyone had any suggestions.  Does the following syntax look ok?

 

find /mnt/user/Docs_Backup -type d -exec chmod 777 {} \;

 

and

 

find /mnt/user/Docs_Backup -type f -exec chmod 666 {} \;

 

Look at the contents of /usr/local/sbin/newperms to see what it does. "more /usr/local/sbin/newperms"

  • Author

dgaschk,

 

I performed the chmod as I discussed in my last post.  All permissions have changed and match the rest of my disks and shares. 

 

Thank you everyone for your help.  I am going to mark this thread as solved.

 

Dan

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.