firstly it used to ask password to authenticate the drive.
But i have made to remember password and auto authenticate the drive. Then it do so.
Now i want it to ask password for authentication at every time it mount the drive. How can i change it?

Dani AI

Generated

Below is a short, practical checklist to stop a drive being unlocked automatically and force a password prompt each time. As noted, the exact fix depends on how the password is being stored; the two common places are the desktop keyring (per-user) and system mount/crypt configuration (system-wide).

Use the desktop keyring GUI (Passwords and Keys / Seahorse) and remove the saved secret for that device. Start the app from the menus or run seahorse, look under "Passwords" (or "Login" / "Stored Passwords") for an entry that matches the device label or UUID, then delete it. After that, decline to save the password when you mount next time. GNOME/Seahorse docs: Seahorse — GNOME Wiki

If nothing appears in the keyring, check for system-level unlocking via keyfiles referenced from configuration files. Back up before editing and inspect:

sudo cp /etc/fstab /etc/fstab.bak
cat /etc/crypttab
grep -nE "credentials|keyfile|keyscript|UUID" /etc/fstab /etc/crypttab || true

Remove or comment out any line that supplies a keyfile/credentials for the device, then reboot or re-run the relevant services. See crypttab(5) for details: crypttab(5) manual

Finally, check the desktop automount/media preferences (the file-manager or "Removable Drives and Media" settings) and any udisks/udev rules that might mount automatically. Caution: altering fstab or crypttab can stop a device from mounting if done incorrectly — always keep backups and test after each change.

Recommended Answers

All 3 Replies

Several of the distributions now contain a way to encrypt a hard disk so that it can't be mounted until you put in a password, it really depends on what OS your using. More information about the software installed, like OS, kernel version, etc. would be helpful.

I am usung ubuntu ultimate edition

Ubuntu Release 8.04 (hardy)
Kernel Linux 2.6.24-23-generic
GNOME 2.22.3

Please help me.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.