LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-29-2007, 06:23 PM   #1
DaveB
LQ Newbie
 
Registered: Apr 2007
Location: Canada
Distribution: Debian, Mepis
Posts: 2

Rep: Reputation: 0
How to minimize password typing?


I hope this is the right forum, the security forum might emphasize security while this post is to ask about emphasizing *ease of use*. Because of the technical questions, the newbie forum seemed inappropriate.

Newbies coming from that other OS (9x and home versions), and who are not much concerned about security, find being asked to type the root password for every administrative task a real burden. Some users have a personal philosophy that a persistent, skilled cracker can get into his computer anyway, so why place the extra burden of 2 passwords on the user.

I am aware of autologin, sudo in Ubuntu/Kubuntu, and the (less secure) possibility of short passwords. There is also the (less secure) possibility of using the same password for user and root.

Gnome gksu allows keeping root password for admin tasks, and reminds user with a message whenever ANY new admin task is started. Kdesu seems to have a similar function but only applies it to the SAME task - a DIFFERENT admin task requires typing the root password yet again.

Is it possible to make kdesu behave like gksu, or somehow "substitute" gksu for kdesu in the KDE destop?

What other ways are there to make GNU/Linux/KDE "REALLY EASY" for a user who hates typing passwords?

Thanks in advance.
Dave
 
Old 04-29-2007, 07:33 PM   #2
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
Well, you can set up sudo to allow user(s) to run commands as root without having to type in a password. Also keep in mind that sudo asks for the user's password, not root's password, which addresses one of your original concerns (having to remember/type in two different passwords).

You could create "launchers" or menu items that execute scripts to perform sudo-enabled common tasks. There's absolutely nothing wrong with writing a collection of sudo-enabled scripts to do things like mounting devices, starting services, adding/removing software, etc. Some may argue there are cleaner/more elegant ways, but it's your system; run it the way you want--even if that means running as (gasp!) root. There will be some roadblocks (some software won't run if it's executed as root - which is unnecessarily "parental" in my opinion). It would be my hope that you would eventually return to regular user methods.

I'm sure someone will come along and give the "proper security" lecture (especially since I had the audacity to mention running as root is an option), but I get the impression you are already aware of it.

I would like to point out though, that the way things are "supposed" to work is that you fight with administrative stuff (i.e. passwords) only so long as it takes to get your system the way you like it. Then, when it's properly set up, you should rarely need root access. If you're still tinkering/experimenting, the passwords are just a necessary evil so to speak.

I honestly don't know about the gksu or kdsu internals. So I don't know if the sudo method above will have any effect on them. If not, you will be forced to run your password-less sudo commands from the commandline.

Last edited by Dark_Helmet; 04-29-2007 at 07:34 PM.
 
Old 04-30-2007, 05:01 AM   #3
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 293Reputation: 293Reputation: 293
Security and convenience always compete. In windows or linux, you can't have absolute convenience and absolute security at the same time. Windows aims for absolute convenience, but is a security mess. Linux is secure because security has a higher value than convenience.
 
Old 04-30-2007, 07:26 AM   #4
oskar
Senior Member
 
Registered: Feb 2006
Location: Austria
Distribution: Ubuntu 12.10
Posts: 1,142

Rep: Reputation: 49
Almost all my passwords I can type with my left hand alone. Plus I try to construct them in a way that I can type them in a split second... I still think they are safe enough - I mean it's not "water" - it's just numbers and letters. - so when the password prompt comes up, it doesn't really bother me. It doesn't take more time than clicking "confirm" or "trust" or something.
 
Old 04-30-2007, 01:53 PM   #5
petespin27
Member
 
Registered: Aug 2005
Location: Lansing, IL
Distribution: Opensuse 11
Posts: 140

Rep: Reputation: 16
Another option is to research and buy a fingerprint reader. My new laptop came with one, and it works (sort of) in Windows. It has been reported to work in linux. I havent taken the time to configure it, but it holds promise: Swipe your finger, no passwords to rememeber...
 
Old 04-30-2007, 03:37 PM   #6
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
Better you bite the bullet and get used to a secure administrative password. The reason Winows viruses spread so quickly is that its users have been taught to operate their PCs in administrative mode. People who switch to Linux should follow the established, and secure, policy rather than try to change it.
 
Old 05-01-2007, 10:42 AM   #7
DaveB
LQ Newbie
 
Registered: Apr 2007
Location: Canada
Distribution: Debian, Mepis
Posts: 2

Original Poster
Rep: Reputation: 0
a partial solution

Thank you all for taking the time to comment. I like the time-saving idea of a one-handed password, leaving the other hand on the mouse. The idea of setting up sudo to allow user(s) to run commands as root without having to type in a password enabled me to stumble across a partial solution in Kubuntu 7.04.

While setting up user autologin, the same screen allows setup of "no password required for" user. Then user just clicks OK or hits enter, without typing password, when doing admin tasks. The setup screen cautions that help should be read; the help screen gives the appropriate warning about reduced security. IMHO a user who hates repeatedly typing password is safer in a reduced-password-effort Kubuntu, than in windoze 9x or home.

However, I still prefer Gnome gksu where user has to type password once, then "keep password", and then gets a polite reminder at startup of each admin task. Unfortunately the user prefers KDE. Now if only kdesu could be made to behave like gksu in Mepis and Debian KDE...

BTW Mepis 6.5 has an amusing warning on the desktop when someone logs in as root!

Thanks again,
Dave
 
Old 05-02-2007, 07:06 AM   #8
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
Quote:
Originally Posted by DaveB
The idea of setting up sudo to allow user(s) to run commands as root without having to type in a password enabled me to stumble across a partial solution in Kubuntu 7.04.
You don't say what the 'partial' solution is, but anything associated with running commands via a passwordless sudo is a terrible idea.

The whole point of permissions and access systems is to limit the damage that can be caused. If you setup commands to be run via sudo with no password, then anything malicious can be run via sudo, and execute as root, with no intervention from yourself (albeit generalised, as you often have to give a script etc. execute permissions), completing invalidating the permission security model.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
minimize problem kydavis77 SUSE / openSUSE 3 01-25-2006 04:48 AM
minimize all puishor Linux - General 1 08-31-2005 06:10 AM
Change password without typing?; jago25_98 Linux - Security 1 10-08-2004 06:12 PM
Minimize issue Rhiannon Fedora 1 03-10-2004 08:26 PM
get kick out everytime typing in the root and password visioning Linux - Security 13 08-28-2003 04:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration