LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 04-25-2008, 03:08 AM   #1
stu_mueller
Member
 
Registered: Aug 2006
Location: England
Distribution: Slackware, Zenwalk
Posts: 114

Rep: Reputation: 15
I'm going to get flamed for asking this but...


Not stricy=tly a slackware question

I am installing zenwalk linux on my sons PC, and have set a root password, I have also created an account for my son.

When I created his account it required a password. (here it comes) I would like to remove this requirement for a password, so my son doesn't need a password.

I believe this can be done in slackware...

Everything I have read on the net points to pam to achieve this, but slackware and zenwalk don't use pam

I have removed the password from /etc/shadow and removed the x from /usr/passwd for his acocunt but now I can't login at all from gdm.

I realise this is a security risk, but I don't want to set passwords on his account.

Thanks

Stuart
 
Old 04-25-2008, 03:14 AM   #2
b0uncer
Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
I think it works like this: first create a new user like you usually do, then run
Code:
passwd -d username
as root. The -d switch means "delete", and should remove the password from the given user account, so after that -- if I'm not mistaken -- you could login by just giving your username and not be prompted for a password.

EDIT: of course you should never just run some passwd commands other people tell you to run it's like giving out your bank card PIN to the first fellow asking..instead you could read
Code:
passwd --help
and see what the switches do. It sure is insecure not having a password on an account, but if you insist on it..well, it's your choice.

Last edited by b0uncer; 04-25-2008 at 03:18 AM.
 
Old 04-25-2008, 03:33 AM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,189

Rep: Reputation: Disabled
Check out KDM's autologin feature. In runlevel 4 you can let a user account be logged in automatically without the need to type a password.

To configure this, open the KDE control center, go to System Administration > Login Manager, and in the tab "Convenience" configure the account that you want to auto-login passwordless.

Eric
 
Old 04-25-2008, 05:33 AM   #4
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware -current, 14.1
Posts: 1,031

Rep: Reputation: 160Reputation: 160
This thread tells you how to 'autologin' to a console, which can then result in an X session, if required:

Code:
http://www.linuxquestions.org/questions/linux-software-2/autologin-without-gui-374338/
cheers,
 
Old 04-25-2008, 05:55 AM   #5
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware, WinXP, Windows 7
Posts: 1,253

Rep: Reputation: 55
I set my son's password to nothing so all he has to do is press enter after he puts his name in the user space at the KDM screen. All I had to do to do this was press enter without entering a character in the password portion of the kuser utility.
 
Old 04-25-2008, 07:15 AM   #6
stu_mueller
Member
 
Registered: Aug 2006
Location: England
Distribution: Slackware, Zenwalk
Posts: 114

Original Poster
Rep: Reputation: 15
yeah it seems to be the zenwalk user gui requires a password.

if I create a users with useradd or issue passwd [username] I can set a blank password
 
Old 04-25-2008, 10:52 AM   #7
Karu
Member
 
Registered: Jul 2007
Location: Estonia
Distribution: Slackware
Posts: 53

Rep: Reputation: 16
Quote:
Originally Posted by stu_mueller View Post
yeah it seems to be the zenwalk user gui requires a password.
Yes it requires password. But you can set autologin for you son in
gdmsetup.
 
Old 04-25-2008, 12:37 PM   #8
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
btw, please don't keep topics like "I am gonna get flamed for this ...." , doesn't help later on when somebody searches for auto login and doesn't find this thread.
 
Old 04-25-2008, 01:37 PM   #9
acummings
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 615

Rep: Reputation: 49
autologin passwordless login /bin/login kdm gdm xdm

:-) :-)

autologin passwordless login /bin/login kdm gdm xdm
 
Old 04-25-2008, 05:38 PM   #10
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 65
And....

I noticed no flames.

Could it be?

The mythical "Slackware Users" are actually helpful? And don't mind helping other distros when asked?

I say that's even more points towards SW being my distro of choice...
 
Old 04-26-2008, 02:50 AM   #11
stu_mueller
Member
 
Registered: Aug 2006
Location: England
Distribution: Slackware, Zenwalk
Posts: 114

Original Poster
Rep: Reputation: 15
Wink

Believe me I realise how helpful the members of this board are! I always get a helpful response to any question I ask, and very quickly aswell.

I wouldn't have had nearly as much success with slackware, without help from everybody here.

I didn't seriously expect any flames from asking this, just trying to provide a humourous title, to something that I consider and probably many others consider to be a serious faux pas on security!
 
Old 04-28-2008, 07:57 AM   #12
Tux-Slack
Member
 
Registered: Nov 2006
Location: Slovenia
Distribution: Slackware 13.37
Posts: 511

Rep: Reputation: 36
Well it's not that much of a security risk if:
-You unplug that computer,
-wrap a chain around the computer,
-pour cement over that computer.
The most secure system in the world regardless of passwords.

No serius, if you don't have a password than at least make sure not daemons are running, like sshd etc. Then you should be ok, or at least not let your firewall forward ports to these daemons from the outside world. I did this the same for my brother in a hurry and noticing that nothing have happened(yet) I did not yet set his password and configured an autologin(no time).
 
Old 04-30-2008, 08:07 PM   #13
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.0
Posts: 2,242

Rep: Reputation: 614Reputation: 614Reputation: 614Reputation: 614Reputation: 614Reputation: 614
As mentioned earlier, an autologin setup is probably better than setting a blank password. Having the system autologin only really makes it a local security threat, whereas having no password whatsoever makes it a global, internet-ready security threat.
 
Old 04-30-2008, 11:37 PM   #14
bibliobook
LQ Newbie
 
Registered: Feb 2006
Location: Memphis, TN
Distribution: Slackware 12, Ubuntu 7.10 AMD64
Posts: 3

Rep: Reputation: 0
Well, a global, internet-ready security threat running (a Slack-derived distro of) linux, which is better than other options. Still, for peace of mind, I too would suggest the autologin feature of kdm/gdm. I set my computer to autologin everytime I'm going to be gone for the weekend or something, so that my girlfriend (who is brilliant, but not tech-savvy) can shutdown and startup or, more likely, recover from a power failure. She always has access to the computer, and some degree of security is there.

I haven't played with zenwalk in a while, but it does use gdm last I knew, and doesn't by default run too terribly many daemons that would be a security risk; I think sshd might be a default, as is inetd, so the risk is there without a password. Just a word to the wise.
 
Old 05-01-2008, 06:49 AM   #15
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
Quote:
I set my computer to autologin everytime I'm going to be gone for the weekend or something, so that my girlfriend (who is brilliant, but not tech-savvy) can shutdown and startup or, more likely, recover from a power failure. She always has access to the computer, and some degree of security is there.
comeon man .. give her an account ...
 
  


Reply

Tags
autologin, gdm, kdm, login, passwordless, xdm


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



All times are GMT -5. The time now is 07:48 PM.

Main Menu
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