Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to assign user right to the CE-FTP server.

528 views
Skip to first unread message

Erjan

unread,
May 17, 2006, 5:17:00 AM5/17/06
to
Hi,

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

(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceftpsv/html/cetskassigninguser-specificpermissions.asp)


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

John Spaith [MS]

unread,
May 18, 2006, 4:20:02 PM5/18/06
to
This document has been brought to my attention recently. Let's just say
it's not the most accurate documentation in the world, my apologies. Here
is the proposal I made to clean this up for a future release -- note this
hasn't went through dev or docs review, but it should get you much closer
here. This will go on the page you link to and references some stuff, like
the permissions table, that will remain after this update.

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

marc....@gmail.com

unread,
Jun 1, 2006, 4:58:33 PM6/1/06
to
I finally got this working; we couldn't find source or docs for
AuthHelpOpenUserKey but with two parameters it was a 50/50 thing.

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.

0 new messages