I have a working FTP server on my CEPC Device (the server which is
delivered by MS). I can assign users by the
NTLMSetUserInfo() function.
I alse need to assign different user rights to the users. Browing
through the MSDN I found an article
which descibes that this can be done with the NTLMSetUserInfo(). But
this function only has two arguments: username and password. How can I
assign userrights with this function ?
Thanks in advance,
Erjan Altena
You can specify the home directory as well as the permissions in that
directory for each user account that has been created on your Windows
CE-based device under the registry key
HKEY_LOCAL_MACHINE\Comm\Security\UserAccounts\ftpd\<UserName>, where
<UserName> is the particular user account name. You must create the actual
user account first with NTLMSetUserInfo<link to fcn> before configuring
these values.
The home directory specifies the physical path on the device's file system,
to which the user is restricted to after logging onto the device. If no
permissions are assigned to the user, an authenticated user has full
permissions on the device.
The following table shows the registry configuration options for the
HKEY_LOCAL_MACHINE\Comm\Security\UserAccounts\ftpd\<UserName> registry key.
Name: "Home": REG_SZ. Descr: "The home directory of the particular user."
There is no default value for this registry setting
Name: "Permissions": REG_DWORD. Descr: DWORD flags that specify what
permissions the user will have. These can be configured independantly of one
another based on the DWORD mask, listed in the table below.
--
John Spaith
Development Lead, Windows CE
Microsoft Corporation
Check out the CE Networking Team Blog at http://blogs.msdn.com/cenet/.
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2006 Microsoft Corporation. All rights
reserved.
"Erjan" <erjan...@gmail.com> wrote in message
news:1147857420.2...@i39g2000cwa.googlegroups.com...
Once a user is created with NTLMSetUserInfo a key is created for that
user under HKEY_LOCAL_MACHINE\Comm\Security\UserAccounts. The
application parameter to AuthHelpOpenUserKey is a subkey of the
specified user which is a subkey of the UserAccounts key. So the Home
and Permissions Values go under
HKEY_LOCAL_MACHINE\Comm\Security\UserAccounts\<username>\FTPD.
See if that works for you.