How to disable Guest Session Login in Ubuntu Trust 14.04

  1. “sudo gedit /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf”
  2. Add the following line: “allow-guest=false”
  3. Save the file
  4. Enjoy!

OR you can simply run the following command:

  1. ” echo allow-guest=false | sudo tee -a /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf”
  2. You can still Enjoy! 🙂

Source: http://www.noobslab.com/2014/04/thingstweaks-to-do-after-install-of.html

Posted in Linux, Ubuntu | Tagged , , , , , , | 4 Comments

How to fix unavailable swap problem after fresh installation of Ubuntu 14.04 with Home Encryption

This is a bug which makes the UUID unreadable in the /etc/crypttab and accordingly no swap will be read and used by the system, which is unacceptable of course.

In order to solve this problem, all you have to do is the following:

  1. Determine which partition is your swap partition: “sudo fdisk -l”, check the line that looks like this:
    /dev/sda6       617330688   625141759     3905536   82  Linux swap / Solariswhich means that “/dev/sda6” is your swap partition
  2. Take a backup of your /etc/crypttab file: “sudo cp /etc/crypttab /etc/crypttab.orig”
  3. Modify the /etc/crypttab file to replace the UUID with the old-style partition way, for example change from this:
    cryptswap1 UUID=32504c50-3336-42fa-813f-f412050ce2f7 /dev/urandom swap,cipher=aes-cbc-essiv:sha256
    to this:
    cryptswap1 /dev/sda6 /dev/urandom swap,cipher=aes-cbc-essiv:sha256
  4. Save the file and restart
  5. Enjoy! 🙂

Source: http://ubuntuforums.org/showthread.php?t=2221067

Posted in Uncategorized | Tagged , , , , , , | 2 Comments

How to encrypt your home folder in Ubuntu or Linux Mint After Installation using ecryptfs

In case you want forgot to encrypt your home folder while installing Linux Mint or Ubuntu, it’s very easy to do that afterwards, and I’ll KISS, i.e. Keep It Simple & Stupid 🙂

  1. login normally at the login screen, let’s say the user you want to encrypt its home folder is called “hobba”
  2. Create a new administrative user, let’s call it “olla” for instance
  3. Now logout from “hobba” and login as “olla”
  4. Make sure the /home partition (if any) has enough free space, as ecryptfs takes a backup copy of all your files
  5. Run this command “sudo ecryptfs-migrate-home -u hobba”
  6. Preferably just enter the same login password you currently use for the user “hobba”. If not, you’ll have to change your user’s login password again.
  7. Wait till the command finishes execution
  8. You will see this information displayed, it is VERY IMPORTANT to follow point number 1, you can execute the others if you wish:
    ========================================================================
    Some Important Notes!

    1. The file encryption appears to have completed successfully, however,
    test MUST LOGIN IMMEDIATELY, _BEFORE_THE_NEXT_REBOOT_,
    TO COMPLETE THE MIGRATION!!!

    2. If test can log in and read and write their files, then the migration is complete,
    and you should remove /home/user.7y3X0vjM.
    Otherwise, restore /home/user.7y3X0vjM back to /home/test.

    3. user should also run ‘ecryptfs-unwrap-passphrase’ and record
    their randomly generated mount passphrase as soon as possible.

    4. To ensure the integrity of all encrypted data on this system, you
    should also encrypted swap space with ‘ecryptfs-setup-swap’.
    ========================================================================
  9. You’re done!
  10. Enjoy 🙂

Source: http://bodhizazen.net/Tutorials/Ecryptfs/#Home

Posted in Uncategorized | Tagged , , , , | 2 Comments

How to Upgrade your Ubuntu Server Release, The Recommended Way

It’s done using a command line utility called “do-release-upgrade”, it’s part of the update-manager-core package, so all you have to do is the following:

“sudo apt-get install update-manager-core”

“sudo do-release-upgrade”

That’s it, simply!

Source: https://help.ubuntu.com/12.04/serverguide/installing-upgrading.html

Posted in Uncategorized | Tagged , , , , , | Leave a comment

Getting List of Users and Roles on Oracle DB

This is a simple SQL statement to get you a list of all users and their roles in the Oracle DB:

“SELECT * FROM DBA_role_privs;”

And if you want to get the list of users related to a specific role, you can simply modify the SQL statement to be like this:

“SELECT * FROM DBA_role_privs where GRANTED_ROLE=’SSE_ROLE’;”

Source: http://www.dbforums.com/oracle/1650816-how-get-list-all-users-their-roles.html

Posted in Uncategorized | Tagged , , , , , , , , | Leave a comment