1
I have a Synology DS1513+ running DSM5.0-4493 update 1 (a several-year-old OS).
I have Windows 7 and 10 laptops mounting that disk, along with a Linux laptop mounting the same area via NFS.
My development account on the Linux box and Synology is user ID 1000.
I'd like my Windows boxes to present that user ID as well so they have full permission to edit everything, create and delete files etc. (I develop software that is intended to work on both OS's so edit and build on both OS's.)
On the Windows 7 box long ago I apparently also set it's user ID to 1000 somehow, but on the Windows 10 box I'm user ID 4294967294. How can I change that to 1000?
When I "map network drive" I've tried checking "mount with different credentials," expecting it'd ask me for an alternate user ID, but it doesn't seem to ever query WHAT different credentials to use. (I also c an't think why the disk would take my word for it that I should be user 1000.)
I've also tried net use V: \\diskstation\volume1\MyDisk MyPassword /USER:SynologyUserName
and am told:
You can't connect to the file share because it's not secure. This
share requires the obsolete SMB1 protocol, which is unsafe and could
expose your system to attack. Your system requires SMB2 or higher. For
more info on resolving this issue, see:
https://go.microsoft.com/fwlink/?linkid=852747
I've also tried going to Control Panel\User Accounts\Credential Manager\Add a Windows Credential, and typing the share \diskstation\volume1\MyDisk, MyUser, and MyPassword. Upon OK:
This information cannot be
saved. Make sure all the information is correct and that all required fields are completed.
Error code: 0x80070057
Error Message: The parameter is incorrect.
I've also tried share as simply diskstation. Upon OK, it is accepted, and appears on Control Panel\User Accounts\Credential Manager as "diskstation" under Windows Credentials. But then I unmount and remount the share, try creating a file, and the UID is still 4294967294, not the 1000 of the name of the credential I created.
I've also googled for "map synology user ID." Not finding anything useful.
I've ssh'd in and did find
from /
for any config files with samba in the name and don't find anything. (Well, two tiny files, but don't seem to be samba.conf or anything for mapping users.)
I've also searched systematically through the synology's control panel over the http interface and nothing.
Fair enough. I'm old-school and never happier when I can edit a config file instead of using a GUI. But when I ssh into my diskstation, there's no samba.conf that
find
can find, and indeed only two little files with samba in the name. – Swiss Frank – 2018-02-10T06:48:48.950How about smb.conf ? – allquixotic – 2018-02-10T07:19:21.583
OK, I have /etc/init/smbd.conf, but it's just run-level start/stop of course. No other file under /etc contains 'smb'. – Swiss Frank – 2018-02-10T07:33:39.347
1Hmm... maybe your Synology being extremely old has something to do with it, because those samba conf files are there for the other guy running Synology DiskStation on AskUbuntu. – allquixotic – 2018-02-10T08:55:38.123
fair enough but again i have it working for the old win 7 box, so it seems possible with the OS the disk currently has – Swiss Frank – 2018-02-10T08:58:28.017
Did you confirm whether you're (trying to) login to the Synology box with a Microsoft Account? (see my edits to my post at the bottom for details) – allquixotic – 2018-02-10T09:42:21.760
I've reread your post but I don't think I see how to confirm? – Swiss Frank – 2018-02-10T09:45:02.440
Might wanna hang out in chat to do the extended troubleshooting that's needed for this. If no one responds, just wait a while.
– allquixotic – 2018-02-10T09:59:11.663