LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices

Old

Set that sudo up.

Posted 09-29-2009 at 07:54 PM by ofaring (Debian, This That and the Other)
Updated 12-06-2009 at 09:24 AM by ofaring

This isn't a howto but rather a basic example on setting up "sudo".

Sudo is an excellent tool to aid your pursuit of security and unnecessary root usage. Regardless of what certain individuals will say, and unfortunately some of them even put distros together, using the root account all the time is begging for trouble. So...

Is it already installed on your Debian system? While you might be using aptitude or synaptic, my preference is for apt-get.
Code:
%
...
Member
Posted in Examples
Views 1811 Comments 0 ofaring is offline
Old

How to generate password

Posted 02-21-2009 at 08:56 AM by ErV

Generating password is simple:

password8.sh:
[code]
#!/bin/sh
cat /dev/urandom| tr -dc '0-9a-zA-Z!@#$%^&*_+-'|head -c 8;echo
[/code]
This script generates 8 characters long password.
To change number of characters, replace 8 with other number.
'0-9a-zA-Z!@#$%^&*_+-' defines character set used in password. If you need another charset, change this string to suit your needs.
ErV
Senior Member
Posted in Uncategorized
Views 3275 Comments 0 ErV is offline
Old

send sms messages to your cell phone when someone logs in as root

Posted 12-01-2008 at 12:55 PM by jkzfixme
Updated 01-20-2009 at 09:44 AM by jkzfixme (PS)

Hi my name is Jesse and although Ive been a constant on this forum and try to answer questions when I can , Ive never been much of a blogger. However I found this trick to be pretty useful, so here it goes. You can also use the sms portion in may different contexts.
Since this is my first entry , comments and or constructive criticism would be much appreciated.



Quote:
vi .bash_profile
in the root dir

add the following at the end

Quote:
echo 'ALERT
...
Member
Posted in Uncategorized
Views 2550 Comments 0 jkzfixme is offline

  



All times are GMT -5. The time now is 08:53 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration