Just wanna know if I can ask users for root password/user password of the computer in a QDialog GUI?
Thanks
--
Printable View
Just wanna know if I can ask users for root password/user password of the computer in a QDialog GUI?
Thanks
--
Yes, sure you can. You can ask the user for anything you like.
Wow I'm suprised, I didn't think you could. Is it an in-built function in QDialog or is there some path or something I have to specify?
facepalm.
.............
You can ask the user to provide anything you want. This has precisely nothing to do with what your code does with the provided information.Quote:
Just wanna know if I can ask users for root password/user password of the computer in a QDialog GUI?
There is no auto-magic, obtain root login credentials, change the process effective uid to zero, and do stuff dialog. You have to code everything you want done with the user's input.
No, you don't need superuser privileges to determine users' home paths.