strange and serious problem about user login

Zhen Zhou zhouzhenzj at gmail.com
Mon Jun 26 06:40:59 UTC 2006


Thanks a lot, I will learn the lesson--make an rpm does not require being root.

Zhou Zhen

On 6/26/06, replies-lists-redhat at listmail.innovate.net
<replies-lists-redhat at listmail.innovate.net> wrote:
> from your previous description of the permissions on files/directories
> under /etc/, it sounds like a number of things might be messed up. if
> that's the case, any number of services may not work properly.
>
> i don't suppose you have a backup from before the "event".
>
> you should only be root for those very brief periods when you need to
> be. making an rpm does not require being root ...
>
>
>
> ------------ Original Message ------------
> > Date: Monday, June 26, 2006 02:16:01 PM +0800
> > From: Zhen Zhou <zhouzhenzj at gmail.com>
> > To: pkleiber.hi at gmail.com
> > Subject: Re: strange and serious problem about user login
> >
> > Hi,
> > Thanks very much for your help, it seems that it works as you
> > suggested--now I could login as normal user without errors. And one
> > service I could start--just chmod +r /etc/. -R. now i am fighting with
> > ssh server. ;-(
> >
> > This happened when I are curious to make rpm package, now is there a
> > way to recover the mess-up permissions from last stupid change?
> >
> > Thanks a lot,
> >
> > Zhou Zhen
> > On 6/26/06,  wrote:
> >> let me rephrase my question:
> >>
> >> what are the permissions on the /etc/ directory? i.e., at / issue the
> >> command:
> >>
> >>    ls -ld etc
> >>
> >> the /etc/ directory should be read+execute group+other (as well as
> >> owner, of course).
> >>
> >> most (but not all) directories under /etc/ should have those same
> >> permissions and most files should be read group+other.
> >>
> >> from what you indicated in your last response, it would appear that
> >> the permissions on things *in* your /etc/ directory don't have the
> >> correct permissions. if something happened to reset the permissions
> >> under /etc/, then there's probably a reasonable chance that things
> >> are messed up in other directories too.
> >>
> >>
> >>
> >> ------------ Original Message ------------
> >> > Date: Monday, June 26, 2006 01:24:50 PM +0800
> >> > From: Zhen Zhou <zhouzhenzj at gmail.com>
> >> > To: fedora-list at redhat.com
> >> > Subject: Re: strange and serious problem about user login
> >> >
> >> > Most files and directories in /etc/ are root ownership, and the
> >> > files are -rw------- , and directories is drw-r-----.
> >> >
> >> > Zhou Zhen
> >> > On 6/26/06,wrote:
> >> >> what are the permissions on /etc/ ?
> >> >>
> >> >>
> >> >> ------------ Original Message ------------
> >> >> > Date: Monday, June 26, 2006 01:01:09 PM +0800
> >> >> > From: Zhen Zhou <zhouzhenzj at gmail.com>
> >> >> > To: fedora-list at redhat.com
> >> >> > Subject: Re: strange and serious problem about user login
> >> >> >
> >> >> > Hi,
> >> >> > Thanks for your quickly reply, but I still confused about your
> >> >> > mentioned.
> >> >> >
> >> >> > I took a look at /etc/ directory, but i couldn't find any
> >> >> > problem on that.
> >> >> > ls -l:
> >> >> > -rw-r--r-- 1 root root 842 May 25 2004 profile
> >> >> > so is it not correct?
> >> >> >
> >> >> > I could understannd what you told me that maybe I messed up
> >> >> > permissions on this system.
> >> >> >
> >> >> > And I need to provide what kind more information that could
> >> >> > help to trace the problem,
> >> >> >
> >> >> > Anyway, any tips will be welcome,
> >> >> >
> >> >> >
> >> >> > Zhou Zhen
> >> >> >
> >> >> > On 6/26/06,  wrote:
> >> >> >> based on the little info that you've provided, it sounds like
> >> >> >> you may have messed up permissions on your /etc/ directory.
> >> >> >>
> >> >> >> in general, the /etc/ directory (and it's contents) is
> >> >> >> owned.grouped by root.root with "group" and "other" having read
> >> >> >> and execute (as appropriate) access to most files. e.g.,
> >> >> >> group/other should have read access to /etc/profile .
> >> >> >>
> >> >> >>
> >> >> >> ------------ Original Message ------------
> >> >> >> > Date: Monday, June 26, 2006 11:19:40 AM +0800
> >> >> >> > From: Zhen Zhou <zhouzhenzj at gmail.com>
> >> >> >> > To: fedora-list at redhat.com
> >> >> >> > Subject: strange and serious problem about user login
> >> >> >> >
> >> >> >> > Hi, all,
> >> >> >> > I am using Fedora 3, today I found serious problem, I
> >> >> >> > couldn't start any service other than root.
> >> >> >> > and I try to login as normal user except root, the teminal
> >> >> >> > show me: --bash: /etc/profile: Permission denied
> >> >> >> > --bash: 3.00$
> >> >> >> >
> >> >> >> > and when I start sshd in this pc, I get no errors, but when I
> >> >> >> > check the status of sshd,
> >> >> >> > it showed me: sshd dead but subsys locked
> >> >> >> >
> >> >> >> > When I login as root in terminal without any problem, but I
> >> >> >> > keyin: su normal-user
> >> >> >> > I got error: could not open session
> >> >> >> >
> >> >> >> > I guess, maybe the user manage got problem, but I dodn't know
> >> >> >> > how to solve the problem.
> >> >> >> >
> >> >> >> >
> >> >> >> > Thanks a lot for any tips,
> >> >> >> >
> >> >>
> >> >>
> >>
> >> ---------- End Original Message ----------
> >>
> >>
> >
> > --
> > fedora-list mailing list
> > fedora-list at redhat.com
> > To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>
> ---------- End Original Message ----------
>
>




More information about the fedora-list mailing list