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 - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-29-2005, 02:02 PM   #16
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872

Quote:
Originally posted by Furlinastis
That's way to easy. Is there a way to make shadow unwritable, so nobody can change it once the passwords are set?
if any user other than root are able to edit your shadow file,
you have serious file permission problem in your system
 
Old 11-29-2005, 02:08 PM   #17
Furlinastis
Member
 
Registered: Dec 2004
Location: Ball of Confusion
Distribution: Artix,Arch,Slackware,Bluewhite64
Posts: 261

Rep: Reputation: 40
My user account can't even view shadow, so I don't think I have a permissions problem. What he is saying is inserting, say, knoppix then hacking it like that. I'm sure there would be a way to remotely mount the root partition w/o it's permissions then editing shadow. I'm suggesting making the file uneditable, even by root. Obviously this would make a password recovery impossible. What problems would chmod'ing shadow this way cause?

Last edited by Furlinastis; 11-29-2005 at 02:10 PM.
 
Old 11-29-2005, 02:14 PM   #18
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
If you have local access to the machine, it is easy to break the root passord

You could always set BIOS access protected by password,
non permit of booting from other media than the hard drive,
lilo / grub menu editing feature prohibited, the computer box locked, etc...
 
Old 11-30-2005, 03:48 AM   #19
lockout
LQ Newbie
 
Registered: Sep 2005
Location: Riga, LV
Distribution: Slackware/Gentoo
Posts: 26

Rep: Reputation: 15
Quote:
Originally posted by keefaz
If you have local access to the machine, it is easy to break the root passord

You could always set BIOS access protected by password,
non permit of booting from other media than the hard drive,
lilo / grub menu editing feature prohibited, the computer box locked, etc...
Well that is really one thing what admins do (configure their bios) so that noone can boot any bootable media (floppy, cd, flash...). This includes setting the bios password. Also features like wol (wake-on-lan) shoud be disabled. But whatta pitty - if you gain acces to that box - resetting CMOS is way to easy (unless some kinda hardware (HDD data..) encryption is provided via bios - than all the crappy data is WASTED).

If you manage to boot into a box with a rescue disc or live cd, and mount teh harddrive, then u gain root acces (u r a root user in the Live cd - say Slax) to any mounted drive and any files stored on them like /etc/shadow.

Sooo... conclusions - store your box inside a lockable steel box (shielding it against sigint attacks would be nice hehehe ).

:^)
 
Old 11-30-2005, 04:17 AM   #20
odevans
Member
 
Registered: Nov 2005
Location: Columbus, OH, USA
Distribution: Slackware
Posts: 246

Rep: Reputation: 30
Quote:
Originally posted by Furlinastis
That's way to easy. Is there a way to make shadow unwritable, so nobody can change it once the passwords are set?
Probably not until the System-Immutable flag makes it's way to Linux.

Besides, how would you add new users, or even change your own password?

Personally, I like changing the root PW to root:$1$h6pRbM3d$I.HG2RWyc.Ys9i7eOK0y6/:11487:0:99999:7:::

Or, in plaintext, ihatemondays
 
Old 11-30-2005, 05:47 AM   #21
Namaseit
Member
 
Registered: Dec 2003
Distribution: Slackware
Posts: 325

Rep: Reputation: 30
or just 'chroot' to the partition then type 'passwd' and set a new password.
 
  


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
Darkstar Login Bengooch7 Linux - Newbie 6 04-24-2005 08:54 AM
darkstar login? (9) zokter Slackware 3 08-26-2003 04:51 PM
darkstar login? BmxFace Slackware 6 07-04-2003 04:36 PM
Darkstar login Gnux Slackware 10 07-03-2003 04:17 PM
DarkStar login bebleu Slackware 5 05-16-2003 04:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:28 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
Open Source Consulting | Domain Registration