Wilders Security Forums  

Go Back   Wilders Security Forums > Software, Hardware and General Services > all things UNIX
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread
  #1  
Old July 23rd, 2012, 05:58 PM
moontan's Avatar
moontan moontan is offline
Massive Poster
 
Join Date: Sep 2010
Location: Québec
Posts: 3,127
Default question on root password

i keep my root/sudo password really short and simple since i'm the only user.

is having a long password against online attacks necessary?

could someone 'knock at the door' of my connection, so to speak, and try passwords one after the other until he/she finds the right one?
__________________
| NoScript || Image for Linux + BootIt Bare Metal |
  #2  
Old July 23rd, 2012, 06:01 PM
Hungry Man's Avatar
Hungry Man Hungry Man is offline
Incredibly Massive Poster
 
Join Date: May 2011
Posts: 8,486
Default Re: question on root password

They would need to actually be in a program on the system either having exploited one or otherwise.

I use a pretty simple password - 12 characters. That should be fine.
__________________
  #3  
Old July 23rd, 2012, 06:09 PM
moontan's Avatar
moontan moontan is offline
Massive Poster
 
Join Date: Sep 2010
Location: Québec
Posts: 3,127
Default Re: question on root password

tnx Hungry!

i'll add a few more characters.lol
__________________
| NoScript || Image for Linux + BootIt Bare Metal |
  #4  
Old July 23rd, 2012, 08:40 PM
TheQuest's Avatar
TheQuest TheQuest is offline
Very Frequent Poster
 
Join Date: Jun 2003
Location: Kent. UK by the sea
Posts: 2,226
Default Re: question on root password

Hi moontan
Quote:
Originally Posted by moontan
tnx Hungry!

i'll add a few more characters.lol

I find adding a period[s] or [full stop[s]], makes it really strong in any password test.

I.E. :- my.nam.e.is.not.you.rs.

my..nam..e.is..not..you..rs..

my..nam...e.is.not...you.rs...

FYI :- A full stop ( . ) (British, New Zealand and Australian English) or period (American English and Canadian English).

Take Care
TheQuest
__________________
When Nothing is Certain, Anything is Possible.
  #5  
Old July 24th, 2012, 08:34 AM
NGRhodes's Avatar
NGRhodes NGRhodes is online now
Very Frequent Poster
 
Join Date: Jun 2003
Location: West Yorkshire, UK
Posts: 1,905
Default Re: question on root password

Quote:
Originally Posted by Hungry Man
They would need to actually be in a program on the system either having exploited one or otherwise.

OR running an ssh server, assuming no firewall ports open to the internet !
  #6  
Old July 24th, 2012, 09:48 AM
Hungry Man's Avatar
Hungry Man Hungry Man is offline
Incredibly Massive Poster
 
Join Date: May 2011
Posts: 8,486
Default Re: question on root password

Password padding is a great way to increase password strength.

Quote:
OR running an ssh server, assuming no firewall ports open to the internet !
True but then it's not the root password, you'd have a separate password.
__________________
  #7  
Old July 29th, 2012, 10:58 PM
BrandiCandi
 
Posts: n/a
Default Re: question on root password

Quote:
Originally Posted by moontan
could someone 'knock at the door' of my connection, so to speak, and y passwords one after the other until he/she finds the right one?
To expand on what Nick said...
Are you behind a NAT? If
Code:
ifconfig
tells you your ip is 192.168.x.x or 10.x.x.x, then you're behind a NAT. If you haven't forwarded any ports on the router, then you don't have any services directly facing the internet. When an attacker "knocks on your door" what he's doing is looking for internet-facing ports. If you don't have any then the attacker has nothing to brute-force.

If you're running a server of any kind (ssh, samba, whatever), and you have the port forwarded from your router, then a brute-force attack like the one you're describing probably happens routinely. But it will brute-force the password of the server account (like HungryMan said), it won't be brute-forcing your sudo password.
  #8  
Old July 29th, 2012, 11:10 PM
moontan's Avatar
moontan moontan is offline
Massive Poster
 
Join Date: Sep 2010
Location: Québec
Posts: 3,127
Default Re: question on root password

tnx Brandi, i just tried ifconfig and no, i'm not using a NAT (don't even know what that is).

i don't have a router as a i have only 1 machine.

so i think i'm ok.
__________________
| NoScript || Image for Linux + BootIt Bare Metal |
  #9  
Old July 29th, 2012, 11:44 PM
BrandiCandi
 
Posts: n/a
Default Re: question on root password

Your question is answered: you're probably OK with your sudo password because the sudo password isn't what gets brute-forced. But stronger is better in general for all passwords.

What I was saying is that the router gives you a layer of protection from remote attacks. If you don't have that then attackers still won't be brute-forcing your sudo password, but they might be brute-forcing your services.

What kind of firewall do you have? What are its settings? If you don't have a firewall, or you just have the default settings then I recommend you look into a firewall with strong inbound rules.

Are you running any servers? (ftp, ssh, samba, remote desktop/vnc, cups...) If you don't know the answer you can run
Code:
sudo watch netstat -anpe
and you'll see a list of services listening or established. The last column is "Program name" - it will tell you what you're running. It will look like this:
Click image for larger version

Name:	netstat.png
Views:	1
Size:	81.5 KB
ID:	233962

So this screenshot shows I'm running "cupsd" which is a print server, "smbd" and "nmbd" which are related to a samba server, and "avahi-daemon" which kind of replaces the DHCP server in Ubuntu. None of these services are listening on external ports- they only communicate with other machines in my house. Therefore these services can't be directly attacked from the outside. But if you have them running without a router then they are accessible from the internet.

Anyway, the point is if you have some services running, it's important that you secure them so that a remote attacker can't brute-force the password for those services.
  #10  
Old July 30th, 2012, 12:32 AM
moontan's Avatar
moontan moontan is offline
Massive Poster
 
Join Date: Sep 2010
Location: Québec
Posts: 3,127
Default Re: question on root password

many tnx to every1 for their inputs!

Brandi, i use the GUFW front-end for the kernel firewall.
Incoming = Deny, Outgoing = Allow.

i don't use a server, i even uninstalled Samba from my machine.

i don't want to get too deep in configuring Linux for security.
i'm not a Level 9 wizard like some of you folks and don't want to become one either.

i got away from Windows to leave much of this stuff behind me, i hope. lol

tnx again folks, much appreciated.
__________________
| NoScript || Image for Linux + BootIt Bare Metal |

Last edited by moontan : July 30th, 2012 at 12:38 AM.
  #11  
Old July 30th, 2012, 04:37 AM
mack_guy911's Avatar
mack_guy911 mack_guy911 is offline
Very Frequent Poster
 
Join Date: Mar 2007
Posts: 2,483
Default Re: question on root password

scan your system from ports online here

www.grc.com/




want to check internal open ports/services ...etc scan with zenmap (gui of nmap)

they have some pre define basic scans check them you get all idea about your PC
__________________
Scientific Linux 6.2, xubuntu 11.10 *2x, Linux mint 10, Linux mint 12, opensuse 11.4, windows vista, ubuntu 10.04 and windows xp
  #12  
Old July 30th, 2012, 05:47 AM
moontan's Avatar
moontan moontan is offline
Massive Poster
 
Join Date: Sep 2010
Location: Québec
Posts: 3,127
Default Re: question on root password

Quote:
Originally Posted by mack_guy911
scan your system from ports online here

www.grc.com/




want to check internal open ports/services ...etc scan with zenmap (gui of nmap)

they have some pre define basic scans check them you get all idea about your PC

tnx mack.

i already tested my firewall with Gibson's website.
the only thing i fail is Ping Request.

which is similar to the Windows Vista firewall, from what i have read around the 'net.

i'll look into nmap.
----
edit:
just tried zenmap.

way too technical for me.
__________________
| NoScript || Image for Linux + BootIt Bare Metal |

Last edited by moontan : July 30th, 2012 at 06:02 AM.
 

Wilders Security Forums > Software, Hardware and General Services > all things UNIX « Previous Thread | Next Thread »

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 11:21 AM.


Powered by vBulletin® Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright ©2002 - 2013, Wilders Security Forums