LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 04-01-2007, 01:53 AM   #1
gallwapa
LQ Newbie
 
Registered: Oct 2005
Distribution: RHEL, SLE
Posts: 28

Rep: Reputation: 15
NFS Root setup - can't log in as root after CHMOD ?


I've spent the better part of 2 or 3 hours a day for the past week trying and learning how to use NFS root to boot a smoothwall router from my SLES server here via pxe.

The night I succeed, I have some wackiness remaining (SQUID not turning on, etc...) so I figured I'd take a crack at chmod and make sure stuff could read/write properly to the share.

I used chmod -r 777 /tftpboot/nfsroot/smoothwall and it seemed to take. The problem is I can no longer log in.

Any tips? I take it there is some sort of security feature built into PAM if a file is readable?

What are the default permissions for passwd and shadow so I can reset them? Are there other applicable files?

Thanks in advance.
 
Old 04-02-2007, 04:31 AM   #2
JoaoRodrigues
LQ Newbie
 
Registered: Apr 2006
Location: Aveiro, Portugal
Posts: 2

Rep: Reputation: 0
permissions for /etc/passwd, etc

On my system (ubuntu 6.06, no NFS):
-rw-r--r-- 1 root root 1046 2006-06-08 21:57 /etc/group
-rw-r----- 1 root shadow 918 2006-06-08 21:56 /etc/gshadow
-rw-r--r-- 1 root root 1477 2006-06-08 21:57 /etc/passwd
-rw-r----- 1 root shadow 1022 2006-06-08 21:56 /etc/shadow

Not sure about PAM refusing to accept 0777, but it seems quite logical. There should be quite a few other sensitive files that should be protected, but those four should be enough for simple authentication.

I believe you must also disable root_squash in NFS.

Hope this helps.

Joćo
 
  


Reply


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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CHMOD files for all users as root, how?! $Linuxnoob Fedora 3 04-09-2006 10:31 PM
can't chmod under root Kanaflloric Linux - Newbie 10 08-13-2004 11:06 PM
Root user unable to rm, mv or chmod Zoar Linux - Newbie 2 06-16-2004 10:23 PM
I'm an idiot: chmod -R * in / as root. Fix? fez Linux - General 9 11-23-2003 01:19 AM
Log on as Root, or switch to Root, in MDK 9.1 - KDE 3.1.0 snorky Mandriva 3 09-01-2003 12:07 PM


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