Ubuntu – Password protect GRUB menu

We can achieve this by editing the configuration gksu gedit /etc/grub.d/00_header /etc/grub.d/30_os-prober Add this at the bottom of 00_header: cat << EOF set superusers="user1" password user1 password1 EOF That way the edits will be password protected, with that user and password. Now, let's protect the Windows entry. Open 30_os-prober and find this line: menuentry '$(echo "${LONGNAME} $onstr" | … Continue reading Ubuntu – Password protect GRUB menu

Advertisements

BASH Command Shortcuts

Command Editing Shortcuts Ctrl + a – go to the start of the command line Ctrl + e – go to the end of the command line Ctrl + k – delete from cursor to the end of the command line Ctrl + u – delete from cursor to the start of the command line Ctrl + w – delete … Continue reading BASH Command Shortcuts

Using ‘chmod’ on an NTFS (or FAT32) partition

For NTFS partitions, use the permissions option in fstab. First unmount the ntfs partition. Identify your partition UUID with blkid sudo blkid Then edit /etc/fstab # Graphical gksu gedit /etc/fstab # Command line sudo -e /etc/fstab And add or edit a line for the ntfs partition # change the "UUID" to your partition UUID UUID=12102C02102CEB83 /media/windows ntfs-3g auto,users,permissions 0 … Continue reading Using ‘chmod’ on an NTFS (or FAT32) partition