Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: How to avoid password request?

  1. #11
    Join Date
    Oct 2005
    Location
    Al Ain
    Beans
    9,096

    Re: How to avoid password request?

    ...and please don't use a kewl 4 character password. A proper password is at least 12 characters long.

  2. #12
    Topsiho's Avatar
    Topsiho is offline Grande Half-n-Half Cinnamon Ubuntu
    Join Date
    Oct 2005
    Location
    Holland
    Beans
    840
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: How to avoid password request?

    Linux is very safe to use. We, who love using Linux, are quite happy with that, and want to keep it that way.

    A real threat is that new users, coming from another OS (welcome, welcome) may bring their bad habits with them to Linux, and may so endanger our computers too. Via their compromised computers our Linux machines may be attacked too, as has happened in that other OS. Now it's very difficult to attack our Linux machines, but no one (I hope so) is saying that it is impossible.

    One of the ways to keep our Linux machines safe is using root passwords (very strong passwords, that can't be guessed) for any system setting. Using these passwords when installing any program. As most viruses and other malware don't know them, they can not install. Only you can do that on your computer, and please don't do that.

    Do that to keep yourself safe, and also to keep US safe.

    You can use Linux (Ubuntu) for free, and that is great. It's more than great, it is super. Please acknowledge that, and keep your own computer as safe as possible. Using root passwords where this is necessary, and keeping your systems up to date, if possible on a daily basis (updating Ubuntu is a real pleasure, after the nightmares that the other OS once (long ago ) gave me)

    Thank you! And again: welcome...

    Topsiho

  3. #13
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    13,560
    Distro
    Lubuntu 14.04 Trusty Tahr

    Re: How to avoid password request?

    Don't enable the root login on any Linux. That solves many security issues. Ubuntu works that way OUT-OF-THE-BOX. Having a root login just isn't needed on any Unix-OS.

  4. #14
    Join Date
    Nov 2007
    Location
    London, England
    Beans
    6,314
    Distro
    Xubuntu Development Release

    Re: How to avoid password request?

    After all the lectures, I hope this helps:

    Try to mentally separate the two roles of:
    * Using the system to do your day-to-day work, and
    * Administering the system, such as system updates, installing software.
    It takes a while to come to appreciate the difference if you come from other systems.
    Once the PC is reasonably set up, you should only have to do sysadmin work every few days. All your day-to-day stuff should be inside your home directory where you don't have to enter your password again.

    I always open a terminal and use the command sudo -i to gain a root prompt. I can leave this terminal open for as long as I want, and enter as many commands as I want without having to re-enter a password. Then close the prompt when the admin task is done.

  5. #15
    Join Date
    Jun 2015
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: How to avoid password request?

    lots of answers - not one has actually responded to the question.

    The answer is actually a question - why do YOU think you can run your system with no password? I suggest that you think Windows is great ...

  6. #16
    Join Date
    Jun 2015
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: How to avoid password request?

    Quote Originally Posted by ermjunor View Post
    Is there a way to tell Ubuntu 16.04 not to ask me for the password every time I want to do something more or less important? I work at home, not at NASA or similar ... Thanks...
    Of course.

    If you have to ask ...

  7. #17
    Join Date
    Nov 2009
    Beans
    Hidden!
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: How to avoid password request?

    Quote Originally Posted by flocculant View Post
    lots of answers - not one has actually responded to the question.
    that would be irresponsible to the users and others that might later be affected by such decision (removing OS security layers).
    Easy to understand Ubuntu manual with lots of pics: http://ubuntu-manual.org/
    Do i need antivirus/firewall in linux?
    User friendly disk backup (suitable for older PCs): Redobackup Less friendly disk backup (works on new PC): Clonezilla

  8. #18
    Join Date
    Mar 2017
    Location
    Gubertino
    Beans
    589
    Distro
    Xubuntu 18.04 Bionic Beaver

    Re: How to avoid password request?

    If typing your password is a chore you can add your password to your login keyring and then access it through a simple python script once logged in.
    Bind an xdotool command to a mouse button, mouse gesture or keyboard shortcut.
    Code:
    #! /usr/bin/env python
    
    # this is inspired by http://blog.schmichael.com/2008/10/30/listing-all-passwords-stored-in-gnome-keyring/
    
    # place script in ~/bin and check $PATH
    # Use seahorse to save your admin password to your login keyring as a "Stored Password"
    # Use a UniqueWord for the description.
    # gnome-keyring-dumper | awk '/UniqueWord/{print $NF}'
    # Use with easystroke or bind keyboard shortcut: xdotool key --delay 50 $(gnome-keyring-dumper | awk '/UniqueWord/{print $NF}' | sed 's/./& /g') Return
     
    import pygtk
    pygtk.require('2.0')
    import gtk # sets app name
    import gnomekeyring
     
    def hack():
        for keyring in gnomekeyring.list_keyring_names_sync():
            for id in gnomekeyring.list_item_ids_sync(keyring):
                item = gnomekeyring.item_get_info_sync(keyring, id)
                attr = gnomekeyring.item_get_attributes_sync(keyring, id)
                if attr and attr.has_key('username_value'):
                    print '[%s] %s: %s = %s' % (
                        keyring,
                        item.get_display_name(),
                        attr['username_value'],
                        item.get_secret()
                    )
                else:
                    print '[%s] %s = %s' % (
                        keyring,
                        item.get_display_name(),
                        item.get_secret()
                )
            else:
                if len(gnomekeyring.list_item_ids_sync(keyring)) == 0:
                    print '[%s] --empty--' % keyring
     
    if __name__ == '__main__':
        hack()
    Last edited by guber2; May 22nd, 2017 at 07:32 AM.

Page 2 of 2 FirstFirst 12

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •