Skip to main content
gamedev.net
🔒 Locked

project query in C++

Started by Japanese Jul 3, 2006 at 8:48 AM 5 replies 1.2k views
Original Post
Japanese
Japanese
1. How should I display ***** instead of password on screen? Is there any standard abiding way to do that? If not, then how can we do it in on unix platform. 2. In my project I need to give default password to administrator. Will using default arguments will be the right way? 3. How to give user option for changing there passwords? Should I use setpasswrod function for user? 4. I want to allow user to grant access rights like rwx to other user. How can I do that?
Japanese
Japanese
Anyone?
Endar
Endar
First of all, on what platform? Windows? Linux? Is it a console program, or is it for a textbox on a windows form? Lastly, what language are you using?

I used to do a bit of Visual Basic, so I know that, on a windows form textbox, there should be an option to set that will automatically display any text as a single character of your choice.
[size="2"][size=2]Mort, Duke of Sto Helit: NON TIMETIS MESSOR -- Don't Fear The Reaper
Japanese
Japanese
I already mentioned that it's a project in C++ and on unix.

It is a console based program.
ju2wheels
ju2wheels
1. console character masking
2. I dont know what you mean by default arguments... but just make a random default password and give it to them.
3. For changing their password you would probably want them to enter their previous password first, or the default password you supplied them with before being able to enter the new one (which you should ask for twice for confirmation purposes...).
4. chmod or something like that ... im not too familiar with this so I might be wrong. Although they would probably only be able to change the access of users with equal or less access rights.
joanusdmentia
joanusdmentia
Quote:
Original post by Japanese
4. I want to allow user to grant access rights like rwx to other user. How can I do that?


Under linux you normally can't assign permissions to a specific user or group that isn't the owner of the file. I *believe* SELinux (included with Fedora Core for example) allows you to do this, but I've never paid that much attention to it so you'll have to do a bit more digging yourself.
"Voilà! In view, a humble vaudevillian veteran, cast vicariously as both victim and villain by the vicissitudes of Fate. This visage, no mere veneer of vanity, is a vestige of the vox populi, now vacant, vanished. However, this valorous visitation of a bygone vexation stands vivified, and has vowed to vanquish these venal and virulent vermin vanguarding vice and vouchsafing the violently vicious and voracious violation of volition. The nly verdict is vengeance; a vendett o

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.