home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ukma!cs.widener.edu!dsinc!ub!exucom.com!bribbeck
- From: bribbeck@exucom.com (Bob Ribbeck)
- Newsgroups: comp.os.linux
- Subject: Re: HELP: shell-init: Permission denied
- Message-ID: <1993Jan28.003901.2175@exucom.com>
- Date: 28 Jan 93 00:39:01 GMT
- References: <1993Jan21.155119.11340@informatik.uni-hamburg.de>
- Organization: ExuCom Multimedia Inc.
- Lines: 49
- X-Newsreader: TIN [version 1.1 PL8]
-
- Safuat Hamdy (hamdy@rzdspc18.informatik.uni-hamburg.de) wrote:
- : In article <1993Jan18.034910.28658@cronkite.ocis.temple.edu>, billj@astro.ocis.temple.edu (Bill Jones) writes:
- : |> I am not sure what happened, but I am now having a problem when logging
- : |> in as any user other than root. The symptoms are as follows:
- : |>
- : |> login: user1
- : |> password:
- : |> shell-init: Permission denied
- : |> : Permission denied
- : |> pwd: Permission denied
- : |> : Permission denied
- : |> musicman:> dir <------ my prompt (missing the pwd)
- : |> [ usual directory listing ]
- : |> : Permission denied
- : |> : Permission denied
- : |> : Permission denied
- : |>
- : |> The 'pwd: Permi...' error message I think is coming from my
- : |> prompt statement, but what is 'shell-init'? I am pretty
- : |> sure all my dir permissions and file permissions are correct.
- : |> The only thing I can point my finger to as the cause of this is that
- : |> the computer was turned off without shuttting down first, but it
- : |> had been sittting idle for over an hour, and update was running...
- : |> (no i didn't turn it off myself..)
- : |>
-
- : Again and again and again ...
-
- : 1. the login-dir of your user must be owned by that user and it must have read and execute
- : permissions set for the owner.
-
- : 2. the shell-initialization-files (for bash that is .bash_profile, .bashrc, etc., for tcsh, if
- : you have, that is .login and .cshrc. see BASH(1) (TCSH(1)) man pages for more info about this
- : topic) must be owned by your user and must have at least read and exec permissions set for
- : your user.
-
- : pwd, dir etc. will work fine. I recommend to use USERADD(8) because initialization and perms
- : setup will be done automatically.
-
- : Safuat Hamdy
-
- : hamdy@rzdspc1.informatik.uni-hamburg.de
-
- I had the same problem too. The problem is not obvious perrmissions but
- one that gets overlooked. Do "chmod 755 /" your root directory only has root
- permissions and must have r_x permissions. This is what I found causing the
- problem when non-root users login and are trying to use dirs/files/etc off the
- root directory. Persay they need the r_x permission just to login and pass thru
- the root.
-