English > Development
admin & user login to personal video db
nostra:
Sorry, but I do not understand what do you want to do?
Could you try to explain your problem a bit more precisely?
rick.ca:
I think what HSSBH wants is the ability to password protect the edit function. The readonly switch applies at startup, and applies whether or not the database is password protected. I have to agree the readonly and noconfig options would be more useful if they were password protected attributes of the database files. In other words, when assigning a password to a database, one would select the desired security attributes: view, edit and/or configure.
If HSSBH can trust his users, he can create a shortcut with the -readonly switch and ask them to use only that shortcut to start the program. If, for example, he's only concerned about other family members, he could put this readonly shortcut on the desktop and hide his own full-access shortcut. He could add a little more security by using something like Password-It! to add password protection to his shortcuts. If he has $10 to spare, however, it would be better to donate it here. ;)
HSSBH:
thanx rick.ca you konw what i want..
its good thinks to do password for shoutcut, but how to do read only switch?
the main thinks is how to protect the edit function by password?
School Library System 2.0 (Freeware)
http://moshax.com/download/details/73603/School%20Library%20System%202.0%20
this is small application for borrower its good.
you know is nice thinks in that application is user login..
you can login by admin and by many user, for each user diffrent password..
but its not have ability to configer for each user what can he do such as read or edit..
thats all
thanx toooooo... my friands
i hope to get any solution od idea to help me for my app.
rick.ca:
--- Quote ---thanx rick.ca you konw what i want.
--- End quote ---
Perhaps, but nostra wants to keep it simple. While you may have a valid need for this, the program is for personal use and therefore most users have no interest in user access control. I think your only option is to use different shortcuts for starting the program with different access levels.
--- Quote ---how to do read only switch?
--- End quote ---
--- Quote from: nostra on February 03, 2009, 07:49:33 pm ---You can "hide" editing functionality with -readonly command line parameter. To hide Settings use the -noconfig parameter.
--- End quote ---
The most convenient way to do this is to add the desired parameter to a shortcut for the program. In the shortcut properties, add the parameter to the Target box, like this:
"C:\Program Files\PVD 0.9.9.4\viddb.exe" -readonly
That will effectively restrict access, but you will be left with the problem of restricting the use of the shortcut. How that might be done depends on your desktop environment and who is using the computer—which you have not described. If your users have to log on to Windows, you would put only the restricted access shortcut on their desktop. If everyone uses the same logon, you could provide a separate shortcut for each user or type of user, and, if necessary, force everyone to use only their own shortcut by password protecting them all using Password-It!
The simplest situation is where you want full access for yourself, but want to restrict access for anyone else. The cheap and easy solution is to use two shortcuts. For other users, put a restricted access shortcut—as described above—on the desktop. For yourself, create a normal shortcut, but assign a shortcut key and set the Hidden attribute—or save it somewhere other than the desktop. You would start the program using your secret shortcut key, while everyone else would use the shortcut.
Navigation
[0] Message Index
[*] Previous page
Go to full version