home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / linux / 25639 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  2.5 KB

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