LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   not allowing me to login as other users (https://www.linuxquestions.org/questions/solaris-opensolaris-20/not-allowing-me-to-login-as-other-users-370397/)

madamson 10-06-2005 02:14 PM

not allowing me to login as other users
 
OK! I was having major permissions problems with my software. I went into root and gave permissions to users as much as possible but to no avail. Accidently, I did chmod 555 on usr folder. Now I can only login as root and solaris will not let me log in as anything else.
I add users in the solaris management console.
Please helpppp!!!
M

jlliagre 10-06-2005 04:04 PM

Quote:

I went into root and gave permissions to users as much as possible but to no avail.
how ?
Quote:

Accidently, I did chmod 555 on usr folder.
did you restore the permissions back to their original values ?
Quote:

Now I can only login as root and solaris will not let me log in as anything else.
Well, at least you didn't lock you out !

anuode 10-07-2005 01:14 AM

under default,when you add a new user to your system,the user's home directory will not be created.
so you can't login as the user! you must make a home directory for the user and chown,then vi /etc/passwd
file .now ,it should be ok!:study:

jlliagre 10-07-2005 01:35 AM

Quote:

the user's home directory will not be created.
so you can't login as the user!
This is wrong, you can login as a user missing an home directory, it just defaults to "/".
See line 1749 of http://cvs.opensolaris.org/source/xr.../login/login.c

anuode 10-07-2005 01:58 AM

thanks,I'm wrong!sorry
but ,I have encountered the same problem, i worked as my method,and now it's ok!
thanks again :study:

anuode 10-07-2005 02:11 AM

I just have a try
I rename my home directory /export/home/anuode to /export/home/anuode.old .
then logout and login
I can't login normally,and only start a failsafe session
why?

technopark02 10-07-2005 02:23 AM

Perhaps the initiator is not able to login to JDS as normal user. It is not so uncommon to encounter such problems, if files like .ICEauthority are owned by root user, and if there are insufficient privileges for normal users to access those files.

Simply changing the ownership, or making all the files {in the home directory of the user} accessible to normal user(s) may resolve the issue.

----
>> I add users in the solaris management console.
Did you change the ownership of the home directory of the user?

It is not that hard to create a new user from command line, really. The following example shows the simple steps to create a new user called "madamson":

1. mkdir -p /export/home/madamson (Create the home directory for the user, before creating the user)
2. useradd -s /bin/csh -d /export/home/madamson madamson (default shell will be Csh. Do a "man useradd" for the other options)
3. chown -R madamson /export/home/madamson (Let the user own his home directory)
4. passwd madamson (Change the password)

jlliagre 10-07-2005 05:49 AM

Quote:

useradd -s /bin/csh ...
Don't promote csh, it's so outdated and useless ...
My best choice is ksh, then bash.


All times are GMT -5. The time now is 01:53 PM.