Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 04-01-2007, 02:53 AM   #1
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, 05:31 AM   #2
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.



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

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

All times are GMT -5. The time now is 05:13 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration