I have a script that checks for usb devices. If the device is valid, (it's in my database, a text file) my script mounts it, and if the device is not in my database, i get a messgae "invalid device detected", and the device doesn't mount. When an invalid device is detected, i want to open a terminal, showing "invalid device "usb_name" detected. Please intoduce your root password to mount it." . And if the password is correct, and want the _invalid_usb_name to be written in my database , and so, it will be a valid device now. How exactly do i open that terminal in my script asking for my root password ? It's a bash script.