LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 02-20-2012, 08:04 AM   #1
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,303

Rep: Reputation: 57
Why set the user password if only browser is used?


Root password set.

Is there any security reason to also have a password for the normal non-root user, given that only one person has physical access to the pc and it is used only for browsing the internet?

Using peppermint two.

Last edited by Ulysses_; 02-20-2012 at 08:11 AM.
 
Old 02-20-2012, 09:06 AM   #2
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,487

Rep: Reputation: Disabled
If your computer is stolen, all your info is readily accessible, by the thief.
With a password, at least your info has a little chance of remaining private.
(A hacker, or rather cracker, as they should be known, can obviously bypass a simple password)
 
Old 02-20-2012, 09:22 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
I would actually except the act of installing Linux in the first place would make data more secure from an opportunist thief than having a password!

Having a password is always a good idea, never a bad one. I think the example of a theft is a little pointless as once someone has physical access, the game is already going to be over. Remotely there is more perspective though. If you have an empty password, then it would be much easier for an intruder to connect, and then subsequently they could use sudo to become root without entering a root password either. As a scenario, it's hard to justify not having a password there I think, although in reality ssh will normally deny any SSH logins where there is no password.

In general, it's just such a good idea that you;d do well to just accept it!. You can configure many graphical login managers to automatically log you in on boot, and *bypass* the password, maybe that's a better middle ground for you?
 
Old 02-20-2012, 09:48 AM   #4
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,303

Original Poster
Rep: Reputation: 57
Quote:
You can configure many graphical login managers to automatically log you in on boot
Done.

Quote:
they could use sudo to become root without entering a root password either
Normal user is not in the /etc/sudoers.

Quote:
If you have an empty password, then it would be much easier for an intruder to connect
I thought a service must be configured to enable this, why do we not disable the service once and for all so we do not have to worry about the password?

Last edited by Ulysses_; 02-20-2012 at 09:49 AM.
 
Old 02-20-2012, 09:51 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Quote:
Originally Posted by Ulysses_ View Post
I thought a service must be configured to enable this, why do we not disable the service once and for all so we do not have to worry about the password?
SSH is always something of a special case. It's about the only service I would always expect to be installed, and enabled by default. Just about everything else I'd be pissed if it was there without me asking, but it's the exact opposite for SSH.

Let me turn around what you asked... Why do we not just set a proper password as per security conventions so we do not have to worry about disabling various useful services?

Disabling services reduces the risk, setting a decent password increases the security, if you see the difference in the two perspective. And never forget a system is only as security, powerful, reliable, whatever... as its weakest link, and not having a password is a very very weak link.

Last edited by acid_kewpie; 02-20-2012 at 09:54 AM.
 
Old 02-20-2012, 10:04 AM   #6
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,303

Original Poster
Rep: Reputation: 57
Quote:
Originally Posted by acid_kewpie View Post
Why do we not just set a proper password as per security conventions so we do not have to worry about disabling various useful services?
Because disabling a service that exposes the machine to the outside world is done once. Whereas a password is typed all the time. Not to mention it has to be memorized, and ideally changed regularly.

Is the listening SSH service needed if the machine is only used for browsing?

Is any other service needed that is exposing an attack surface if the machine is only used for browsing?

Last edited by Ulysses_; 02-20-2012 at 10:09 AM.
 
Old 02-20-2012, 10:08 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Is any other service? Maybe... who knows... Do you know how to be SURE nothing else is running? Best set a password just in case... amirite? On my laptop, my password is not typed in all the time. I only ever use it routinely when unlocking it from the screensaver, and I can turn that off if I want, and then I'd go literally weeks without entering it, but it would still be there if someone tried to SSH into my laptop etc.

No, SSH isn't required at all if you don't want it, no other remotely accessible services are either.

Might be worth noting that with all this security talk, you've not mentioned firewalls once..?
 
Old 02-20-2012, 10:36 AM   #8
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,303

Original Poster
Rep: Reputation: 57
Quote:
Originally Posted by acid_kewpie View Post
Might be worth noting that with all this security talk, you've not mentioned firewalls once..?
Haven't, but the thought did cross my mind, listening services are no longer a concern with an easy firewall like ubfw, right?

Here's a shocker: the normal user's password is irrelevant when faced with real-world threats like malicious sites that exploit firefox faults to launch their own executables, the hacker has all the privileges of the normal user without ever typing a password.

Last edited by Ulysses_; 02-20-2012 at 10:40 AM.
 
Old 02-23-2012, 09:18 PM   #9
raymor
Member
 
Registered: Nov 2005
Posts: 59

Rep: Reputation: 20
A password keeps your visiting nephew off of exploit-city-porn.com. It keeps your mom from checking her email real quick and seeing the site you were on last night. Ot keeps the office visitor from quickly grabbing your confidential spreadsheet.


A hardcore hacker with physical access and enough time can get your data, bit most people with physical access aren't hackers, they may just dumb or nosy. I don't want dumb or nosy people on my system.
 
Old 02-24-2012, 01:58 AM   #10
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,303

Original Poster
Rep: Reputation: 57
Except you forgot condition 1 of the OP and that is:
Quote:
Originally Posted by Ulysses_ View Post
given that only one person has physical access to the pc

Even if one ignores the conditions of the question still the general reality of life is that many people live alone or share houses with others that do not enter their rooms uninvited. In this case the only threat is from the internet.

Now would you say that remembering and typing a password of a non-sudoer is sound practise when the only threat is from the internet, a simple firewall like gufw is set to block all incoming, and only the browser is used?

Last edited by Ulysses_; 02-24-2012 at 02:14 AM.
 
Old 02-28-2012, 10:03 AM   #11
raymor
Member
 
Registered: Nov 2005
Posts: 59

Rep: Reputation: 20
Quote:
Originally Posted by Ulysses_ View Post
Except you forgot condition 1 of the OP and that is:



Even if one ignores the conditions of the question still the general reality of life is that many people live alone or share houses with others that do not enter their rooms uninvited. In this case the only threat is from the internet.

Now would you say that remembering and typing a password of a non-sudoer is sound practise when the only threat is from the internet, a simple firewall like gufw is set to block all incoming, and only the browser is used?
Yes. I also suggest having a PIN number on your ATM card even if you don't make a habit of knowingly giving it to other people.

A) If the building has windows or doors, other people CAN access the machine. People who live alone DO have guests. Pretending that you'll never have a house guest, invited or not, doesn't make it true. B) Even from the internet alone, you can not guarantee that no service will ever be started. The OP may very well decide to transfer files from his laptop by turning on FTP or SSH "just for a minute". Happens all the time. We have a script that turns on FTP and then automatically turns it off an hour later because people DO forget to turn off services when they are done using them for a minute. That's real world.

Last edited by raymor; 02-28-2012 at 10:05 AM.
 
1 members found this post helpful.
Old 02-28-2012, 12:06 PM   #12
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,303

Original Poster
Rep: Reputation: 57
Quote:
Originally Posted by raymor View Post
Yes. I also suggest having a PIN number on your ATM card even if you don't make a habit of knowingly giving it to other people.
ATM cash machines are exposed in public, not a good analogy.

Quote:
A) If the building has windows or doors, other people CAN access the machine.
A burglar may not be computer literate but other criminals they sell stolen computers to may well be. And once long-term physical access is gained, user passwords are hopeless we agreed here.

A guest in my case was either my girlfriend, to whom I gave full access to everything and not just my computer. Or housemates with whom it was unthinkable that they would enter my room without me being present. Maybe it is a cultural thing, privacy is respected in Britain at least.

Quote:
The OP may very well decide to transfer files from his laptop by turning on FTP or SSH "just for a minute".
FTP or SSH do not classify as browsing so a bit off-topic, but even ignoring the browser-only condition, with FTP and SSH you need no more than the client that makes outgoing connections to a server and it is the server that needs a password for FTP or SSH, not the local user on the client.

Last edited by Ulysses_; 02-28-2012 at 12:07 PM.
 
Old 02-28-2012, 12:35 PM   #13
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Why do you lock your front door? It won't stop a pro who has targeted you. But it will normally deter the majority of opportunistic ne'er do wells who, upon discovering it locked, will move on to an easier task.

I thought the ATM card analogy was appropriate. He wasn't suggesting that your ATM cash machine would get ganked. He was saying using a PIN on an ATM card makes it far less convenient to use it for nefarious purposes.

Are you really here asking for user password rationale? Or are you here to endlessly argue? I say: do what you like. You received advice from others who took the time to reply, and you seem to not agree with it. Very well, then.
 
Old 02-28-2012, 04:09 PM   #14
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,303

Original Poster
Rep: Reputation: 57
Quote:
Originally Posted by anomie View Post
He wasn't suggesting that your ATM cash machine would get ganked.
Neither was I. An ATM cash machine (or the equivalent ATM with handheld keyboard at certain stores) is the only place I know where the PIN of an ATM card is typed, no other nefarious purposes for this PIN.

Quote:
Are you really here asking for user password rationale?
No, I am asking if a user password can be safely disabled if certain other conditions exist or are made to exist deliberately as a policy to avoid the trouble of the password and associated typing and remembering.

So answers about password rationale in other contexts such as a family sharing a house or a business environment or nosy tent-mates in Mongolia or something, are off-topic here.
 
Old 02-28-2012, 04:33 PM   #15
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by Ulysses_
Neither was I. An ATM cash machine (or the equivalent ATM with handheld keyboard at certain stores) is the only place I know where the PIN of an ATM card is typed, no other nefarious purposes for this PIN.
In the US, debit card point-of-sale devices (i.e. those accepting PIN entry) are ubiquitous.

Without straining the analogy too far, look at it this way:
  • If you have a debit card with no PIN, the hurdle for using it is lowered.
  • If you have a user account with no password, the hurdle for using it is lowered.

If you trust that some browser exploit will not result in a back door (that may or may not otherwise require authentication), and if you trust that your girlfriend (or whoever) won't do something unexpected, then proceed as you'd planned. I don't recommend it. But it is your choice and your risk to assume.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
set default browser for a single user only brennino Debian 2 10-28-2011 06:18 AM
Can a user login without having a password set? kinetik Linux - General 6 07-25-2009 01:17 PM
How do i set my super user password? Nexxt Ubuntu 4 01-03-2007 11:36 AM
Unable to set password for user Harlin Linux - General 2 09-20-2005 01:25 PM
vsftpd how to set password and user? djkoe Linux - Newbie 3 12-30-2003 08:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 03:28 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