Jump to content
  • Advertisement
Sign in to follow this  
Japanese

project query in C++

This topic is 4425 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post


Link to post
Share on other sites
Advertisement
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Quote:
Original post by 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.


Read this:
http://www.faqs.org/faqs/unix-faq/programmer/faq/
section "3.1 How can I make my program not echo input?"
and you might want to read it through as it has a lot of other good stuff in it too.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!