From: Paul Gortmaker (rcopg@minyos.xx.rmit.OZ.AU)
Date: 03/12/93


From: rcopg@minyos.xx.rmit.OZ.AU (Paul Gortmaker)
Subject: Re: Permission denied when login as newuser.
Date: 12 Mar 1993 10:01:57 GMT

Toan Hoang ~{ <tqhoang@silver.ucs.indiana.edu> writes:

>HI, I have a problem getting the new user to work. Here's what I did.
>useradd -g 1 -d /home/users/tqhoang -s /bin/sh tqhoaAnd then I change
>the password so I can login, the problem I have is that, when I tried
>to login the newuser, I have this error.
>shell-init: Permission denied
>pwd: Permission denied
>: Permission denied
>#
>Anybody know how to fix that?

...it seems that you are trying to put the user into the group "other",
which (...assuming gid=1 -> other) is curious. I would suggest putting
it into gid=6 (users) or perhaps sysadmin??? Anyway that is probably not
your problem.
        What is probably getting you is the file permissions of the directo-
ries in your path. Check the diectories in your path "echo $PATH" by doing
"ls -ld /usr/bin" and so on for all the directories. The file permissions
should be something like "drwxrwxr-x root root <directory name>" If
it is "drwx------", then the average user who is not a member of any groups
with "super user" privelages, will not be able to read (the "r") or
execute (the "x") anything in that directory. To fix it, type (as root)
"chmod go+rx /<directory path>".
        "man ls" will give you an explanation of file permissions, and
"man chmod" will tell you how to change permissions.
        (Don't get insulted if this is too simplistic, as I have no idea
what you have tried, and what you know about UNIX.)

                        Hope this helps.

                                                        Paul.
>Thanks,
>Toan